Skip to main content

Product API Response

This document provides a detailed breakdown of the JSON structure returned by product-related API endpoints.

There are two main response types:

  1. Product API Response - Returns product collections with variants nested inside
  2. Variant Response - Returns individual variant details
tip

If you're looking for how to call the endpoints, refer back to the Product API Overview.


1. Product API Success Response (200 OK)​

Used when fetching product collections. Each product contains multiple variants.

Response Structure​

FieldTypeDescription
messageStringStatus message indicating the result of the operation
dataProductDataContains the list of products and pagination details
sourceStringSource of the product data (e.g., "unisouk")

Product Data​

FieldTypeDescription
productsArray of ProductList of product objects
paginationPaginationPagination metadata

Product Object​

FieldTypeDescription
idStringUnique identifier for the product
titleStringProduct title
hsnCodeStringHSN code for tax classification
storeIdStringStore ID associated with the product
subCategoryNameStringProduct sub-category name
categoryNameStringProduct category name
originCountryStringCountry of origin (ISO code)
slugStringURL-friendly product identifier
brandNameStringBrand name of the product
imagesArray of ImageProduct images

Extended Product Object​

FieldTypeDescription
idStringUnique identifier for the product
titleStringProduct title
descriptionStringProduct description
hsnCodeStringHSN code for tax classification
storeIdStringStore ID associated with the product
subCategoryNameStringProduct sub-category name
categoryNameStringProduct category name
originCountryStringCountry of origin (ISO code)
slugStringURL-friendly product identifier
variationAttributeArrayList of product variation attributes
brandNameStringBrand name of the product
productMeasurementProductMeasurementPhysical dimensions and weight
manufacturingInfoManufacturingInfoManufacturing/packaging details
imagesArray of ImageProduct images
totalVariantsNumberNumber of Variant of product

Product Object With Variants​

FieldTypeDescription
idStringUnique identifier for the product
titleStringProduct title
descriptionStringProduct description
hsnCodeStringHSN code for tax classification
storeIdStringStore ID associated with the product
subCategoryNameStringProduct sub-category name
categoryNameStringProduct category name
originCountryStringCountry of origin (ISO code)
slugStringURL-friendly product identifier
variationAttributeArrayList of product variation attributes
brandNameStringBrand name of the product
productMeasurementProductMeasurementPhysical dimensions and weight
manufacturingInfoManufacturingInfoManufacturing/packaging details
imagesArray of ImageProduct images
variantsArray of ProductVariantProduct variants (nested)

Product Variant​

Variants nested within products in the Product API Response:

FieldTypeDescription
idStringUnique identifier for the variant
imagesArray of ImageVariant-specific images
skuStringStock keeping unit
priceNumberCurrent selling price
mrpNumberMaximum retail price
onHandNumberQuantity available in inventory
allocatedNumberQuantity reserved in orders
attributesAttributesVariant-specific attributes

2. Variant API Success Response (200 OK)​

Used when fetching individual variant details. Contains complete variant information including parent product details.

Response Structure​

FieldTypeDescription
messageStringStatus message indicating the result of the operation
dataVariantDataContains variant details and pagination
sourceStringSource of the variant data (e.g., "unisouk")

Variant Data​

FieldTypeDescription
variantsArray of VariantList of variant objects
paginationPaginationPagination metadata

Variant Object​

Complete variant information including parent product details:

FieldTypeDescription
productIdStringParent product ID
variantIdStringUnique identifier for the variant
storeIdStringStore ID associated with the variant
titleStringProduct title
descriptionStringProduct description
slugStringURL-friendly product identifier
skuStringStock keeping unit
subCategoryNameStringProduct sub-category name
categoryNameStringProduct category name
originCountryStringCountry of origin (ISO country code)
brandNameStringBrand name of the product
productMeasurementProductMeasurementPhysical dimensions and weight of the product
manufacturingInfoManufacturingInfoManufacturing/packaging details
imagesArray of ImageList of variant images
priceNumberCurrent selling price
mrpNumberMaximum retail price
onHandNumberQuantity available in inventory
allocatedNumberQuantity reserved in orders
attributesAttributesVariant-specific attributes

Shared Data Objects​

Product Measurement​

FieldTypeDescription
dimensionsDimensionsProduct physical dimensions

Dimensions Object​

FieldTypeDescription
weightMeasurementProduct weight
lengthMeasurementProduct length
widthMeasurementProduct width
heightMeasurementProduct height

Measurement Unit​

FieldTypeDescription
valueNumberMeasurement value
unitStringUnit of measurement

Manufacturing Info​

FieldTypeDescription
manufacturerOrPackerNameStringName of manufacturer/packer
manufacturerOrPackerAddressStringAddress of manufacturer/packer
monthOfManufactureOrPackingStringManufacturing/packing date

Image Object​

FieldTypeDescription
positionNumberDisplay order of image
urlStringURL of the image

Attributes Object​

AttributeTypeDescription
SizeSizeSize-related attributes
ColorColorColor-related attributes

Size Attribute​

FieldTypeDescription
nameStringAttribute name
brandStringBrand-specific attribute
valueObjectAttribute value
genderMale | FemaleGender specification (if any)
displayNameStringUser-friendly attribute name

Color Attribute​

FieldTypeDescription
valueObject/StringAttribute value
displayNameStringUser-friendly attribute name
hexCodeStringColor hex code

Pagination Object​

FieldTypeDescription
totalItemsNumberTotal number of items available
currentPageNumberCurrent page number
totalPagesNumberTotal number of pages
pageSizeNumberNumber of items per page

Key Differences Summary​

AspectProduct API ResponseVariant API Response
Primary FocusProduct collectionsIndividual variants
VariantsNested within productsTop-level objects
Variant DetailsLimited (id, sku, price, etc.)Complete (includes parent product info)
Use CaseBrowse product catalogGet detailed variant information
Data Structuredata.products[].variants[]data.variants[]