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

Get Purchase Order by ID API

This endpoint retrieves a single purchase order using its ID.

GEThttps://api-fulfillment.bosta.co/api/v1/purchase-orders/:id

Fetch a specific purchase order by its ID.

Responses

200Purchase order retrieved successfully
 {
"success": true,
"message": "Purchase order retrieved successfully",
"data": {
"id": "30140002",
"businessId": "Bz7Yx6Wv5Ut4Sr3Qp2On",
"hubCode": "CairoHub",
"omnifulPurchaseOrderId": "PO-BO12-102",
"items": [
{
"skuCode": "usb-keyboard-02",
"quantity": 120,
"name": "USB Keyboard",
"images": [
{
"url": "https://example.com/images/usb-keyboard.png"
}
]
},
{
"skuCode": "laptop-stand-03",
"quantity": 30,
"name": "Laptop Stand",
"images": [
{
"url": "https://example.com/images/laptop-stand.png"
}
]
}
],
"totalItemsCount": 150,
"expectedReceivingDate": "2026-11-03",
"status": "ordered",
"timeSlot": {
"startTime": 1100,
"endTime": 1200
},
"receivingWay": "pickup",
"carType": "medium",
"numberOfTrucks": 2,
"address": {
"location": {
"name": "Giza Store",
"id": "Mn4BvC8-2"
},
"city": {
"name": "Giza",
"id": "Hj5Gf4Ds3Az2Lk1Po"
},
"firstLine": "45 Haram St.",
"secondLine": "",
"buildingNumber": "45",
"floor": "1",
"apartment": "",
"district": {
"id": "Rt6Yu-Io9Pa",
"name": "Haram"
}
},
"contactPerson": {
"name": "Sara Mahmoud",
"phone": "01111111111"
},
"createdBy": "merchant@example.com",
"_id": "6ae0a16755b241be7bdc0002",
"createdAt": "2026-10-26T09:15:00.000Z",
"updatedAt": "2026-10-26T09:15:00.000Z",
"__v": 0
},
"meta": {
"timestamp": "2026-10-27T10:05:00.000Z"
}
}
404Purchase order not found
 {
"success": false,
"message": "No purchase order found with the provided ID."
}

Path Parameters​

ParameterTypeDescription
idstringThe purchase order ID returned when the purchase order was created (e.g., 30140002).

See Create Purchase Order for a description of the response fields.