--- title: priceListFixedPricesByProductUpdate - GraphQL Admin description: |- Sets or removes fixed prices for all variants of a [`Product`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Product) on a [`PriceList`](https://shopify.dev/docs/api/admin-graphql/latest/objects/PriceList). Simplifies pricing management when all variants of a product should have the same price on a price list, rather than setting individual variant prices. When you add a fixed price for a product, all its [`ProductVariant`](https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductVariant) objects receive the same price on the price list. When you remove a product's fixed prices, all variant prices revert to the price list's adjustment rules. 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. Sets or removes fixed prices for all variants of a [`Product`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Product) on a [`PriceList`](https://shopify.dev/docs/api/admin-graphql/latest/objects/PriceList). Simplifies pricing management when all variants of a product should have the same price on a price list, rather than setting individual variant prices. When you add a fixed price for a product, all its [`ProductVariant`](https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductVariant) objects receive the same price on the price list. When you remove a product's fixed prices, all variant prices revert to the price list's adjustment rules. ## 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 ##### Variables ```json { "pricesToAdd": [ { "productId": "gid://shopify//10079785100", "price": { "amount": "29.99", "currencyCode": "USD" }, "compareAtPrice": { "amount": "29.99", "currencyCode": "USD" } } ], "pricesToDeleteByProductIds": [ "gid://shopify//10079785100" ], "priceListId": "gid://shopify//10079785100" } ``` ##### Schema ```graphql input PriceListProductPriceInput { productId: ID! price: MoneyInput! compareAtPrice: MoneyInput } input MoneyInput { amount: Decimal! currencyCode: CurrencyCode! } ```