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
| Parameter | Type | Required | Description |
|---|---|---|---|
| totalItemsCount | number | Yes | The total quantity of all items you plan to send in the purchase order. Sent as a query parameter, not in the request body. |
GET
https://api-fulfillment.bosta.co/api/v1/purchase-orders/next-week-availability?totalItemsCount=2Retrieve the available receiving dates and time slots for the next week based on the total items count.
Responses
200Availability retrieved successfully
Response Fields
The data object is keyed by date (YYYY-MM-DD), covering the next 7 days.
| Field | Type | Description |
|---|---|---|
| isAvailable | boolean | Whether the warehouse can receive a purchase order on this date. Only use dates where this is true as expectedReceivingDate. |
| availableWorkingHours | array | The receiving windows available on this date. Your timeSlot must fall within one of these windows. |
| availableWorkingHours[].startTime | number | Window start time in HHMM format (e.g., 900 = 09:00). |
| availableWorkingHours[].endTime | number | Window end time in HHMM format (e.g., 1300 = 13:00). |