priceListFixedPricesByProductUpdate
Requires access scope. Also: The user must have permission to create and edit catalogs.
Updates the fixed prices for all variants for a product on a price list. You can use the mutation to set or remove a fixed price for all variants of a product associated with the price list.
Arguments
- Anchor to priceListIdprice•
List Id ID!required The price list to update the prices for.
- Anchor to pricesToAddprices•
To Add A list of
that identifies which products to update the fixed prices for.
- Anchor to pricesToDeleteByProductIdsprices•
To Delete By Product Ids A list of product IDs that identifies which products to remove the fixed prices for.
Anchor to PriceListFixedPricesByProductUpdatePayload returnsPriceListFixedPricesByProductUpdatePayload returns
- Anchor to priceListprice•
List The price list for which the fixed prices were modified.
- Anchor to pricesToAddProductsprices•
To Add Products The product for which the fixed prices were added.
- Anchor to pricesToDeleteProductsprices•
To Delete Products The product for which the fixed prices were deleted.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Mutation Reference
Input
{
"priceListId": "gid://shopify/<objectName>/10079785100",
"pricesToAdd": [
{
"price": {
"amount": "29.99",
"currencyCode": ""
},
"productId": "gid://shopify/<objectName>/10079785100"
}
],
"pricesToDeleteByProductIds": [
"gid://shopify/<objectName>/10079785100"
]
}
input PriceListProductPriceInput {
price: MoneyInput!
productId: ID!
}
input MoneyInput {
amount: Decimal!
currencyCode: CurrencyCode!
}