Skip to main content

Get Receiving Availability API

Before creating a purchase order, use this endpoint to get the available receiving dates and working hours for the next 7 days. Pick an available date as the expectedReceivingDate and a timeSlot within its working hours when you create a purchase order.

Query Parameters​

ParameterTypeRequiredDescription
totalItemsCountnumberYesThe total quantity of all items you plan to send in the purchase order. Sent as a query parameter, not in the request body.
GEThttps://api-fulfillment.bosta.co/api/v1/purchase-orders/next-week-availability?totalItemsCount=2

Retrieve the available receiving dates and time slots for the next week based on the total items count.

Responses

200Availability retrieved successfully
 {
"success": true,
"message": "Purchase orders listed successfully",
"data": {
"2026-10-29": {
"isAvailable": true,
"availableWorkingHours": [
{
"startTime": 900,
"endTime": 1300
}
]
},
"2026-10-30": {
"isAvailable": true,
"availableWorkingHours": [
{
"startTime": 900,
"endTime": 1300
}
]
},
"2026-10-31": {
"isAvailable": true,
"availableWorkingHours": [
{
"startTime": 900,
"endTime": 1300
}
]
},
"2026-11-01": {
"isAvailable": true,
"availableWorkingHours": [
{
"startTime": 900,
"endTime": 1300
}
]
},
"2026-11-02": {
"isAvailable": true,
"availableWorkingHours": [
{
"startTime": 900,
"endTime": 1300
}
]
},
"2026-11-03": {
"isAvailable": true,
"availableWorkingHours": [
{
"startTime": 900,
"endTime": 1300
}
]
},
"2026-11-04": {
"isAvailable": true,
"availableWorkingHours": [
{
"startTime": 900,
"endTime": 1300
}
]
}
},
"meta": {
"timestamp": "2026-10-27T13:03:45.687Z"
}
}

Response Fields​

The data object is keyed by date (YYYY-MM-DD), covering the next 7 days.

FieldTypeDescription
isAvailablebooleanWhether the warehouse can receive a purchase order on this date. Only use dates where this is true as expectedReceivingDate.
availableWorkingHoursarrayThe receiving windows available on this date. Your timeSlot must fall within one of these windows.
availableWorkingHours[].startTimenumberWindow start time in HHMM format (e.g., 900 = 09:00).
availableWorkingHours[].endTimenumberWindow end time in HHMM format (e.g., 1300 = 13:00).