# Create\_product returns error

**URL:** <https://community.shiphero.com/t/create-product-returns-error/1686>\
**Category:** GraphQL API\
**Created:** [November 10, 2021, 2:03pm UTC](https://community.shiphero.com/t/create-product-returns-error/1686 "2021-11-10T14:03:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pastaj36](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@pastaj36](https://community.shiphero.com/u/pastaj36)\
**Post date:** [November 10, 2021, 2:03pm UTC](https://community.shiphero.com/t/create-product-returns-error/1686/1 "2021-11-10T14:03:08Z")

</div>

Hi Shiphero,

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

```auto
“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.

---

<div class="post-metadata">

**Author:** ![tomasfd](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@tomasfd](https://community.shiphero.com/u/tomasfd)\
**Post date:** [November 10, 2021, 8:09pm UTC](https://community.shiphero.com/t/create-product-returns-error/1686/2 "2021-11-10T20:09:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tomasfd](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@tomasfd](https://community.shiphero.com/u/tomasfd)\
**Post date:** [November 12, 2021, 7:09pm UTC](https://community.shiphero.com/t/create-product-returns-error/1686/3 "2021-11-12T19:09:54Z")

</div>

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:

```auto
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

---

<div class="post-metadata">

**Author:** ![pastaj36](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@pastaj36](https://community.shiphero.com/u/pastaj36)\
**Post date:** [November 14, 2021, 1:31pm UTC](https://community.shiphero.com/t/create-product-returns-error/1686/5 "2021-11-14T13:31:59Z")

</div>

Hi @tomasfd ,

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