Light Mode
Update Order Item
PUT
/orders/items/{item_id}Last modified: 25 days ago
This endpoint allows you to update a specific Order item by passing the item_id
as a path parameter.
Request
Path Params
Body Params application/json
object {0}
Example
{
"order_id": 817290231,
"quantity": 2,
"branch_id": 12342,
"price": 100,
"weight": 0.2,
"weight_type": "kg",
"options": [
{
"id": 789012,
"value": [
"value1"
]
}
]
}
Request samples
Responses
Success(200)
Not Found(404)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 200,
"success": true,
"data": [
{
"id": 365435777,
"name": "SSD",
"sku": "sam-ssd-256g",
"quantity": 2,
"currency": "SAR",
"weight": 0.2,
"weight_label": "٠.٢ كجم",
"amounts": {
"price_without_tax": {
"amount": 100,
"currency": "SAR"
},
"total_discount": {
"amount": 0,
"currency": "SAR"
},
"tax": {
"percent": "15.00",
"amount": {
"amount": 15,
"currency": "SAR"
}
},
"total": {
"amount": 115,
"currency": "SAR"
}
},
"notes": "",
"options": [],
"images": [],
"codes": [],
"files": [],
"reservations": [],
"branches_quantity": []
}
]
}
Last modified: 25 days ago