# Purchase\_order\_create

**URL:** <https://community.shiphero.com/t/purchase-order-create/2891>\
**Category:** GraphQL API\
**Created:** [April 9, 2024, 11:30am UTC](https://community.shiphero.com/t/purchase-order-create/2891 "2024-04-09T11:30:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhenhubhqy](https://avatars.discourse-cdn.com/v4/letter/z/57b2e6/32.png) [@zhenhubhqy](https://community.shiphero.com/u/zhenhubhqy)\
**Post date:** [April 9, 2024, 11:30am UTC](https://community.shiphero.com/t/purchase-order-create/2891/1 "2024-04-09T11:30:11Z")

</div>

“Invalid id ShipHero” returned when executing purchasd\_order\_create  
Request body:  
{“query”: "mutation {product\_update (data: {name: " Test products are not stored in the warehouse \ ", sku: " Test Product \ ", drop ship: false, barcode: " LO1010 \ “, needs series number: false}) {request\_id complexity product {id sku}}”

---

<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:** [April 9, 2024, 2:04pm UTC](https://community.shiphero.com/t/purchase-order-create/2891/2 "2024-04-09T14:04:26Z")

</div>

Hello @zhenhubhqy, You are getting that error because you are sending ShipHero as the warehouse ID in your mutation. You can use a query like this one to retrieve all the warehouse IDs associated with your account:

```auto
query {
  account(analyze: false) {
    request_id
    data {
      legacy_id
      id
      warehouses {
        id              
        legacy_id <- The ID you need
        identifier <- This is its name in the UI
      }
    }
  }
}

```

Use one of those in you mutation and it will associate the PO to that warehouse.

Have a great day!
