Create Purchase Order API
This endpoint allows you to create a purchase order to send stock to the Bosta fulfillment warehouse.
tip
Call Get Receiving Availability first to get a valid expectedReceivingDate and timeSlot.
POST
https://api-fulfillment.bosta.co/api/v1/purchase-ordersCreate a new purchase order with the items you are sending to the warehouse.
REQUEST BODY
{
"items": [
{
"skuCode": "wireless-mouse-01",
"quantity": 50
}
],
"expectedReceivingDate": "2026-11-02",
"timeSlot": {
"startTime": 1000,
"endTime": 1100
},
"receivingWay": "pickup",
"carType": "medium",
"numberOfTrucks": 1,
"address": {
"location": {
"name": "Main Warehouse",
"id": "Lc7KpW2-4"
},
"city": {
"name": "Cairo",
"id": "Xk82LmQp4RtZ9vBnA"
},
"district": {
"name": "Nasr City",
"id": "Qw3Er-Ty7Ui"
},
"firstLine": "12 Abbas El Akkad St.",
"secondLine": "Near City Stars",
"apartment": "5",
"floor": "2",
"buildingNumber": "12"
},
"contactPerson": {
"phone": "01000000000",
"name": "Ahmed Hassan"
}
}
Responses
200Purchase order created successfully
Field Details
| Field | Type | Description |
|---|---|---|
| items | array | List of products to send. Each item contains a skuCode and quantity. |
| items[].skuCode | string | The SKU code of an existing product. |
| items[].quantity | number | The quantity of this product being sent. |
| expectedReceivingDate | string | The date the warehouse should expect the shipment (YYYY-MM-DD). Must be an available date returned by Get Receiving Availability. |
| timeSlot | object | The receiving time window. startTime and endTime are in HHMM format (e.g., 1000 = 10:00, 1100 = 11:00). Must fall within the date's available working hours. |
| receivingWay | string | How the stock will be received (e.g., pickup). |
| carType | string | The size of the vehicle (e.g., medium). |
| numberOfTrucks | number | Number of trucks required. |
| address | object | The address where the stock will be picked up. Includes location, city, district (each with name and id), plus firstLine, secondLine, apartment, floor, and buildingNumber. |
| contactPerson | object | The person to contact regarding the shipment (name and phone). |
Response Fields
| Field | Type | Description |
|---|---|---|
| id | string | The purchase order ID. Use it with Get Purchase Order by ID and Update Purchase Order. |
| status | string | The current status of the purchase order (e.g., ordered). |
| totalItemsCount | number | The total quantity of all items in the purchase order. |
| hubCode | string | The warehouse hub that will receive the stock. |
| items[].name / items[].images | string / array | Product details resolved from the SKU code. |
note
Use the Get Zones API to get valid city and district IDs.