Salla · Schema
Salla Product
A product in a Salla merchant store.
ArabicE-CommerceGCCHeadless CommerceMerchantMENAOnline StoresRetailSaudi ArabiaSMBStorefront
Properties
| Name | Type | Description |
|---|---|---|
| id | integer | |
| name | string | |
| sku | string | |
| mpn | string | |
| gtin | string | |
| type | string | |
| status | string | |
| price | object | |
| sale_price | object | |
| cost_price | object | |
| quantity | integer | |
| description | string | |
| url | string | |
| categories | array | |
| brand_id | integer | |
| tags | array | |
| images | array | |
| metadata_title | string | |
| metadata_description | string | |
| metadata_url | string | |
| updated_at | string |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/salla/refs/heads/main/json-schema/salla-product-schema.json",
"title": "Salla Product",
"description": "A product in a Salla merchant store.",
"type": "object",
"required": ["id", "name", "type", "status", "price"],
"properties": {
"id": { "type": "integer" },
"name": { "type": "string" },
"sku": { "type": "string" },
"mpn": { "type": "string" },
"gtin": { "type": "string" },
"type": {
"type": "string",
"enum": ["product", "service", "group_products", "codes", "digital", "food", "booking", "donating"]
},
"status": {
"type": "string",
"enum": ["sale", "out", "hidden", "deleted"]
},
"price": { "$ref": "#/$defs/Money" },
"sale_price": { "$ref": "#/$defs/Money" },
"cost_price": { "$ref": "#/$defs/Money" },
"quantity": { "type": "integer", "minimum": 0 },
"description": { "type": "string" },
"url": { "type": "string", "format": "uri" },
"categories": {
"type": "array",
"items": { "type": "integer" }
},
"brand_id": { "type": "integer" },
"tags": {
"type": "array",
"items": { "type": "string" }
},
"images": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "integer" },
"original": { "type": "string", "format": "uri" },
"thumbnail": { "type": "string", "format": "uri" },
"alt": { "type": "string" },
"sort": { "type": "integer" }
}
}
},
"metadata_title": { "type": "string" },
"metadata_description": { "type": "string" },
"metadata_url": { "type": "string" },
"updated_at": { "type": "string", "format": "date-time" }
},
"$defs": {
"Money": {
"type": "object",
"properties": {
"amount": { "type": "number" },
"currency": { "type": "string", "examples": ["SAR", "AED", "USD"] }
}
}
}
}