Bog'lash holatini tekshirish
Ixtiyoriy. Agar webhook qandaydir sababga ko'ra yetib bormasa, hamkor backend'i natijani shu so'rov bilan tekshirishi mumkin.
Endpoint details
Method:
GET
URL: BASE_URL/merchant/userCard/bindSession/{token}/status/
Header:
http
Authorization: Bearer < ACCESS_TOKEN >| Path | Type | Required | Description |
|---|---|---|---|
| token | string | Yes | Havola yaratishda olingan token |
Success response
json
{
"result": {
"state": "confirmed",
"card": {
"cardId": "b1e2f3a4-...-uuid",
"userId": "partner-user-10234",
"owner": "TEST FOYDALANUVCHI",
"cardName": null,
"number": "860012******9012",
"balance": 1500000,
"expireDate": "2612",
"bankId": "7",
"bankName": "Ipoteka Bank",
"vendor": "uzcard",
"processing": "Uzcard",
"status": {
"is_active": true,
"status_message": "active",
"sms_info": true
}
}
},
"error": null
}state qiymatlari
| State | Description |
|---|---|
created | Hali bog'lanmagan |
card_pending | Karta kiritilgan, SMS kutilmoqda |
confirmed | Bog'langan |
card maydoni faqat confirmed holatida to'ldiriladi. Uning tarkibi webhookdagi card bilan bir xil.
Fail response
json
{
"result": null,
"error": {
"code": "link_expired",
"message": "This link has expired. Please request a new one."
}
}