This section describes the fields that represent various details of a product option exception. Exceptions allow you to define special pricing or availability for specific combinations of product options.
Values
column in the table indicates the expected data type for each field.
Field | Values | Description |
---|---|---|
exception_id | integer | A unique identifier of the exception. |
product_id | integer | A unique identifier of the product that the exception is associated with. |
combination | object | The options and their variants that comprise the exception. |
{ "exception_id": 42, "product_id": 123, "combination": { "option_1": "variant_a", "option_2": "variant_b" } }
The combination object represents the specific set of product options that trigger this exception. Each key in the combination object corresponds to an option ID, and its value corresponds to the variant ID.
Retrieves a specific product option exception by its ID.
{ "exception_id": 42, "product_id": 123, "combination": { "color": "red", "size": "large" }, "price": 29.99, "in_stock": true, "amount": 15 }
Creates a new product option exception.
{ "product_id": 123, "combination": { "color": "blue", "size": "medium" }, "price_modifier": 5.00, "modifier_type": "A" }