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.
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!
1 Like