BTS API Hujjatlari
Statuslar

Statuslar

GET /v1/status/index

Ushbu bo‘lim orqali tizimda qo‘llaniladigan buyurtma holatlari (statuslar) ro‘yxati olinadi.

So‘rov yuborilganda tizim buyurtmaning logistika jarayonidagi barcha mumkin bo‘lgan holatlarini qaytaradi. Ushbu ma’lumotlar buyurtma kuzatuvi, monitoring va biznes jarayonlarni boshqarishda ishlatiladi.

Har bir status uchun uning identifikatori, kodi, nomi va tavsifi 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/status/index
Full URL
https://apitest.bts.uz:28345/v1/status/index
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": "Данные успешно получены.",
    "status_code": 200,
    "data": {
        "items": [
            {
                "code": 100,
                "name": "У отправителя",
                "description": "Заказ у отправителя и еще не передан в систему BTS.",
                "next_possible_statuses": [
                    200
                ]
            },
            {
                "code": 200,
                "name": "Курьер принял",
                "description": "Курьер принял отправление и везет его в офис отправления.",
                "next_possible_statuses": [
                    300
                ]
            },
            {
                "code": 300,
                "name": "В офисе отправления",
                "description": "Отправление принято в офисе отправления.",
                "next_possible_statuses": [
                    400
                ]
            },
            {
                "code": 400,
                "name": "Во внутренней перевозке",
                "description": "Отправление находится во внутренней перевозке.",
                "next_possible_statuses": [
                    500
                ]
            },
            {
                "code": 500,
                "name": "В РЦ",
                "description": "Отправление обрабатывается в сортировочном центре.",
                "next_possible_statuses": [
                    600
                ]
            },
            {
                "code": 600,
                "name": "В мешке",
                "description": "Отправление помещено в логистический мешок.",
                "next_possible_statuses": [
                    700
                ]
            },
            {
                "code": 700,
                "name": "В перевозке",
                "description": "Отправление находится в перевозке.",
                "next_possible_statuses": [
                    800
                ]
            },
            {
                "code": 800,
                "name": "В офисе доставки",
                "description": "Отправление прибыло в офис доставки.",
                "next_possible_statuses": [
                    900,
                    1000,
                    1100
                ]
            },
            {
                "code": 1100,
                "name": "Курьер доставляет",
                "description": "Курьер принял отправление и доставляет получателю.",
                "next_possible_statuses": [
                    1200, 
                ]
            },
            {
                "code": 1200,
                "name": "Доставлен",
                "description": "Отправление успешно доставлено.",
                "next_possible_statuses": [
                    
                ]
            },
            {
                "code": 1300,
                "name": "Удалён",
                "description": "Заказ удален.",
                "next_possible_statuses": []
            },
            {
                "code": 1400,
                "name": "Срок истек",
                "description": "Срок действия заказа истек.",
                "next_possible_statuses": []
            }
        ],
        "_links": {
            "self": "/v1/status/index?page=1",
            "first": "/v1/status/index?page=1",
            "last": "/v1/status/index?page=1",
            "next": null,
            "prev": null
        },
        "_meta": {
            "totalCount": 12,
            "pageCount": 1,
            "currentPage": 1,
            "perPage": 20,
            "params": []
        }
    }
}
No schema defined.