Create Order Item
Production
https://api.salla.dev/admin/v2
Production
https://api.salla.dev/admin/v2
POST
https://api.salla.dev/admin/v2
Order Items
Last modified:2024-12-29 06:40:32
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.salla.dev/admin/v2/orders/items' \
--header 'Content-Type: application/json' \
--data-raw '{
"order_id": 837293123,
"identifier_type": "id",
"identifier": 123456,
"quantity": 1,
"branch_id": 12342,
"options": [
{
"id": 789012,
"value": [
"value1",
"value2"
]
}
],
"name": "Custom Product Name",
"price": 100.00,
"cost_price": 80.00,
"weight": 150,
"weight_type": "g"
}'
Response Response Example
200 - Success
{
"status": 200,
"success": true,
"data": [
{
"id": 365435777,
"name": "SSD",
"sku": "sam-ssd-256g",
"quantity": 1,
"currency": "SAR",
"weight": 0.51,
"weight_label": "٥١٠ جم",
"amounts": {
"price_without_tax": {
"amount": 150,
"currency": "SAR"
},
"total_discount": {
"amount": 0,
"currency": "SAR"
},
"tax": {
"percent": "15.00",
"amount": {
"amount": 22.5,
"currency": "SAR"
}
},
"total": {
"amount": 150,
"currency": "SAR"
}
},
"notes": "",
"options": [
{
"id": 675638105,
"product_option_id": 1902643925,
"name": "size",
"type": "radio",
"value": {
"id": 1090448197,
"name": "256G",
"price": {
"amount": 0,
"currency": "SAR"
}
}
}
],
"images": [],
"codes": [],
"files": [],
"reservations": [],
"branches_quantity": []
}
]
}
Request
Body Params application/json
Responses
Modified at 2024-12-29 06:40:32