Get product variants

GET https://api.ecartapi.com/api/v2/products/{{id}}/variants

Searches for all the registered variants of a single product.

For more information, visit the documentation

**Important information:

**

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{"success":true,"variants":[{"id":"0ea19f88-d037-41ec-aff1-9f305ff05191","productId":"8170ae05-aaa6-4d36-870e-92f194cc7c36","name":"red","upc":null,"price":"100.00","sku":"12345678","imageId":"c7c8d026-7fe1-48a1-b931-e974ff7acac5","fulfillmentService":null,"option1":"red","option2":null,"option3":null,"dimensions":{"width":null,"height":null,"length":null,"weight":"10.00"},"units":{"width":null,"height":null,"length":null,"weight":"kg"},"inventory":{"itemId":null,"quantity":"10"},"requireShipping":null,"bundled":null,"dates":{"createdAt":"2021-12-16T17:03:57Z","updatedAt":"2021-12-16T17:06:59Z"}},{"id":"a3e52ffb-19bb-41aa-a35c-d703797e924b","productId":"8170ae05-aaa6-4d36-870e-92f194cc7c36","name":"blue","upc":null,"price":"101.00","sku":"0123","imageId":"c7c8d026-7fe1-48a1-b931-e974ff7acac5","fulfillmentService":null,"option1":"blue","option2":null,"option3":null,"dimensions":{"width":null,"height":null,"length":null,"weight":"0.00"},"units":{"width":null,"height":null,"length":null,"weight":"kg"},"inventory":{"itemId":null,"quantity":null},"requireShipping":null,"bundled":null,"dates":{"createdAt":"2021-12-16T17:03:57Z","updatedAt":"2021-12-16T17:03:57Z"}}]}