1. Locations
Flype Order API Gulf
  • UAE API Integration Guide
    • Shipments
      • Shipments Count
      • All Shipments
      • Bulk Order
      • Schedule Pickup
      • Shipment Details
      • Shipment Last Status
      • Cancel Shipment
      • Get AirwayBill
    • Locations
      • Get Cities
        GET
      • Get All Countries
        GET
    • Webhook
      • Shipment Status Updates Webhook
    • Schemas
      • Error
      • ServiceType
      • TrackingStatusName
      • PickupLocation
      • RecipientAddress
  1. Locations

Get Cities

GET
/cities/country/{countryId}

Get Cities - Get cities by country ID#

Use this endpoint to retrieve the list of cities available for a specific country.
The countryId must be taken from the Get All Countries endpoint.

Required URL parameter#

  • countryId - Country ID returned from the Get All Countries endpoint.

When to use this endpoint#

  • To get the cities covered for a selected country.
  • To populate city selection lists in your system or checkout flow.
  • To confirm whether Flype supports delivery in a specific city.

Important notes#

  • Only cities available for the provided countryId are returned.
  • If the country is not covered by Flype, the API may return a message indicating that the country is not covered.
  • If the countryId is invalid, the API may return a country not found error.

Summary#

Use Get Cities after calling Get All Countries to retrieve supported cities for a selected country.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/cities/country/' \
--header 'Authorization: Bearer <token>'

Responses

🟢200
application/json
Successful response
Body

Example
{
    "status": "success",
    "data": [
        {
            "id": 13,
            "name": "Adh Dhayd"
        },
        {
            "id": 18,
            "name": "Al Batayih"
        },
        {
            "id": 22,
            "name": "Al Hamriyah"
        }
    ]
}
🟠401
Previous
Get AirwayBill
Next
Get All Countries
Built with