Menu
deliveryProfileCreate
Creates a DeliveryProfile that defines shipping rates for specific products and locations.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the deliveryProfileCreate action (under Delivery).
- Fill in the fields below, then reference the result from later steps as
{{deliveryprofilecreate.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 DeliveryProfileCreate($profile: DeliveryProfileInput!) {
deliveryProfileCreate(profile: $profile) {
profile {
activeMethodDefinitionsCount
coversAllItems
default
id
locationsWithoutRatesCount
name
originLocationCount
productVariantsCount {
count
precision
}
productVariantsCountV2 {
capped
count
}
unassignedLocations {
activatable
address
addressVerified
createdAt
deactivatable
deactivatedAt
deletable
fulfillmentService
fulfillsOnlineOrders
hasActiveInventory
hasUnfulfilledOrders
id
isActive
isFulfillmentService
isPrimary
legacyResourceId
localPickupSettingsV2
name
shipsInventory
suggestedAddresses
updatedAt
}
version
zoneCountryCount
}
userErrors {
field
message
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"profile": {
"name": "string",
"profileLocationGroups": [
{
"id": "string",
"locations": "string",
"locationsToAdd": "string",
"locationsToRemove": "string",
"zonesToCreate": "string",
"zonesToUpdate": "string"
}
],
"locationGroupsToCreate": [
{
"id": "string",
"locations": "string",
"locationsToAdd": "string",
"locationsToRemove": "string",
"zonesToCreate": "string",
"zonesToUpdate": "string"
}
],
"locationGroupsToUpdate": [
{
"id": "string",
"locations": "string",
"locationsToAdd": "string",
"locationsToRemove": "string",
"zonesToCreate": "string",
"zonesToUpdate": "string"
}
],
"locationGroupsToDelete": [
"string"
],
"variantsToAssociate": [
"string"
],
"variantsToDissociate": [
"string"
],
"zonesToDelete": [
"string"
],
"methodDefinitionsToDelete": [
"string"
],
"conditionsToDelete": [
"string"
],
"sellingPlanGroupsToAssociate": [
"string"
],
"sellingPlanGroupsToDissociate": [
"string"
]
}
}
Response
Read the result with {{deliveryprofilecreate.response.data.data.deliveryProfileCreate}}. If the API returns errors, the step fails and they are at {{deliveryprofilecreate.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?