Get a single product variant
GET https://api.ecartapi.com/api/v2/products/{{productId}}/variants/{{id}}
Searches for the selected variant and shows the detailed information.
Important information:
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |
RESPONSES
status: OK
{"success":true,"variant":{"id":"be5ef5d1-cb2d-494f-ad56-d46908b46b4e","productId":"c1813dcf-4f3e-45cf-980a-9f3193c9a740","name":"NewSku","upc":null,"price":"150","currency":"MXN","sku":"NewSku","imageId":null,"fulfillmentService":null,"option1":"black","option2":null,"option3":null,"dimensions":{"width":null,"height":null,"length":null,"weight":null},"units":{"width":null,"height":null,"length":null,"weight":"kg"},"inventory":{"itemId":null,"quantity":null},"requireShipping":null,"bundled":null,"dates":{"createdAt":null,"updatedAt":null}}}