Skip to content

Hold statusini olish ​

Method: GET
Endpoint: BASE_URL/merchant/payment/hold/status/
queryParams: externalId yoki transactionId

Example GET request with external id ​

Method: GET
URL: BASE_URL/merchant/payment/hold/status/?externalId=123
Header:

http
Authorization: Bearer <ACCESS_TOKEN>

Response ​

json
{
  "result": {
    "transactionId": "d1be13da-4355-4b27-956d-d83b87e013f1",
    "status": "cancelled",
    "cancelTime": "2025-02-03 11:13:42",
    "payedAt": null,
    "amount": 10,
    "serviceId": "d1be13da-4355-4b27-956d-d83b87e013f1"
  }
}

Result statuses ​

paid — muvaffaqiyatli tranzaksiya
cancelled — bekor qilingan tranzaksiya
hold — hold holatidagi tranzaksiya, agar hold muddati tugamagan bo‘lsa charge qilish mumkin
created — yaratilgan

Error response structure ​

json
{
  "error": {
    "code": "hold_not_found",
    "message": "hold_not_found"
  }
}

Error codes ​

plaintext
hold_not_found
hold_time_expired
invalid_amount
field_not_valid
gateway_not_working
field_required
transaction_not_found