Create/Update a product

Authentication

api-keystring

The API key should be passed in the request headers as api-key for authentication.

Request

Values to create/update a product

idstringRequiredformat: "string"
Product ID for which you requested the details
namestringRequiredformat: "string"

Mandatory in case of creation**. Name of the product for which you requested the details

brandstringOptional<=128 characters
Brand of the product
categorieslist of stringsOptional

Category ID-s of the product

deletedAtstringOptional

UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the product deleted from the shop’s database

descriptionstringOptional<=3000 characters
Description of the product
imageUrlstringOptionalformat: "string"
Absolute URL to the cover image of the product
isDeletedbooleanOptional
product deleted from the shop's database
metaInfomap from strings to strings or integersOptional

Meta data of product such as description, vendor, producer, stock level. The total characters of cumulative metaInfo shall not exceed 20000 characters.

parentIdstringOptionalformat: "string"
Parent product id of the product
pricedoubleOptional
Price of the product
skustringOptionalformat: "string"
Product identifier from the shop
stockdoubleOptional
Current stock value of the product from the shop's database
updateEnabledbooleanOptionalDefaults to false

Facilitate to update the existing category in the same request (updateEnabled = true)

urlstringOptionalformat: "string"
URL to the product

Response

Product created
idlong
ID of the Product when a new product is created

Errors

400
Bad Request Error