priceListFixedPricesUpdate
Requires access scope. Also: The user must have permission to create and edit catalogs.
Updates fixed prices on a price list. You can use the mutation to set a fixed price for specific product variants or to delete prices for variants associated with the price list.
Arguments
- Anchor to priceListIdprice•
List Id ID!required The price list that the prices will be updated against.
- Anchor to pricesToAddprices•
To Add [PriceList requiredPrice Input!]! The fixed prices to add.
- Anchor to variantIdsToDeletevariant•
Ids To Delete [ID!]!required A list of product variant IDs to remove from the price list.
Anchor to PriceListFixedPricesUpdatePayload returnsPriceListFixedPricesUpdatePayload returns
- Anchor to deletedFixedPriceVariantIdsdeleted•
Fixed Price Variant Ids A list of deleted variant IDs for prices.
- Anchor to priceListprice•
List The price list for which the fixed prices were modified.
- Anchor to pricesAddedprices•
Added The prices that were added to the price list.
- Anchor to userErrorsuser•
Errors [PriceList non-nullPrice User Error!]! The list of errors that occurred from executing the mutation.
Mutation Reference
Input
{
"priceListId": "gid://shopify/<objectName>/10079785100",
"pricesToAdd": [
{
"compareAtPrice": {
"amount": "29.99",
"currencyCode": ""
},
"price": {
"amount": "29.99",
"currencyCode": ""
},
"variantId": "gid://shopify/<objectName>/10079785100"
}
],
"variantIdsToDelete": [
"gid://shopify/<objectName>/10079785100"
]
}
input PriceListPriceInput {
compareAtPrice: MoneyInput
price: MoneyInput!
variantId: ID!
}
input MoneyInput {
amount: Decimal!
currencyCode: CurrencyCode!
}