To get the transaction status, it is possible to query by project_id, the status information is stored in the result.transaction_status.code field.
Request to receive the transaction status
{
"status": false,
"status_code": 5103,
"message": "transaction not found",
"result": {}
}
{
"status": true,
"message": "Success",
"result": {
"id": 99999,
"amount": 10,
"description": "test",
"user_phone": "87757715130",
"user_email": "test@inbox.ru",
"card_token": "sdfasdf23",
"masked_pan": "0000-00XXXXXX-0000",
"bank_code": "0",
"bank_message": ""
"additional_data": {
"abc": "111",
"lkk": "123"
},
"transaction_status": {
"code": "success",
"name": "Транзакция прошла успешно"
},
"bank_reference_id": "100885",
"created_at": "2023-10-04T10:05:02.93843Z"
}
}
curl --location 'https://prapi.tarlanpayments.kz/transaction/api/v1/system/transaction/status?merchant_id=1&project_id=42&project_reference_id=sanch92116&type=in' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer sign'