Menu
priceListFixedPricesDelete
Deletes specific fixed prices from a price list using a product variant ID. You can use the priceListFixedPricesDelete mutation to delete a set of fixed prices from a price list.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the priceListFixedPricesDelete action (under Price).
- Fill in the fields below, then reference the result from later steps as
{{pricelistfixedpricesdelete.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 PriceListFixedPricesDelete($priceListId: ID!, $variantIds: [ID!]!) {
priceListFixedPricesDelete(priceListId: $priceListId, variantIds: $variantIds) {
deletedFixedPriceVariantIds
userErrors {
code
field
message
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"priceListId": "string",
"variantIds": [
"string"
]
}
Response
Read the result with {{pricelistfixedpricesdelete.response.data.data.priceListFixedPricesDelete}}. If the API returns errors, the step fails and they are at {{pricelistfixedpricesdelete.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?