API ReferenceProductsGet single product by ID

Get single product by ID

GET
/products/{id}

Authorization

x-api-key<token>

API Key authentication via header

In: header

Path Parameters

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

Product details

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "sku": "JEANS-BLK-001",
  "name": "Classic Oversized JEANS T-Shirt",
  "description": "Premium 240 GSM heavy cotton JEANS with modern oversized fit",
  "attributes": {
    "Color": "Black",
    "Material": "100% Organic Cotton",
    "Fit": "Oversized"
  },
  "status": "active",
  "orgId": "25b2c2d5-a7fc-47d0-89e4-8709a1560bfa",
  "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "deletedAt": "2019-08-24T14:15:22Z"
}