Create Order Item
POST
/orders/itemsThis endpoint allows you to create an order item for a specific order by passing its ID in the body request.
Request
Order ID. List of Order ID can be found here
Order Item Identifier Type.
Order Item Identifier ID. List of Order Items can be found here
Order Item Quantity
Branch ID. List of Branch ID can be found here.
Product Option ID
Product Name, list of products can be found here.
Product Price.
Product Cost Price.
Product Weight Value.
Product Weight Type.
{
"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,
"cost_price": 80,
"weight": 150,
"weight_type": "g"
}
Request samples
[api.label.responses]
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
A unique identifier, typically numerical or alphanumeric, assigned to an individual item or product within an order.
The name or description of an individual item or product within an order.
Stock Keeping Unit, and it is a unique code or identifier used to track and manage individual products or items in inventory, facilitating inventory management, sales tracking, and product identification.
The numerical count of a specific item or product included in an order, indicating how many of that particular item have been purchased or are part of the order.
The specific currency in which the price or value of an individual item within an order is expressed, indicating the monetary unit used for pricing that particular item.
The numerical measurement representing the weight of an individual item or product within an order.
A textual label or description associated with the weight of an individual item within an order, typically used to indicate the unit of measurement (e.g., kg, lb) and provide clarity regarding how the item's weight is expressed.
Order items notes
{
"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": []
}
]
}