Create Product
POST
{{ecommercev2_url}}/products
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location -g --request POST '{{ecommercev2_url}}/products' \
--header 'x-client: {{client}}' \
--header 'accept-language: {{acceptLanguage}}' \
--header 'Content-Type: application/json' \
--header 'x-access-token;' \
--data-raw '{
"name": {
"en": "homehon",
"ar": "محفظة جلدية فاخرة"
},
"description": {
"en": "Handcrafted genuine leather wallet with multiple card slots",
"ar": "محفظة جلدية يدوية الصنع مع عدة فتحات للبطاقات"
},
"unitIds": [
"68345ec12484c8a405d426ea"
],
"categoryIds": [
"67fe1ca6fdc6276f39205548"
],
"attributes": [
{
"code": "system_branch",
"value": "68335a932a94fd5621e6537f",
"type": "string"
}
],
"flag": "new",
"images": [
{
"_id": "507f1f77bcf86cd799439013",
"path": "https://example.com/images/mens-accessories-2.jpg",
"variants": [
"thumbnail",
"medium",
"large"
],
"originalName": "wallet_main.jpg",
"service": "s3"
}
],
"prices": [
{
"isDefault": true,
"name": {
"en": "Regular Price",
"ar": "السعر العادي"
},
"branchIds": [
"68335a932a94fd5621e6537f"
],
"items": [
{
"value": 100,
"currencyCode": "AED",
"unitId": "68345ec12484c8a405d426ea"
}
],
"customerGroup": "loyalty",
"platform": "web",
"discount": {
"value": 10,
"currencyCode": "AED",
"type": "fixed"
}
}
],
"vendorId": "507f1f77bcf86cd799439011"
}'
Response Response Example
{}
Request
Header Params
x-access-token
string
required
Example:
{{admin-token}}
x-client
string
required
Example:
{{client}}
accept-language
string
required
Example:
{{acceptLanguage}}
Body Params application/json
Responses
Modified at 2025-06-09 15:44:07