Logo
Ecartapi.com Public API Documentation

Get all 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": "sku_cl0ipt4rd0006v8oihhi43e4s", "productId": "prd_cl0ipt4q40000v8oi860o07me", "name": "Azul", "upc": null, "price": "100", "sku": "sku_cl0ipt4rd0006v8oihhi43e4s", "imageId": null, "fulfillmentService": null, "option1": null, "option2": null, "option3": null, "dimensions": { "width": null, "height": null, "length": null, "weight": "1" }, "units": { "width": null, "height": null, "length": null, "weight": "kg" }, "inventory": { "itemId": null, "quantity": null }, "requireShipping": null, "bundled": null, "dates": { "createdAt": "1646779186", "updatedAt": "1646860132" } }, { "id": "sku_cl0k203740000iwoap9mxfs8w", "productId": "prd_cl0ipt4q40000v8oi860o07me", "name": "Verde", "upc": null, "price": "100", "sku": "sku_cl0k203740000iwoap9mxfs8w", "imageId": null, "fulfillmentService": null, "option1": null, "option2": null, "option3": null, "dimensions": { "width": null, "height": null, "length": null, "weight": "1" }, "units": { "width": null, "height": null, "length": null, "weight": "kg" }, "inventory": { "itemId": null, "quantity": null }, "requireShipping": null, "bundled": null, "dates": { "createdAt": "1646860132", "updatedAt": "1646860132" } }, { "id": "sku_cl0k2037i0001iwoawy8se4df", "productId": "prd_cl0ipt4q40000v8oi860o07me", "name": "Rojo", "upc": null, "price": "100", "sku": "sku_cl0k2037i0001iwoawy8se4df", "imageId": null, "fulfillmentService": null, "option1": null, "option2": null, "option3": null, "dimensions": { "width": null, "height": null, "length": null, "weight": "1" }, "units": { "width": null, "height": null, "length": null, "weight": "kg" }, "inventory": { "itemId": null, "quantity": null }, "requireShipping": null, "bundled": null, "dates": { "createdAt": "1646860132", "updatedAt": "1646860132" } } ] }



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

ENDPOINTS