Get Zones API
This endpoint retrieves a complete list of supported cities and their respective districts (zones). Use this data to populate your checkout address forms and to ensure you provide valid cityId and districtId values when creating orders.
Endpoint Overview
- Purpose: Validation and address mapping.
- Update Frequency: It is recommended to cache this data and refresh it once every 24 hours.
GET
https://api-fulfillment.bosta.co/api/v1/zonesRetrieve all supported cities and districts with their availability for pickup and drop-off.
Responses
200Zones retrieved successfully
Understanding the Data Structure
| Field | Description |
|---|---|
| cityId / districtId | The unique identifiers needed for the shippingAddress in Create Order APIs. |
| pickupAvailability | If true, you can create a Return/Exchange pickup from this district. |
| dropOffAvailability | If true, you can deliver orders to this district. |
| coverage | Indicates the logistics partner providing service in this area (e.g., BOSTA). |
Implementation Tip
When a user selects a City from your dropdown, you should filter the districts array of that city to show the second dropdown (Districts/Zones).