As discussed with @yosef, the ShipHero system is supposed to be able to handle duplicated SKUs accross different 3PL clients. Unfortunately the GraphQL API returns a “product already exists” error when trying to do so.
Can you please tell me if there is anything I’m doing wrong with my requests ?
Hi @Gary
Thanks for catching this!, I was able to reproduce with the info you provided and engaged the engineering team to work on a fix for this.
I will let you know as soon as I get an update.
Thanks again!
Tom
I also noticed that it is not possible to query a product for a given sku and a given customer_account_id.
Indeed the product query only takes in the id and the sku of the product, and it seems to return the first product with a matching SKU.
Note: I managed to create two products with duplicated skus accross two clients through the https://app.shiphero.com/dashboard
Absolutely! A request for making this possible was just approved.
So shortly an engineer will be working on this.
I will let you know as soon as I have an ETA or an update.
Thanks again!
Tom
Hi @Gary!
A fix for this should was implemented recently and now you should be able to create duplicated SKUs across different 3PL clients.
As for the other request is still being developed, so I will let you know as soon as I have an update.
Thanks for the patience on this!
Tom
@tomasw Hello we happen to receive this error using almost the same query, I was not able to add the customer_account_id parameter in the product_create mutation payload.
Could you kindly confirm if the status of the fix?
Please note we can create products with the same SKU across different warehouses using ShipHero’s website, the GraphQL API seems to be blocking the request.
Looks like your account type is not a 3PL account, this means you won’t need to include the customer_account_id
The reason we use customer_account_id is for 3PL accounts that need to make mutations/queries for their customer_accounts.
As for creating the same SKU across different warehouses you will need to first create the SKU with the product_create mutation and then you’ll have to add the product to the other warehouses by using the product_add_to_warehouse mutation and specifying both warehouse_id and sku
Let me know if that doesn’t help or there’s anything else I can help you with.
Is it possible to add the customer_account_id filter to the product (not products) query?
When having the same SKU across two different 3PL accounts and querying , it returns the product created first. I tried the products query but it used way too many credits, so I had to switch to the product query.