Support

archiveInventoryAdjustmentReason

View as Markdown

Archive a store-scoped inventory adjustment reason. Global reasons cannot be archived.

mutation

Requires commerce.product:write.

Archive a store-scoped inventory adjustment reason. Global reasons cannot be archived.

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 MutationArchiveInventoryAdjustmentReasonInput! required
    • id ID! 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?