Запрос статуса
Позволяет получить информацию об операции. Часто используется с целью уточнить статус операций оплата и авторизация.
Запрос
Чтобы получить статус или информацию о транзакции по UID, отправьте HTTP GET
запрос на https://gateway.bepaid.by/transactions/{uid}
, где {uid}
- это значение UID, присвоенное транзакции системой bePaid. uid
передается в ответе на запрос авторизации или оплаты.
Дополнительно, вы можете получить информацию о транзакции по tracking_id
. Отправьте GET
запрос на https://gateway.bepaid.by/v2/transactions/tracking_id/{tracking_id}
, где {tracking_id}
- это значение tracking_id
, присвоенное вами для транзакции или заказа. tracking_id
передается в запросе авторизации или оплаты.
Info
Если значение tracking_id
, назначенное вами, не уникально для транзакции, то в ответе на запрос система вернет массив данных 10 последних транзакций с совпадающим значением tracking_id
.
Ответ
Пример ответа
{
"transactions": [
{
"uid": "21893-caaf7c37ad",
"status": "failed",
"amount": 100,
"currency": "USD",
"description": "Test transaction",
"type": "payment",
"payment_method_type": "credit_card",
"tracking_id": "tracking_id_000",
"message": "Internal decline",
"test": true,
"created_at": "2022-03-17T14:15:25.995Z",
"updated_at": "2022-03-17T16:00:48.570Z",
"paid_at": null,
"expired_at": "2025-01-01T14:00:00.000Z",
"recurring_type": null,
"closed_at": null,
"settled_at": null,
"manually_corrected_at": null,
"language": "en",
"credit_card": {
"holder": "John Doe",
"stamp": "b3839d334ba40e89168d60cd9f9d1390aee3fe67dd4d5c41adbf3998043eaef8",
"brand": "visa",
"last_4": "0000",
"first_1": "4",
"bin": "420000",
"issuer_country": "US",
"issuer_name": "VISA Demo Bank",
"product": "F",
"exp_month": 10,
"exp_year": 2023,
"token_provider": null,
"token": null
},
"receipt_url": "https://merchant.bepaid.by/customer/transactions/21893-caaf7c37ad/7424546697be9d05cb1574627fe2054e9719245249e46ada1a5b82197ca97a2e?language=en",
"status_code": null,
"id": "21893-caaf7c37ad",
"additional_data": {
"browser": {
"screen_width": 1920,
"screen_height": 1080,
"screen_color_depth": 24,
"language": "en",
"java_enabled": false,
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36",
"time_zone": -180,
"time_zone_name": "Europe/Milan",
"accept_header": "*/*",
"window_height": 667,
"window_width": 600
}
},
"redirect_url": "https://gateway.bepaid.by/process/21893-caaf7c37ad",
"transaction_verification": {
"message": null,
"status": "incomplete"
},
"be_protected_verification": {
"status": "incomplete",
"message": null
},
"payment": {
"auth_code": null,
"bank_code": null,
"rrn": null,
"ref_id": null,
"message": "Internal decline",
"amount": 100,
"currency": "USD",
"billing_descriptor": null,
"gateway_id": 645,
"status": "failed"
},
"avs_cvc_verification": {
"avs_verification": {
"result_code": null
},
"cvc_verification": {
"result_code": null
}
},
"customer": {
"ip": "127.0.0.1",
"email": "john@example.com",
"device_id": "12312312321fff67",
"birth_date": "1980-01-31"
},
"billing_address": {
"first_name": "John",
"last_name": "Doe",
"address": "1st Street",
"country": "US",
"city": "Denver",
"zip": "96002",
"state": "CO",
"phone": null
}
},
{
"uid": "20885-ada59370aa",
"status": "incomplete",
"amount": 100,
"currency": "USD",
"description": "Test transaction",
"type": "payment",
"payment_method_type": "credit_card",
"tracking_id": "tracking_id_000",
"message": null,
"test": true,
"created_at": "2022-02-08T13:35:45.835Z",
"updated_at": "2022-02-08T13:35:47.926Z",
"paid_at": null,
"expired_at": null,
"recurring_type": null,
"closed_at": null,
"settled_at": null,
"manually_corrected_at": null,
"language": "en",
"credit_card": {
"holder": "John Doe",
"stamp": "3f6d17331f4e0d6e20cd77deb3d053ece49413fc35f4ad0633c3f0079bcf0e78",
"brand": "mir",
"last_4": "0047",
"first_1": "2",
"bin": "220138",
"issuer_country": "RU",
"issuer_name": null,
"product": null,
"exp_month": 10,
"exp_year": 2023,
"token_provider": null,
"token": null
},
"receipt_url": "https://merchant.bepaid.by/customer/transactions/20885-ada59370aa/7b29f4f59eecba1e0c6917fb8686bb03fc6ce42235f95f851f51c5d2d60a868e?language=en",
"status_code": null,
"id": "20885-ada59370aa",
"additional_data": {
"browser": {
"screen_width": 1920,
"screen_height": 1080,
"screen_color_depth": 24,
"language": "en",
"java_enabled": false,
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36",
"time_zone": -180,
"time_zone_name": "Europe/Milan",
"accept_header": "*/*",
"window_height": 667,
"window_width": 600
}
},
"redirect_url": "https://gateway.bepaid.by/process/20885-ada59370aa",
"be_protected_verification": {
"status": "successful",
"message": null,
"white_black_list": {
"email": "absent",
"ip": "absent",
"card_number": "absent"
},
"rules": {
"1_60_Demo Shop": {},
"1_Demo 123": {},
"bePaid": {}
}
},
"three_d_secure_verification": {
"status": "incomplete",
"message": "Authentication Available",
"ve_status": "Y",
"acs_url": null,
"pa_req": null,
"md": null,
"pa_res_url": "https://gateway.bepaid.by/process/20885-ada59370aa",
"eci": null,
"pa_status": null,
"xid": null,
"cavv": null,
"cavv_algorithm": null,
"fail_reason": null,
"method_process_url": null,
"creq": null
},
"payment": {
"auth_code": null,
"bank_code": null,
"rrn": null,
"ref_id": null,
"message": null,
"amount": 100,
"currency": "USD",
"billing_descriptor": null,
"gateway_id": 645,
"status": "incomplete"
},
"avs_cvc_verification": {
"avs_verification": {
"result_code": null
},
"cvc_verification": {
"result_code": null
}
},
"customer": {
"ip": "127.0.0.1",
"email": "john@example.com",
"device_id": "12312312321fff67",
"birth_date": "1980-01-31"
},
"billing_address": {
"first_name": "John",
"last_name": "Doe",
"address": "1st Street",
"country": "US",
"city": "Denver",
"zip": "96002",
"state": "CO",
"phone": null
}
}
]
}