younifyd
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

  1. Add a step and choose the Shopify connector.
  2. Pick the priceListFixedPricesUpdate action (under Price).
  3. 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.

graphql
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.

priceListIdstringrequired

The price list that the prices will be updated against.

pricesToAddarray<object>required

The fixed prices to add.

variantIdstringrequired
priceobjectrequired2 fields
compareAtPriceobject2 fields
variantIdsToDeletearray<string>required

A list of product variant IDs to remove from the price list.

json
{
  "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}}.

deletedFixedPriceVariantIdsarray<string>
priceListobject
catalogobject6 fields
currencystring

One ofUSDEURGBPCADAFNALLDZDAOAARSAMDAWGAUDBBDAZNBDTBSDBHDBIFBYNBZDBMDBTNBAMBRLBOBBWPBNDBGNMMKKHRCVEKYDXAFCLPCNYCOPKMFCDFCRCHRK

fixedPricesCountnumber
idstring
namestring
parentobject2 fields
pricesAddedarray<object>
compareAtPriceobject
originTypeobject
priceobject
variantobject
userErrorsarray<object>
codeobject
fieldobject
messageobject

Need more? See the Shopify guide for connection setup and behaviour shared by every action.