API ReferenceCommerceProducts & inventoryCatalog GraphQLInventoryMutationcreateInventoryAdjustmentReason
createInventoryAdjustmentReason
View as MarkdownCreate 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
| 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
inputMutationCreateInventoryAdjustmentReasonInput!requiredlabelString!requirednameString!required
Possible returns
InventoryAdjustmentReasonInventoryAdjustmentReason— 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?