Create_product returns error

Hi Shiphero,

I’m getting this error when I’m making a product through the graphQL API for Shiphero Fulfilment.

“errors”: [
    {
      “message”: “SF customers cannot create products in 3PL warehouses”,
      “operation”: “product_create”,
      “field”: “product_create”,
      “request_id”: “618bafa762d2275739e0cbfb”,
      “code”: 9
    }
  ]

I assume this was done because products are automatically entered when they come in the 3PL, but for new products we need to create a product for the shipping plan.

Hello @pastaj36, and welcome to the ShipHero PublicAPI community!
I will be reviewing your case and posting again once I have further information.
I appreciate your patience.
Have a great day!
Tomas

Hello @pastaj36!
Thank you for your patience!
I checked the payload, and I see you were creating the product in the ShipHero Fulfillment warehouse. For product creation, you need to send your warehouse id.
You can use the following query to fetch all warehouses associated with your account:

query{
  account(analyze: false){
    request_id
    complexity
    data{
      warehouses{
        id
        legacy_id
        profile
        identifier
        account_id
      }
    }
  }
}

Please let me know if this helps!
Have a great weekend,
Tomas

Hi @tomasfd ,

Thanks for the quick followup, I’ll give that a shot.

1 Like