--- title: priceListFixedPricesByProductUpdate - GraphQL Admin description: >- Updates the fixed prices for all variants for a product on a price list. You can use the `priceListFixedPricesByProductUpdate` mutation to set or remove a fixed price for all variants of a product associated with the price list. api_version: unstable api_name: admin source_url: html: >- https://shopify.dev/docs/api/admin-graphql/unstable/mutations/priceListFixedPricesByProductUpdate md: >- https://shopify.dev/docs/api/admin-graphql/unstable/mutations/priceListFixedPricesByProductUpdate.md --- # price​List​Fixed​Prices​By​Product​Update mutation Requires `write_products` 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 `priceListFixedPricesByProductUpdate` mutation to set or remove a fixed price for all variants of a product associated with the price list. ## Arguments * price​List​Id [ID!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/ID) required The price list to update the prices for. * prices​To​Add [\[Price​List​Product​Price​Input!\]](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/PriceListProductPriceInput) A list of `PriceListProductPriceInput` that identifies which products to update the fixed prices for. * prices​To​Delete​By​Product​Ids [\[ID!\]](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/ID) A list of product IDs that identifies which products to remove the fixed prices for. *** ## Price​List​Fixed​Prices​By​Product​Update​Payload returns * price​List [Price​List](https://shopify.dev/docs/api/admin-graphql/unstable/objects/PriceList) The price list for which the fixed prices were modified. * prices​To​Add​Products [\[Product!\]](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Product) The product for which the fixed prices were added. * prices​To​Delete​Products [\[Product!\]](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Product) The product for which the fixed prices were deleted. * user​Errors [\[Price​List​Fixed​Prices​By​Product​Bulk​Update​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/unstable/objects/PriceListFixedPricesByProductBulkUpdateUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### priceListFixedPricesByProductUpdate reference ## Mutation Reference ```graphql mutation priceListFixedPricesByProductUpdate($pricesToAdd: [PriceListProductPriceInput!], $pricesToDeleteByProductIds: [ID!], $priceListId: ID!) { priceListFixedPricesByProductUpdate(pricesToAdd: $pricesToAdd, pricesToDeleteByProductIds: $pricesToDeleteByProductIds, priceListId: $priceListId) { priceList { # PriceList fields } pricesToAddProducts { # Product fields } pricesToDeleteProducts { # Product fields } userErrors { field message } } } ``` ## Input ```json { "pricesToAdd": [ { "productId": "gid://shopify//10079785100", "price": { "amount": "29.99", "currencyCode": "USD" } } ], "pricesToDeleteByProductIds": [ "gid://shopify//10079785100" ], "priceListId": "gid://shopify//10079785100" } ``` ##### Variables ``` { "pricesToAdd": [ { "productId": "gid://shopify//10079785100", "price": { "amount": "29.99", "currencyCode": "USD" } } ], "pricesToDeleteByProductIds": [ "gid://shopify//10079785100" ], "priceListId": "gid://shopify//10079785100" } ``` ##### Schema ``` input PriceListProductPriceInput { productId: ID! price: MoneyInput! } input MoneyInput { amount: Decimal! currencyCode: CurrencyCode! } ```