Show Variant
GET https://api.salla.dev/admin/v2/products/variants/:variant
This endpoint allows you to return the complete details for a specific variant by providing the ID of the variant you want to get its details in the variant path parameter.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"status":"\u003cnumber\u003e","success":"\u003cboolean\u003e","data":{"id":"\u003cinteger\u003e","price":{"amount":"\u003cnumber\u003e","currency":"\u003cstring\u003e"},"regular_price":{"amount":"\u003cnumber\u003e","currency":"\u003cstring\u003e"},"sale_price":{"amount":"\u003cnumber\u003e","currency":"\u003cstring\u003e"},"stock_quantity":"\u003cinteger\u003e","barcode":"\u003cstring\u003e","sku":"\u003cstring\u003e","related_option_values":["\u003cinteger\u003e","\u003cinteger\u003e"],"is_default":"\u003cboolean\u003e","weight":"\u003cnumber\u003e","weight_type":"\u003cstring\u003e","weight_label":"\u003cstring\u003e"}}