Skip to main content

Get Product Variants

GET {{baseUrl}}/product-catalogs/:publicId/variants

Description

This API is used to retrieve variants of a product from the product catalog based on the specified publicId.

Request

  • Headers:
    • Accept: /
  • URL: {{baseUrl}}/product-catalogs/:publicId/variants
  • Path Variable:
    • publicId: (Required) - The public ID of the product for which variants are to be retrieved.

Response

  • Status: OK (200)
  • Content-Type: /

Sample Request

curl --location -g '{{baseUrl}}/product-catalogs/:publicId/variants' \
--header 'Accept: */*'

Sample Response

{
"message": "",
"data": [
{
"publicId": "",
"variantTypeId": "",
"productPublicId": "",
"productName": "",
"variantName": "",
"variantDescription": "",
"sku": "",
"costPrice": "",
"status": "",
"approvalStatus": "",
"imageCatalogs": {}
},
{
"publicId": "",
"variantTypeId": "",
"productPublicId": "",
"productName": "",
"variantName": "",
"variantDescription": "",
"sku": "",
"costPrice": "",
"status": "",
"approvalStatus": "",
"imageCatalogs": {}
}
],
"meta": {
"currentPage": "",
"from": "",
"to": "",
"perPage": "",
"total": "",
"lastPage": ""
}
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request GET \ 
--url /product-catalogs/:publicId/variants \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!