The “Create Product” API allows adding a new product to the system. Use this endpoint to create a product with the specified details. Ensure that the required information is provided in the request payload.
API Version
2021-07-28 The name of the product.
"Awesome Product"
The unique identifier for the location.
"3SwdhCsvxI8Au3KsPJt6"
DIGITAL, PHYSICAL, SERVICE, PHYSICAL/DIGITAL The status of the product.
draft, active, inactive "active"
A brief description of the product.
"Product description goes here."
The URL for the product image.
"https://storage.googleapis.com/ghl-test/3SwdhCsvxI8Au3KsPJt6/media/65af8d5df88bdb4b1022ee90.png"
The statement descriptor for the product.
"abcde"
Indicates whether the product is available in-store.
true
An array of medias for the product.
An array of variants for the product.
An array of category Ids for the product
[
"65d71377c326ea78e1c47df5",
"65d71377c326ea78e1c47d34"
]Are there any taxes attached to the product. If this is true, taxes array cannot be empty.
true
List of ids of Taxes attached to the Product. If taxes are passed, isTaxesEnabled should be true.
["654492a4e6bef380114de15a"]Tax category ID for Automatic taxes calculation.
"65d71377c326ea78e1c47df5"
Is the product label enabled. If this is true, label object cannot be empty.
true
The slug using which the product navigation will be handled
"awesome-product"
The URL for the product redeem.
"https://staging.hoopai.com/v2/preview/65af8d5df88bdb4b1022ee90"
Whether the taxes should be included in the purchase price
true
Successful response
The unique identifier for the product.
"655b33a82209e60b6adb87a5"
The unique identifier for the location.
"3SwdhCsvxI8Au3KsPJt6"
The name of the product.
"Awesome Product"
The type of the product (e.g., PHYSICAL).
"PHYSICAL"
The creation timestamp of the product.
"2023-11-20T10:23:36.515Z"
The last update timestamp of the product.
"2024-01-23T09:57:04.846Z"
product description
"This is a really awesome product"
An array of variants for the product.
Indicates whether the product is available in-store.
true
The statement descriptor for the product.
"abcde"
The URL for the product image.
"https://storage.googleapis.com/ghl-test/3SwdhCsvxI8Au3KsPJt6/media/65af8d5df88bdb4b1022ee90.png"
An array of category Ids for the product
[
"65d71377c326ea78e1c47df5",
"65d71377c326ea78e1c47d34"
]The field indicates whether taxes are enabled for the product or not.
true
An array of ids of Taxes attached to the Product. If the expand query includes tax, the taxes will be of type ProductTaxDto. Please refer to the ProductTaxDto for additional details.
["654492a4e6bef380114de15a"]Tax category ID for Automatic taxes calculation.
"65d71377c326ea78e1c47df5"
The slug of the product by which the product will be navigated
"washing-machine"