reduceInventory
View as MarkdownReduce inventory by first reducing available, then moving committed to backordered. If insufficient inventory exists, additional available inventory is…
mutation
Requires commerce.product:write.
Reduce inventory by first reducing available, then moving committed to backordered. If insufficient inventory exists, additional available inventory is automatically added to fulfill the reduction. This mutation does not respect backorder limits.
Required headers
| Header | Required | Description |
|---|---|---|
x-store-id | Yes | ID of the store the operation targets. Omitting it returns HTTP 200 with a GraphQL error: extensions.code: "UNAUTHENTICATED". |
Go to Authentication for credential setup.
Arguments
inputMutationReduceInventoryInput!requiredlocationIdID!requiredquantityInt!requiredskuIdID!requiredreasonNameStringoptionalreferences[CreateReferenceInput!]optionaloriginString!requiredvalueString!required
Possible returns
InventoryAdjustment[InventoryAdjustment!]— An immutable entity that represents a change in state of a quantity of SKU at a particular time and location.
Last updated on
How is this guide?