BTS API Hujjatlari
Viloyatlar

Viloyatlar

GET /v1/directory/regions

Ushbu bo‘lim orqali tizimdagi hududlar (viloyatlar / regionlar) ro‘yxati olinadi.

So‘rov yuborilganda tizim mavjud barcha regionlar bo‘yicha ma’lumotlarni qaytaradi. Ushbu ma’lumotlar buyurtma yaratish, manzil tanlash va logistika hisob-kitoblarida foydalaniladi.

Har bir region uchun uning identifikatori, nomi va boshqa tegishli kodlar qaytarilishi mumkin.

Bu endpoint faqat ma’lumot olish uchun mo‘ljallangan va tizimdagi hech qanday ma’lumotni o‘zgartirmaydi.

API Server https://apitest.bts.uz:28345/
Base Path /v1/directory/regions
Full URL
https://apitest.bts.uz:28345/v1/directory/regions
Authentication Bearer Token
Headers
Header
Value
Req.
Authorization
Bearer {token}
🔒
Content-Type
application/json
🔒
Accept
application/json
🔒
language
uz
🔒

REQUEST

No schema defined.

RESPONSE

HTTP 200
Response Body
{
    "status": true,
    "message": "Ma’lumot muvaffaqiyatli olindi.",
    "status_code": 200,
    "data": {
        "items": [
            {
                "code": "60",
                "name": "Андижанская область"
            },
            {
                "code": "50",
                "name": "Наманганская область"
            },
            {
                "code": "90",
                "name": "Хорезмская область"
            },
            {
                "code": "10",
                "name": "Ташкентская область"
            },
            {
                "code": "01",
                "name": "город Ташкент"
            },
            {
                "code": "80",
                "name": "Бухарская область"
            },
            {
                "code": "30",
                "name": "Самаркандская область"
            },
            {
                "code": "25",
                "name": "Джизакская область"
            },
            {
                "code": "85",
                "name": "Навоийская область"
            },
            {
                "code": "95",
                "name": "Каракалпакстан"
            },
            {
                "code": "20",
                "name": "Сырдарьинская область"
            },
            {
                "code": "75",
                "name": "Сурхандарьинская область"
            },
            {
                "code": "70",
                "name": "Кашкадарьинская область"
            },
            {
                "code": "40",
                "name": "Ферганская область"
            }
        ],
        "_links": {
            "self": "/v1/directory/regions?page=1",
            "first": "/v1/directory/regions?page=1",
            "last": "/v1/directory/regions?page=1",
            "next": null,
            "prev": null
        },
        "_meta": {
            "totalCount": 14,
            "pageCount": 1,
            "currentPage": 1,
            "perPage": 20,
            "params": []
        }
    }
}
Field Type Description
code string Viloyat kodi
name string Viloyat nomi