Retrieve a product variant
Retrieve a product variant.
Authorizations:Token, JWT
Query Parameters
product_id required | integer |
id required | integer |
Responses
200Product Variant resource
Response schema:
Product Variant resource sale_discount_type | string | ||||||||
sale_price_value | number | ||||||||
default_sale_price | boolean | ||||||||
cost_price | number or null | ||||||||
id | integer>= 0 | ||||||||
price | number | ||||||||
default_price | boolean | ||||||||
amount | integer | ||||||||
default_amount | boolean | ||||||||
weight | number | ||||||||
default_weight | boolean | ||||||||
default_variant | boolean | ||||||||
sku | string or null | ||||||||
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 |
404Resource not found
Response schema:
Resource not found 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 |