# Unable to create purchase order

**URL:** <https://community.shiphero.com/t/unable-to-create-purchase-order/1688>\
**Category:** GraphQL API\
**Created:** [November 10, 2021, 3:40pm UTC](https://community.shiphero.com/t/unable-to-create-purchase-order/1688 "2021-11-10T15:40:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshua.o](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@joshua.o](https://community.shiphero.com/u/joshua.o)\
**Post date:** [November 10, 2021, 3:40pm UTC](https://community.shiphero.com/t/unable-to-create-purchase-order/1688/1 "2021-11-10T15:40:45Z")

</div>

Purchase order returns unknown sku where as SKU is from products.

 ![Screenshot 2021-10-31 at 22.05.43](https://us1.discourse-cdn.com/flex020/uploads/shiphero/original/1X/e09c3f0d140d9cbb35492b259202b9056ec00aef.png)

---

<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, 7:46pm UTC](https://community.shiphero.com/t/unable-to-create-purchase-order/1688/3 "2021-11-10T19:46:21Z")

</div>

Hello @joshua.o! Welcome to the ShipHero PublicAPI Community!  
Thanks for reaching out.  
I can see your API token is associated with a 3PL account, so every request made to the API is processed in that account, but products and purchase orders are associated with the child account. That’s why the response says the product doesn’t exist.  
To overcome this, you can update your mutation by adding the `customer_account_id` field:

```auto
mutation{
  purchase_order_create(data: {
    customer_account_id: "string"
    #Rest of required fields
  }){
    request_id
    complexity
  }
}

```

You can find out the IDs of each child account using the following query:

```auto
query{
  account(analyze: false){
    request_id
    complexity
    data{
      customers{
        edges{
          node{
            legacy_id
            username
          }
        }
      }
    }
  }
}

```

Please let me know if this helps.  
Have a nice day!  
Tomas
