Create Product
You can create a product using this service. To do so, you'll first need to obtain the subCategoryBrandId, which you can find on the Brands page.
Request
curl --location --request POST '<BASE_URL>/merchant-products'
--header 'Content-Type: application/json'
--header 'Authorization: <jwtToken>'
--data '{
"subCategoryBrandId": "<integer>",
"name": "<string>",
"warrantyYear": "<integer>",
"model": "<string>",
"description": "<string>",
"setupRequired": "<boolean>",
"productCode": "<string>"
}'
Request Body
Parameter | Type | Required | Description |
---|---|---|---|
subCategoryBrandId | Integer | Yes | The Id value of the product's brand. |
name | String | Yes | The name of the product. |
warrantyYear | Integer | Yes | Can take values between 2 and 10. |
model | String | No | Maximum length can be 256 characters. |
description | String | No | Maximum length can be 1000 characters. |
setupRequired | Boolean | Yes | Indicates whether the product requires setup. |
productCode | String | Yes | A unique value must be used. |