Location Deactivate Payload
Return type for mutation.
Anchor to FieldsFields
- location (Location)
- locationDeactivateUserErrors ([LocationDeactivateUserError!]!)
- Anchor to locationlocation•Location
The location that was deactivated.
- Anchor to locationDeactivateUserErrorslocation•[Location
Deactivate User Errors Deactivate User Error!]! non-null The list of errors that occurred from executing the mutation.
Anchor to Mutations with this payloadMutations with this payload
- locationDeactivate (LocationDeactivatePayload)
- •mutation
Deactivates a location and moves inventory, pending orders, and moving transfers " "to a destination location.
CautionAs of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution:As of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution: As of 2026-01, this mutation supports an optional idempotency key using the <code>@idempotent</code> directive. As of 2026-04, the idempotency key is required and must be provided using the <code>@idempotent</code> directive. For more information, see the <a href="https://shopify.dev/docs/api/usage/idempotent-requests">idempotency documentation</a>.
- Anchor to locationIdlocation•ID!
Id required The ID of a location to deactivate.
- Anchor to destinationLocationIddestination•ID
Location Id The ID of a destination location to which inventory, pending orders and moving transfers will be moved from the location to deactivate.
Arguments