Products
POST /products
Request content format
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "A representation of a product",
"type": "object",
"required": ["sku", "name"],
"properties": {
"sku": {"type":"string"},
"base_sku": {"type":"string"},
"name": {"type":"string", "minLength": 1},
"base_name": {"type": "string"},
"brand": {"type":"string"},
"description": {"type":"string"},
"url": {"type":"string"},
"image_url": {"type":"string"},
"thumbnail_url": {"type":"string"},
"price": {"type":"number"},
"offer_price": {"type":"number"},
"stock": {"type":"number"},
"available": {"type":"boolean"},
"release_date": {"type":"string"},
"category": {
"type": "array",
"items": {
"oneOf": [
{
"type": "string",
"minLength" : 1,
"maxLength" : 100
},
{
"type": "object",
"required": ["id", "name" ],
"properties": {
"id": {
"type" : "string",
"minLength" : 1,
"maxLength" : 64
},
"name": {
"type" : "string",
"minLength" : 1,
"maxLength" : 100
},
"url": { "type": "string" },
"image_url": { "type": "string" }
}
}
]
}
},
"specifications": {
"type": "array",
"items": {
"type": "object",
"required": ["name", "value"],
"properties": {
"name": { "type": "string" },
"value": { "type": "string" }
}
}
},
"metadata": {
"type": "object"
},
"with_extension_warranty": { "type": "boolean" },
"custom_attributes": { "type": "object" }
}
}POST /products/bulk
PUT /products/{id}
GET /products/{id}/exist
Last updated
Was this helpful?