Does GraphQL Inventory Update provides Quantity Update?

Does GraphQL Inventory Update provides Quantity Update?

sanjuthakur
Shopify Partner
7 1 2

The REST API provides both SET (/admin/api/2021-10/inventory_levels/set.json) quantity and ADJUST (/admin/api/2021-10/inventory_levels/adjust.json). However with GRAPHQL looks like only the Inventory ADJUST API is available, is the understanding correct? if not then could anyone please provide the link for the SET as well.

Reply 1 (1)

awwdam
Shopify Staff
249 42 38

Hey @sanjuthakur,

There are some examples of functionality differences between the REST and GraphQL APIs and you are correct about handling inventory via API. This doc outlines all of the currently available Inventory mutations in GraphQL, which for level changes would be done using inventoryAdjustQuantity, and setting an inventoryLevel is only possible via REST, per these docs.

If you are interested in tracking changes and updates to our API - I'd suggest subscribing to our Developer Changelog. Alternatively, you can track API release notes about new features and deprecations here!

- Cheers!

awwdam | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog