city and country objects (id and name in the request language). Every row the company has for a city holds the same values, including the origin cities of its rates. Placeholder rows for all cities or all countries are not listed.page to move through pages and the cursor block to know if a next page exists.shipping.read- Shipping Read OnlyAuthorization: Bearer ********************curl --location 'https://api.salla.dev/admin/v2/shipping/companies/cities?country_id=' \
--header 'Authorization: Bearer <token>'{
"status": 200,
"success": true,
"data": [
{
"city": {
"id": 566146469,
"name": "جدة"
},
"country": {
"id": 1473353380,
"name": "السعودية"
},
"external_name": "Jeddah",
"is_pickup": false,
"is_delivery": true,
"external_region_id": null
},
{
"city": {
"id": 1939592358,
"name": "مكة المكرمة"
},
"country": {
"id": 1473353380,
"name": "السعودية"
},
"external_name": "Makkah",
"is_pickup": true,
"is_delivery": true,
"external_region_id": 7
}
],
"pagination": {
"count": 2,
"total": 17,
"perPage": 15,
"currentPage": 2,
"totalPages": 2,
"links": {
"previous": "https://api.salla.dev/admin/v2/shipping/companies/cities?page=1"
}
}
}