Logo
Ecartapi.com Public API Documentation

Get single product variant

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

Searches for a selected variant of a product.

Important information:

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Authorization
string




RESPONSES

status OK

{ "success": true, "variant": { "id": "33933057213", "productId": null, "name": null, "price": "10", "sku": null, "fulfillmentService": null, "createdAt": null, "updatedAt": null, "weight": null, "weightUnit": null, "inventoryItemId": null, "inventoryQuantity": "1" } }



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

ENDPOINTS