# Purchase orders and inventory management

**URL:** <https://community.shiphero.com/t/purchase-orders-and-inventory-management/2904>\
**Category:** GraphQL API\
**Created:** [April 22, 2024, 8:43am UTC](https://community.shiphero.com/t/purchase-orders-and-inventory-management/2904 "2024-04-22T08:43:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikeborozdin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/mikeborozdin/32/856_2.png) [@mikeborozdin](https://community.shiphero.com/u/mikeborozdin)\
**Post date:** [April 22, 2024, 8:43am UTC](https://community.shiphero.com/t/purchase-orders-and-inventory-management/2904/1 "2024-04-22T08:43:17Z")

</div>

- Do we need to set the quantity of the products in inventory ourselves when a purchase order is received?
- If so, does is the [po-update-webhook](https://developer.shiphero.com/webhooks#po-update-webhook) triggered when line items are delivered to the warehouse?
- The documentation says it’s triggered when a PO is created or updated. How do I differentiate when between a webhook for creation or an update? There is the `status` fields, but the documentation does not say which values it may have
- What’s the difference between `quantity` and `quantity_received` in the payload?
- [This message](https://community.shiphero.com/t/how-to-get-response-of-po-update-webhook/1123/2) says that `quantity_received` has a total quantity received from multiple shipments. If so, how do we update the stock information?

---

<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 23, 2024, 8:17pm UTC](https://community.shiphero.com/t/purchase-orders-and-inventory-management/2904/2 "2024-04-23T20:17:51Z")

</div>

Hey @mikeborozdin! Thanks for joining, glad to have you here! Let me get back to you on those.  
Have a great day!
