younifyd
Menu

priceListFixedPricesByProductUpdate

Sets or removes fixed prices for all variants of a Product on a PriceList. Simplifies pricing management when all variants of a product should have the same price on a price list, rather than setting individual…

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the priceListFixedPricesByProductUpdate action (under Price).
  3. Fill in the fields below, then reference the result from later steps as {{pricelistfixedpricesbyproductupdate.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 PriceListFixedPricesByProductUpdate($pricesToAdd: [PriceListProductPriceInput!], $pricesToDeleteByProductIds: [ID!], $priceListId: ID!) {
  priceListFixedPricesByProductUpdate(
    pricesToAdd: $pricesToAdd
    pricesToDeleteByProductIds: $pricesToDeleteByProductIds
    priceListId: $priceListId
  ) {
    priceList {
      catalog {
        id
        operations
        priceList
        publication
        status
        title
      }
      currency
      fixedPricesCount
      id
      name
      parent {
        adjustment
        settings
      }
    }
    pricesToAddProducts {
      availablePublicationsCount {
        count
        precision
      }
      bodyHtml
      bundleConsolidatedOptions {
        name
        selections
      }
      category {
        ancestorIds
        childrenIds
        fullName
        id
        isArchived
        isLeaf
        isRoot
        level
        name
        parentId
      }
      combinedListing {
        parentProduct
      }
      combinedListingRole
      compareAtPriceRange {
        maxVariantCompareAtPrice
        minVariantCompareAtPrice
      }
      createdAt
      customProductType
      defaultCursor
      descriptionHtml
      descriptionPlainSummary
      featuredImage {
        altText
        height
        id
        originalSrc
        src
        thumbhash
        width
      }
      featuredMedia {
        alt
        id
        mediaContentType
        mediaErrors
        mediaWarnings
        preview
        status
      }
      feedback {
        appFeedback
        details
        summary
      }
      giftCardSettings {
        crossCurrencyRedeemable
        issuanceCurrency
      }
      giftCardTemplateSuffix
      handle
      hasOnlyDefaultVariant
      hasOutOfStockVariants
      hasVariantsThatRequiresComponents
      id
      isGiftCard
      legacyResourceId
      mediaCount {
        count
        precision
      }
      onlineStorePreviewUrl
      onlineStoreUrl
      priceRange {
        maxVariantPrice
        minVariantPrice
      }
      priceRangeV2 {
        maxVariantPrice
        minVariantPrice
      }
      productCategory {
        productTaxonomyNode
      }
      productComponentsCount {
        count
        precision
      }
      productType
      publishedAt
      publishedOnCurrentChannel
      publishedOnCurrentPublication
      requiresSellingPlan
      resourcePublicationOnCurrentPublication {
        isPublished
        publication
        publishDate
        publishable
      }
      sellingPlanGroupCount
      sellingPlanGroupsCount {
        count
        precision
      }
      seo {
        description
        title
      }
      standardizedProductType {
        productTaxonomyNode
      }
      status
      storefrontId
      tags
      templateSuffix
      title
      totalInventory
      totalVariants
      tracksInventory
      updatedAt
      variantsCount {
        count
        precision
      }
      vendor
    }
    pricesToDeleteProducts {
      availablePublicationsCount {
        count
        precision
      }
      bodyHtml
      bundleConsolidatedOptions {
        name
        selections
      }
      category {
        ancestorIds
        childrenIds
        fullName
        id
        isArchived
        isLeaf
        isRoot
        level
        name
        parentId
      }
      combinedListing {
        parentProduct
      }
      combinedListingRole
      compareAtPriceRange {
        maxVariantCompareAtPrice
        minVariantCompareAtPrice
      }
      createdAt
      customProductType
      defaultCursor
      descriptionHtml
      descriptionPlainSummary
      featuredImage {
        altText
        height
        id
        originalSrc
        src
        thumbhash
        width
      }
      featuredMedia {
        alt
        id
        mediaContentType
        mediaErrors
        mediaWarnings
        preview
        status
      }
      feedback {
        appFeedback
        details
        summary
      }
      giftCardSettings {
        crossCurrencyRedeemable
        issuanceCurrency
      }
      giftCardTemplateSuffix
      handle
      hasOnlyDefaultVariant
      hasOutOfStockVariants
      hasVariantsThatRequiresComponents
      id
      isGiftCard
      legacyResourceId
      mediaCount {
        count
        precision
      }
      onlineStorePreviewUrl
      onlineStoreUrl
      priceRange {
        maxVariantPrice
        minVariantPrice
      }
      priceRangeV2 {
        maxVariantPrice
        minVariantPrice
      }
      productCategory {
        productTaxonomyNode
      }
      productComponentsCount {
        count
        precision
      }
      productType
      publishedAt
      publishedOnCurrentChannel
      publishedOnCurrentPublication
      requiresSellingPlan
      resourcePublicationOnCurrentPublication {
        isPublished
        publication
        publishDate
        publishable
      }
      sellingPlanGroupCount
      sellingPlanGroupsCount {
        count
        precision
      }
      seo {
        description
        title
      }
      standardizedProductType {
        productTaxonomyNode
      }
      status
      storefrontId
      tags
      templateSuffix
      title
      totalInventory
      totalVariants
      tracksInventory
      updatedAt
      variantsCount {
        count
        precision
      }
      vendor
    }
    userErrors {
      code
      field
      message
    }
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

pricesToAddarray<object>

A list of `PriceListProductPriceInput` that identifies which products to update the fixed prices for.

productIdstringrequired
priceobjectrequired2 fields
compareAtPriceobject2 fields
pricesToDeleteByProductIdsarray<string>

A list of product IDs that identifies which products to remove the fixed prices for.

priceListIdstringrequired

The price list to update the prices for.

json
{
  "priceListId": "string",
  "pricesToAdd": [
    {
      "productId": "string",
      "price": {
        "amount": "string",
        "currencyCode": "string"
      },
      "compareAtPrice": {
        "amount": "string",
        "currencyCode": "string"
      }
    }
  ],
  "pricesToDeleteByProductIds": [
    "string"
  ]
}

Response

Read the result with {{pricelistfixedpricesbyproductupdate.response.data.data.priceListFixedPricesByProductUpdate}}. If the API returns errors, the step fails and they are at {{pricelistfixedpricesbyproductupdate.response.data.errors}}.

priceListobject
catalogobject6 fields
currencystring

One ofUSDEURGBPCADAFNALLDZDAOAARSAMDAWGAUDBBDAZNBDTBSDBHDBIFBYNBZDBMDBTNBAMBRLBOBBWPBNDBGNMMKKHRCVEKYDXAFCLPCNYCOPKMFCDFCRCHRK

fixedPricesCountnumber
idstring
namestring
parentobject2 fields
pricesToAddProductsarray<object>
availablePublicationsCountobject
bodyHtmlobject
bundleConsolidatedOptionsobject
categoryobject
combinedListingobject
combinedListingRoleobject
compareAtPriceRangeobject
createdAtobject
customProductTypeobject
defaultCursorobject
descriptionHtmlobject
descriptionPlainSummaryobject
featuredImageobject
featuredMediaobject
feedbackobject
giftCardSettingsobject
giftCardTemplateSuffixobject
handleobject
hasOnlyDefaultVariantobject
hasOutOfStockVariantsobject
hasVariantsThatRequiresComponentsobject
idobject
isGiftCardobject
legacyResourceIdobject
mediaCountobject
onlineStorePreviewUrlobject
onlineStoreUrlobject
priceRangeobject
priceRangeV2object
productCategoryobject
productComponentsCountobject
productTypeobject
publishedAtobject
publishedOnCurrentChannelobject
publishedOnCurrentPublicationobject
requiresSellingPlanobject
resourcePublicationOnCurrentPublicationobject
sellingPlanGroupCountobject
sellingPlanGroupsCountobject
seoobject
pricesToDeleteProductsarray<object>
availablePublicationsCountobject
bodyHtmlobject
bundleConsolidatedOptionsobject
categoryobject
combinedListingobject
combinedListingRoleobject
compareAtPriceRangeobject
createdAtobject
customProductTypeobject
defaultCursorobject
descriptionHtmlobject
descriptionPlainSummaryobject
featuredImageobject
featuredMediaobject
feedbackobject
giftCardSettingsobject
giftCardTemplateSuffixobject
handleobject
hasOnlyDefaultVariantobject
hasOutOfStockVariantsobject
hasVariantsThatRequiresComponentsobject
idobject
isGiftCardobject
legacyResourceIdobject
mediaCountobject
onlineStorePreviewUrlobject
onlineStoreUrlobject
priceRangeobject
priceRangeV2object
productCategoryobject
productComponentsCountobject
productTypeobject
publishedAtobject
publishedOnCurrentChannelobject
publishedOnCurrentPublicationobject
requiresSellingPlanobject
resourcePublicationOnCurrentPublicationobject
sellingPlanGroupCountobject
sellingPlanGroupsCountobject
seoobject
userErrorsarray<object>
codeobject
fieldobject
messageobject

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

priceListFixedPricesByProductUpdate — Shopify — Documentation