createOrUpdateProductPrices
Create or update the prices of a product.
Arguments
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-12008: Unable to find the product.
- KT-CT-12009: Specified product does not have a specification.
- KT-CT-12010: Unable to find the product's specification.
- KT-CT-12011: The list of provided prices contains validation errors.
- KT-CT-12013: Product prices would overwrite existing prices.
- KT-CT-12073: Product prices contain overlapping validity periods.
- KT-CT-12075: Historical prices must start in the past.
- KT-CT-7899: An internal error occurred.
Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
mutation CreateOrUpdateProductPrices($input: CreateOrUpdateProductPricesInput!) {
createOrUpdateProductPrices(input: $input) {
prices {
...ProductPriceFragment
}
}
}
Variables
{
"input": CreateOrUpdateProductPricesInput
}
Response
{
"data": {
"createOrUpdateProductPrices": {
"prices": [ProductPrice]
}
}
}