Menu
priceListFixedPricesUpdate
Updates fixed prices on a PriceList. This mutation lets you add new fixed prices for specific ProductVariant objects and remove existing prices in a single operation.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the priceListFixedPricesUpdate action (under Price).
- Fill in the fields below, then reference the result from later steps as
{{pricelistfixedpricesupdate.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 PriceListFixedPricesUpdate($priceListId: ID!, $pricesToAdd: [PriceListPriceInput!]!, $variantIdsToDelete: [ID!]!) {
priceListFixedPricesUpdate(
priceListId: $priceListId
pricesToAdd: $pricesToAdd
variantIdsToDelete: $variantIdsToDelete
) {
deletedFixedPriceVariantIds
priceList {
catalog {
id
operations
priceList
publication
status
title
}
currency
fixedPricesCount
id
name
parent {
adjustment
settings
}
}
pricesAdded {
compareAtPrice {
amount
currencyCode
}
originType
price {
amount
currencyCode
}
variant {
availableForSale
availablePublicationsCount
barcode
compareAtPrice
createdAt
defaultCursor
deliveryProfile
displayName
id
inventoryItem
inventoryPolicy
inventoryQuantity
legacyResourceId
position
price
product
publishedOnCurrentChannel
publishedOnCurrentPublication
requiresComponents
selectedOptions
sellableOnlineQuantity
sellingPlanGroupCount
sellingPlanGroupsCount
showUnitPrice
sku
storefrontId
taxCode
taxable
title
unitPrice
unitPriceMeasurement
updatedAt
}
}
userErrors {
code
field
message
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"priceListId": "string",
"pricesToAdd": [
{
"variantId": "string",
"price": {
"amount": "string",
"currencyCode": "string"
},
"compareAtPrice": {
"amount": "string",
"currencyCode": "string"
}
}
],
"variantIdsToDelete": [
"string"
]
}
Response
Read the result with {{pricelistfixedpricesupdate.response.data.data.priceListFixedPricesUpdate}}. If the API returns errors, the step fails and they are at {{pricelistfixedpricesupdate.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?