priceListCreate mutation
Create a price list. You can use the priceListCreate
mutation to create a new price list for a country. This lets you sell your products with international pricing.
Required access
write_products
access scope.
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 |
---|---|
input
(
PriceListCreateInput!
)
required
|
The price list. |
PriceListCreateInput fields
-
contextRule (
PriceListContextRuleInput
)A set of facts about the customer used to determine price list eligibility.
-
currency (
CurrencyCode!
) RequiredThree letter currency code for fixed prices associated with this price list.
-
name (
String!
) RequiredThe unique name of the price list, used as a human-readable identifier.
-
parent (
PriceListParentCreateInput!
) RequiredRelative adjustments to other prices.
Return fields
-
priceList (
PriceList
)The newly created price list.
-
userErrors (
[PriceListUserError!]!
)List of errors that occurred executing the mutation.
Create a price list. You can use the priceListCreate
mutation to create a new price list for a country. This lets you sell your products with international pricing.
Required access
write_products
access scope.
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 |
---|---|
input
(
PriceListCreateInput!
)
required
|
The price list. |
PriceListCreateInput fields
-
contextRule (
PriceListContextRuleInput
)A set of facts about the customer used to determine price list eligibility.
-
currency (
CurrencyCode!
) RequiredThree letter currency code for fixed prices associated with this price list.
-
name (
String!
) RequiredThe unique name of the price list, used as a human-readable identifier.
-
parent (
PriceListParentCreateInput!
) RequiredRelative adjustments to other prices.
Return fields
-
priceList (
PriceList
)The newly created price list.
-
userErrors (
[PriceListUserError!]!
)List of errors that occurred executing the mutation.
Create a price list. You can use the priceListCreate
mutation to create a new price list for a country. This lets you sell your products with international pricing.
Required access
write_products
access scope.
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 |
---|---|
input
(
PriceListCreateInput!
)
required
|
The price list. |
PriceListCreateInput fields
-
contextRule (
PriceListContextRuleInput
)A set of facts about the customer used to determine price list eligibility.
-
currency (
CurrencyCode!
) RequiredThree letter currency code for fixed prices associated with this price list.
-
name (
String!
) RequiredThe unique name of the price list, used as a human-readable identifier.
-
parent (
PriceListParentCreateInput!
) RequiredRelative adjustments to other prices.
Return fields
-
priceList (
PriceList
)The newly created price list.
-
userErrors (
[PriceListUserError!]!
)List of errors that occurred executing the mutation.