Support

createInventoryAdjustmentReason

View as Markdown

Create a new store-scoped inventory adjustment reason. Name must be kebab-case and must not start with "g-" (reserved for global presets). Once created, the…

mutation

Requires commerce.product:write.

Create a new store-scoped inventory adjustment reason. Name must be kebab-case and must not start with "g-" (reserved for global presets). Once created, the name is immutable.

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 MutationCreateInventoryAdjustmentReasonInput! required
    • label String! required
    • name String! required

Possible returns

  • InventoryAdjustmentReason InventoryAdjustmentReason — A reason that can be associated with an inventory adjustment to explain why it occurred. Global preset reasons are prefixed with "g-" (e.g. g-damage, g-shrinkage). Store-scoped reasons use plain kebab-case names.

Last updated on

How is this guide?