Create Product
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.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
products. writeOAuthPrivate IntegrationSub-Account TokenAgency TokenRequest
Headers
API Version
v3Body
The name of the product.
Awesome ProductThe unique identifier for the location.
3SwdhCsvxI8Au3KsPJt6A brief description of the product.
Product description goes here.DIGITALPHYSICALSERVICEPHYSICAL/DIGITALThe URL for the product image.
https://storage.googleapis.com/ghl-test/3SwdhCsvxI8Au3KsPJt6/media/65af8d5df88bdb4b1022ee90.pngThe statement descriptor for the product.
abcdeIndicates whether the product is available in-store.
trueAn 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.
falsetrueList of ids of Taxes attached to the Product. If taxes are passed, isTaxesEnabled should be true.
["654492a4e6bef380114de15a"]Tax category ID for Automatic taxes calculation.
65d71377c326ea78e1c47df5Is the product label enabled. If this is true, label object cannot be empty.
falsetrueDetails for Product Label
The slug using which the product navigation will be handled
awesome-productSEO data for the product that will be displayed in the preview
Whether the taxes should be included in the purchase price
falsetrueResponse
Successful response
The unique identifier for the product.
655b33a82209e60b6adb87a5product description
This is a really awesome productAn array of variants for the product.
The unique identifier for the location.
3SwdhCsvxI8Au3KsPJt6The name of the product.
Awesome ProductThe type of the product (e.g., PHYSICAL).
PHYSICALIndicates whether the product is available in-store.
trueThe creation timestamp of the product.
2023-11-20T10:23:36.515ZThe last update timestamp of the product.
2024-01-23T09:57:04.846ZThe statement descriptor for the product.
abcdeThe URL for the product image.
https://storage.googleapis.com/ghl-test/3SwdhCsvxI8Au3KsPJt6/media/65af8d5df88bdb4b1022ee90.pngAn array of category Ids for the product
["65d71377c326ea78e1c47df5","65d71377c326ea78e1c47d34"]The field indicates whether taxes are enabled for the product or not.
falsetrueAn 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.
65d71377c326ea78e1c47df5The Product label details
The slug of the product by which the product will be navigated
washing-machine