BTS API Hujjatlari
Konfiguratsiya

Konfiguratsiya

GET /v1/webhook/webhook-config

Jo'natma holati haqida ma'lumot yuborib turishini sozlash

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

REQUEST

Request Body
                     
                     {
    "webhook_url":"https://test.uz",
    "environment":"production",
    "has_token": true,
    "itx-apiKey":""
}                     
                
Field Type Description
webhook_url string POST (form-data) orqali ma'lumotlarni qabul qiladigan ochiq link
environment enum Muvofiqlik muhiti, qiymat ENUM tarzda keladi: production, test
has_token boolean Har bir webhook so'rovida token yuborish
itx-apiKey string ITX API kaliti

RESPONSE

200 Success
Masalan: Success. Content-Type: application/json
Response Body
                                 
                                 {
    "status": true,
    "message": "Muvaffaqiyatli yaratildi.",
    "status_code": 200,
    "data": {
        "webhook_url": "https://test.uz",
        "method": "POST",
        "date": "2026-01-08",
        "has_token": true,
        "environment": "production",
        "itx-apiKey": ""
    }
}                                 
                            
Field Type Description
webhook_url string POST (form-data) orqali ma'lumotlarni qabul qiladigan ochiq link
method string Method nomi, doimiy POST bo'ladi
date string Ma'lumot kiritilgan sana
has_token boolean Har bir webhook so'rovida token yuborish
itx-apiKey string ITX API kaliti
422 Validation
Masalan: Validation. Content-Type: application/json
Response Body
                                 
                                 {
    "status": false,
    "message": "Tekshiruv xatosi.",
    "status_code": 422,
    "errors": {
        "webhook_url": [
            "URL notog‘ri"
        ],
        "environment": [
            "Notog‘ri environment"
        ]
    }
}                                 
                            
No schema defined.