Get Order
View details of a specific order
Reading time: 1 minute
Get Order
View details of a specific order with all information.
GET
{{base_url}}/orders/{id}Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Order ID |
Example Request
Example Requestbash
curl -X GET "{{base_url}}/orders/1" \
-H "Accept: application/json" \
-H "X-Awal-Signature-256: sha256=abc..." \
-H "X-Timestamp: 1704124800" \
-H "X-Domain: your-workspace" \
-H "X-Client-ID: your-client-id"Example Response
Response200 OK
{
"status": true,
"data": {
"id": 1,
"order_number": "ORD-2024-001",
"customer_name": "Ahmed Mohammed",
"customer_phone": "96650000000",
"customer_email": "ahmed@example.com",
"items": [
{
"product_name": "Product 1",
"quantity": 2,
"price": 500.00,
"subtotal": 1000.00
},
{
"product_name": "Product 2",
"quantity": 1,
"price": 250.00,
"subtotal": 250.00
}
],
"subtotal": 1250.00,
"tax": 150.00,
"shipping": 50.00,
"total": 1450.00,
"currency": "SAR",
"status": "pending",
"payment_status": "unpaid",
"shipping_date": null,
"delivery_date": null,
"admin_notes": null,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}Related
ā Back to Orders
View Guide