API ReferenceProduct VariantsGet variant by ID

Get variant by ID

GET
/products/{productId}/variants/{variantId}

Authorization

x-api-key<token>

API Key authentication via header

In: header

Path Parameters

productIdRequiredstring
variantIdRequiredstring
curl -X GET "https://niravai.com/api/v1/products/string/variants/string" \
  -H "x-api-key: <token>"

Variant details

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",
  "sku": "SKU-77777768080-RED-XL",
  "name": "Classic Red Variant",
  "description": "string",
  "options": {
    "Color": "Red",
    "Size": "XL"
  },
  "imageUrl": "http://example.com",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}