Get all product variants
GET https://api.ecartapi.com/api/v2/products/{{productId}}/variants
Returns a list of product Variants. Optional parameters can be passed in.
More information about the ecommerce's resource.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
limit | string | Max limit of results to be sent in the response |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"success":true,"variants":[{"id":"561","productId":"315","name":null,"upc":null,"price":"549","currency":null,"sku":"2280101U48138","imageId":null,"fulfillmentService":null,"option1":"38","option2":null,"option3":null,"dimensions":{"width":null,"height":null,"length":null,"weight":null},"units":{"width":"cm","height":"cm","length":"cm","weight":"kg"},"inventory":{"itemId":null,"quantity":"3"},"requireShipping":null,"bundled":null,"dates":{"createdAt":null,"updatedAt":null}},{"id":"562","productId":"315","name":null,"upc":null,"price":"549","currency":null,"sku":"2280101U48139","imageId":null,"fulfillmentService":null,"option1":"39","option2":null,"option3":null,"dimensions":{"width":null,"height":null,"length":null,"weight":null},"units":{"width":"cm","height":"cm","length":"cm","weight":"kg"},"inventory":{"itemId":null,"quantity":"3"},"requireShipping":null,"bundled":null,"dates":{"createdAt":null,"updatedAt":null}}]}