priceListFixedPricesAdd mutation
Creates or updates fixed prices on a price list. You can use the priceListFixedPricesAdd
mutation to set a fixed price for specific product variants. This lets you change product variant pricing on a per country basis. Any existing fixed price list prices for these variants will be overwritten.
Required access
write_products
access scope. Also: The shop has the international_price_overrides feature.
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
priceListId
(
ID!
)
required
|
The price list that the prices will be added to. |
prices
(
[PriceListPriceInput!]!
)
required
|
The fixed prices to add. |
PriceListPriceInput fields
-
compareAtPrice (
MoneyInput
)The compare-at price of the product variant on this price list.
-
price (
MoneyInput!
) RequiredThe price of the product variant on this price list.
-
variantId (
ID!
) RequiredThe product variant ID associated with the price list price.
Return fields
-
prices (
[PriceListPrice!]
)The prices that were added to the price list.
-
userErrors (
[PriceListPriceUserError!]!
)List of errors that occurred executing the mutation.
Creates or updates fixed prices on a price list. You can use the priceListFixedPricesAdd
mutation to set a fixed price for specific product variants. This lets you change product variant pricing on a per country basis. Any existing fixed price list prices for these variants will be overwritten.
Required access
write_products
access scope. Also: The shop has the international_price_overrides feature.
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
priceListId
(
ID!
)
required
|
The price list that the prices will be added to. |
prices
(
[PriceListPriceInput!]!
)
required
|
The fixed prices to add. |
PriceListPriceInput fields
-
compareAtPrice (
MoneyInput
)The compare-at price of the product variant on this price list.
-
price (
MoneyInput!
) RequiredThe price of the product variant on this price list.
-
variantId (
ID!
) RequiredThe product variant ID associated with the price list price.
Return fields
-
prices (
[PriceListPrice!]
)The prices that were added to the price list.
-
userErrors (
[PriceListPriceUserError!]!
)List of errors that occurred executing the mutation.
Creates or updates fixed prices on a price list. You can use the priceListFixedPricesAdd
mutation to set a fixed price for specific product variants. This lets you change product variant pricing on a per country basis. Any existing fixed price list prices for these variants will be overwritten.
Required access
write_products
access scope. Also: The shop has the international_price_overrides feature.
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
priceListId
(
ID!
)
required
|
The price list that the prices will be added to. |
prices
(
[PriceListPriceInput!]!
)
required
|
The fixed prices to add. |
PriceListPriceInput fields
-
compareAtPrice (
MoneyInput
)The compare-at price of the product variant on this price list.
-
price (
MoneyInput!
) RequiredThe price of the product variant on this price list.
-
variantId (
ID!
) RequiredThe product variant ID associated with the price list price.
Return fields
-
prices (
[PriceListPrice!]
)The prices that were added to the price list.
-
userErrors (
[PriceListPriceUserError!]!
)List of errors that occurred executing the mutation.