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

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.
GEThttps://api-fulfillment.bosta.co/api/v1/zones

Retrieve all supported cities and districts with their availability for pickup and drop-off.

Responses

200Zones retrieved successfully
 {
"success": true,
"message": "Zones retrieved successfully",
"data": [
{
"cityId": "g3GchTSmCgR2JynsJ",
"cityCode": "EG-04",
"cityName": "Behira",
"cityOtherName": "البحيره",
"createdAt": "2025-09-04T10:32:19.082Z",
"districts": [
{
"zoneId": "545L2LPcy6w",
"zoneName": "Abu ElMatamir",
"zoneOtherName": "ابو المطامير",
"districtId": "aO9Y-Lwvp7J",
"districtName": "Abu ElMatamir",
"districtOtherName": "ابو المطامير",
"pickupAvailability": true,
"dropOffAvailability": true,
"coverage": "BOSTA"
}
]
}
]
}

Understanding the Data Structure​

FieldDescription
cityId / districtIdThe unique identifiers needed for the shippingAddress in Create Order APIs.
pickupAvailabilityIf true, you can create a Return/Exchange pickup from this district.
dropOffAvailabilityIf true, you can deliver orders to this district.
coverageIndicates 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).