Logo
Ecartapi.com Public API Documentation

Get product variants

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

Searches for all the registered variants of a single product.

Important information:

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Authorization
string




RESPONSES

status OK

{ "success": true, "variants": [ { "id": "44e5f2e7-12ac-4fd0-a9f0-a5c12ced5883", "productId": "5f7758c5d0b9092f25e2b7a5", "name": null, "price": "12.95", "sku": "SQ0557856", "imageId": "5f7b6433276e4125dc0a94ad", "fulfillmentService": null, "option1": "Habanero", "option2": null, "option3": null, "dimensions": { "width": "5", "height": "5", "length": "7", "weight": "2" }, "units": { "width": "INCH", "height": "INCH", "length": "INCH", "weight": "POUND" }, "inventory": { "itemId": null, "quantity": "10" }, "requireShipping": null, "dates": { "createdAt": null, "updatedAt": null } }, { "id": "7a45494d-c7c1-4f02-86bd-28b83450dd5f", "productId": "5f7758c5d0b9092f25e2b7a5", "name": null, "price": "11.95", "sku": "SQ0557886", "imageId": "5f7b5dfd276e4125dc0a9368", "fulfillmentService": null, "option1": "Chipotle", "option2": null, "option3": null, "dimensions": { "width": "5", "height": "5", "length": "7", "weight": "2" }, "units": { "width": "INCH", "height": "INCH", "length": "INCH", "weight": "POUND" }, "inventory": { "itemId": null, "quantity": "10" }, "requireShipping": null, "dates": { "createdAt": null, "updatedAt": null } } ] }



Curl
curl -X GET 'https://api.ecartapi.com/api/v2/products/productId/variants' -H 'Authorization: access_token'

ENDPOINTS