Support

stockInventory

View as Markdown

Stock new inventory. If there are backordered inventory, they will be moved to committed. It does not validate against backorder limit. Any extra inventory…

mutation

Requires commerce.product:write.

Stock new inventory. If there are backordered inventory, they will be moved to committed. It does not validate against backorder limit. Any extra inventory will be added to available.

Required headers

HeaderRequiredDescription
x-store-idYesID 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

  • input MutationStockInventoryInput! required
    • locationId ID! required
    • quantity Int! required
    • skuId ID! required
    • reasonName String optional
    • references [CreateReferenceInput!] optional
      • origin String! required
      • value String! 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?