Menu
locationDeactivate
Deactivates a location and moves inventory, pending orders, and moving transfers " "to a destination location.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the locationDeactivate action (under Location).
- Fill in the fields below, then reference the result from later steps as
{{locationdeactivate.response.data}}.
Query
This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.
mutation LocationDeactivate($locationId: ID!, $destinationLocationId: ID) {
locationDeactivate(
locationId: $locationId
destinationLocationId: $destinationLocationId
) {
location {
activatable
address {
address1
address2
city
country
countryCode
formatted
latitude
longitude
phone
province
provinceCode
zip
}
addressVerified
createdAt
deactivatable
deactivatedAt
deletable
fulfillmentService {
callbackUrl
fulfillmentOrdersOptIn
handle
id
inventoryManagement
location
requiresShippingMethod
serviceName
trackingSupport
type
}
fulfillsOnlineOrders
hasActiveInventory
hasUnfulfilledOrders
id
isActive
isFulfillmentService
isPrimary
legacyResourceId
localPickupSettingsV2 {
instructions
pickupTime
}
name
shipsInventory
suggestedAddresses {
address1
address2
city
country
countryCode
formatted
province
provinceCode
zip
}
updatedAt
}
locationDeactivateUserErrors {
code
field
message
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"locationId": "string",
"destinationLocationId": "string"
}
Response
Read the result with {{locationdeactivate.response.data.data.locationDeactivate}}. If the API returns errors, the step fails and they are at {{locationdeactivate.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?