- Welcome 👋
- Get Started
- Create Your First App
- Authorization
- Webhooks
- Conditional Webhooks
- Security Considerations
- Multi-Language Support
- Responses
- Pagination
- Rate Limiting
- Versioning
- Change Log
- Support
- APIs
- Orders
- Order Status
- Order Histories
- Order Tags
- Order Invoice
- Order Reservations
- Order Items
- Products
- Product Options
- Product Quantity
- Product Variants
- Product Tags
- Product Images
- Product Option Values
- Abandoned Carts
- Customer Groups
- Customers
- Digitals Product
- Categories
- Exports
- Shipments
- Shipping Companies
- Shipping Zones
- Shipping Rules
- Countries
- Product Option Templates
- Taxes
- Coupons
- Affiliates
- Order Assignment
- Special Offers
- Transactions
- Payments
- Settlements
- Settings
- Merchant
- Brands
- Reviews
- Branches
- Currencies
- SEO
- Cities
- DNS Records
- Languages
- Employees
- Advertisements
- Webhooks
- Custom URLs
- Loyalty Points
- Webhooks - Store Events
List Cities
Production
Production
GET
https://api.salla.dev/admin/v2/countries/{country}/cities
Cities
Last modified:2025-02-02 12:23:10
country
as a path parameter.NOTE
Scopes
metadata.read
- Metadata Read OnlyRequest
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Path Params
country
integer
required
Query Params
page
integer
optional
Request 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 'https://api.salla.dev/admin/v2/countries//cities?page'
Responses
🟢200Success
application/json
Body
status
number
optional
success
boolean
optional
data
array[object (City) {3}]
optional
id
number
required
name
string
required
name_en
string
required
pagination
object (Pagination)
optional
count
number
required
total
number
required
perPage
number
required
<= 65
currentPage
number
required
totalPages
number
required
links
object
required
Example
{
"status": 200,
"success": true,
"data": [
{
"id": 1,
"name": "الرياض",
"name_en": "Riyadh",
"country_id": 1473353380
},
{
"id": 2,
"name": "جدة",
"name_en": "Jeddah",
"country_id": 1473353380
},
{
"id": 3,
"name": "مكة",
"name_en": "Mecca",
"country_id": 1473353380
},
{
"id": 4,
"name": "المدينة المنورة",
"name_en": "Medina",
"country_id": 1473353380
},
{
"id": 5,
"name": "الدمام",
"name_en": "Dammam",
"country_id": 1473353380
},
{
"id": 6,
"name": "الأحساء",
"name_en": "Al Ahsa",
"country_id": 1473353380
},
{
"id": 7,
"name": "القطيف",
"name_en": "Al Qatif",
"country_id": 1473353380
},
{
"id": 8,
"name": "خميس مشيط",
"name_en": "Khamis Mushait",
"country_id": 1473353380
},
{
"id": 9,
"name": "المظيلف",
"name_en": "Almuzaylif",
"country_id": 1473353380
},
{
"id": 10,
"name": "تبوك",
"name_en": "Tabuk",
"country_id": 1473353380
},
{
"id": 11,
"name": "الهفوف",
"name_en": "Al Hofuf",
"country_id": 1473353380
},
{
"id": 12,
"name": "المبرز",
"name_en": "Al Mubarraz",
"country_id": 1473353380
},
{
"id": 13,
"name": "نجران",
"name_en": "Najran",
"country_id": 1473353380
},
{
"id": 14,
"name": "حفر الباطن",
"name_en": "Hafar Al Batin",
"country_id": 1473353380
},
{
"id": 15,
"name": "الجبيل",
"name_en": "Al Jubail",
"country_id": 1473353380
}
],
"country": {
"id": 1473353380,
"name": "السعودية",
"code": "SA"
},
"pagination": {
"count": 15,
"total": 716,
"perPage": 15,
"currentPage": 1,
"totalPages": 48,
"links": {
"next": "https://api.salla.dev/admin/v2/countries/1473353380/cities?page=2"
}
}
}
🟠404Not Found
🟠401Unauthorized
Modified at 2025-02-02 12:23:10