Retrieve a list of product variants
Retrieve a list of product variants.
Authorizations:Token, JWT
Query Parameters
product_id required | integer |
page | integerDefault: 1 The collection page number |
Query Parameters
product_id required | integer |
page | integerDefault: 1 The collection page number |
Responses
200Product Variant collection
Response schema:
Product Variant collection Array
sale_discount_type | string | ||||||||
sale_price_value | number | ||||||||
default_sale_price | boolean | ||||||||
cost_price | number | ||||||||
id | integer>= 0 | ||||||||
price | number | ||||||||
default_price | boolean | ||||||||
amount | integer | ||||||||
default_amount | boolean | ||||||||
weight | number | ||||||||
default_weight | boolean | ||||||||
default_variant | boolean | ||||||||
sku | string | ||||||||
image | object or null | ||||||||
| |||||||||
attribute_checkbox_values | Array of integers | ||||||||
attribute_select_values | Array of integers |
401Unauthorized
Response schema:
Unauthorized type | string |
title | string |
detail | string or null |
instance | string or null |
500Internal error
Response schema:
Internal error type | string |
title | string |
detail | string or null |
instance | string or null |