Get Single Product API

Overview

Retrieves details of a single product from a catalog using the product’s unique identity. This API is useful when you need complete information for a specific product, including its custom attributes.

Method

GET

Endpoint

GET /v2/catalogs/{catalogId}/products/{productId}

Base URL

https://in1.api.clevertap.com/v2/catalogs/{catalogId}/products/{productId}

Region

Refer Region for more details.

Headers

These headers must be included with every API request to ensure authentication and correct request handling.

HeaderDescriptionRequired
Content-TypeContent type of the request. Must be application/json.Yes
X-CleverTap-Account-IdCleverTap account ID associated with the catalog.Yes
X-CleverTap-PasscodeAPI passcode used to authenticate the request.Yes

Path Parameters

The following path parameters are required to identify the product:

ParameterTypeRequiredDescription
catalogIdNumberYesUnique identifier of the catalog containing the product.
productIdStringYesUnique product identity within the catalog.

Example Request

This example retrieves the product with the identity SKU-12345 from catalog 123.

GET /v2/catalogs/123/products/SKU-12345

Example Response

This example response shows the details of a successfully retrieved product.

{
  "identity": "SKU-12345",
  "name": "Wireless Bluetooth Headphones",
  "imageUrl": "https://example.com/images/headphones.jpg",
  "attributes": {
    "brand": "AudioTech",
    "price": 89.99,
    "category": "Electronics",
    "in_stock": true,
    "rating": 4.5
  },
  "status": "ACTIVE",
  "createdAt": "2023-11-10T10:30:00Z",
  "createdBy": "[email protected]",
  "updatedBy": "[email protected]"
}

Response Parameters

The response includes additional system-generated fields returned for the product.

ParameterTypeDescription
statusstringCurrent status of the product, for example, ACTIVE or INACTIVE.
createdAtstringDate and time when the product was created.
createdBystringEmail address of the user who created the product.
updatedBystringEmail address of the user who last updated the product.

Error Codes

The following error codes may be returned by this API:

Error CodeDescription
PRODUCT_NOT_FOUNDNo product exists with the specified identity in this catalog.
CATALOG_NOT_FOUNDThe specified catalog does not exist.
AUTHENTICATION_FAILEDAuthentication failed due to an invalid or missing token.
AUTHORIZATION_FAILEDThe caller does not have permission to access this product.
INTERNAL_ERRORAn unexpected server-side error occurred.

Did this page help you?
CleverTap Ask AI Widget (CSP-Safe)