إنتقل إلى المحتوى الرئيسي

Get Order by ID

This endpoint allows you to retrieve the full details of a specific order using its unique identifier (id). This is useful for fetching real-time status updates, tracking numbers, and complete item logs for a single transaction.

Path Parameters​

ParameterTypeDescription
idstringThe unique system ID of the order (e.g., bi2gKAXt6v3DoXO_RET_3LRYQKgGDR).
GEThttps://api-fulfillment.bosta.co/api/v1/ordersV2/:id

Retrieve detailed information about a single order including shipment logs and saga status.

Responses

200Order details retrieved successfully
 {
"success": true,
"message": "Orders retrieved successfully",
"data": {
"id": "bi2gKAXt6v3DoXO_RET_3LRYQKgGDR",
"businessId": "bi2gKAXt6v3DoXO",
"orderNumber": "bi2gKAXt6v3DoXO_RET_3LRYQKgGDR",
"trackingNumber": "22265933",
"status": "NEW_ORDER",
"type": "RETURN",
"items": [
{
"orderItemId": "aa-2",
"skuCode": "aa-2",
"quantity": 1,
"price": 0
}
],
"customer": {
"firstName": "karim",
"lastName": "ahmed",
"mobile": "01154081404",
"email": "ameenreda1@gmail.com"
},
"shipment": {
"deliveryId": "wOiQmBu9XzEkq6lPYOv2O",
"deliveryStatus": "PICKUP_REQUESTED",
"shippingPartnerName": "bosta",
"trackingUrl": "https://bosta.co/...",
"trackingNumber": "78675911"
},
"logs": [
{
"timestamp": "2026-01-14T15:56:08.452Z",
"action": "order_created",
"message": "Order was created"
}
],
"displayStatus": "New Order"
}
}
404Order not found
 {
"success": false,
"message": "Order not found"
}

Key Details in Response​

  • Shipment Object: Contains the trackingUrl and deliveryStatus directly from the shipping provider (e.g., Bosta).
  • Logs Array: Provides a complete audit trail of the order's history.
  • Invoice: Shows the financial breakdown including subtotal, tax, and paymentMethod.