Anchor to priceListFixedPricesByProductBulkUpdateprice
price List Fixed Prices By Product Bulk Update
mutation
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.
Anchor to Arguments
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.
Was this section helpful?
Anchor to PriceListFixedPricesByProductBulkUpdatePayload returnsPrice List Fixed Prices By Product Bulk Update Payload returns
- •
The asynchronous job that will perform the bulk update.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation priceListFixedPricesByProductBulkUpdate($priceListId: ID!, $pricesToAdd: [PriceListProductPriceInput!], $pricesToDeleteByProductIds: [ID!]) {
priceListFixedPricesByProductBulkUpdate(priceListId: $priceListId, pricesToAdd: $pricesToAdd, pricesToDeleteByProductIds: $pricesToDeleteByProductIds) {
job {
# Job fields
}
userErrors {
field
message
}
}
}
Input
{
"priceListId": "gid://shopify/<objectName>/10079785100",
"pricesToAdd": [
{
"price": {
"amount": "29.99",
"currencyCode": ""
},
"productId": "gid://shopify/<objectName>/10079785100"
}
],
"pricesToDeleteByProductIds": [
"gid://shopify/<objectName>/10079785100"
]
}
{
"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!
}