Перейти к содержанию

Запрос статуса

Позволяет получить информацию об операции. Часто используется с целью уточнить статус операций оплата и авторизация.


Запрос

Чтобы получить статус или информацию о транзакции по 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.

Ответ
Пример ответа
{
  "transaction": {
    "uid": "3fffb637-aa8e-4f7d-9180-c19688d2dce1",
    "status": "successful",
    "amount": 492,
    "currency": "EUR",
    "description": "Test transaction",
    "type": "payment",
    "payment_method_type": "credit_card",
    "tracking_id": "your_uniq_number",
    "message": "Successfully processed",
    "test": true,
    "created_at": "2024-04-02T14:19:04.692Z",
    "updated_at": "2024-04-02T14:19:12.733Z",
    "paid_at": "2024-04-02T14:19:12.677Z",
    "expired_at": null,
    "recurring_type": "initial",
    "closed_at": null,
    "settled_at": null,
    "manually_corrected_at": null,
    "language": "en",
    "credit_card": {
      "holder": "John Doe",
      "stamp": "bb58cad9c1204ca2287b3e1006cc1a2c0fb8f062dde9e5232c8be5498bd0e62a",
      "brand": "visa",
      "last_4": "1097",
      "first_1": "4",
      "bin": "401200",
      "bin_8": "40120000",
      "issuer_country": null,
      "issuer_name": null,
      "product": null,
      "exp_month": 7,
      "exp_year": 2026,
      "token_provider": null,
      "token": "f969f92f-82fa-45b2-9974-38cecdf9648e"
    },
    "receipt_url": "https://merchant.bepaid.by/customer/transactions/3fffb637-aa8e-4f7d-9180-c19688d2dce1/a091d2bd58c1a96bc15b7cf2d9b5a8e99e1f9615bac75eae5515e123e1b1bd5c?language=en",
    "status_code": null,
    "gateway": {
      "iframe": true
    },
    "mute_notifications": null,
    "id": "3fffb637-aa8e-4f7d-9180-c19688d2dce1",
    "additional_data": {
      "contract": [
        "recurring"
      ]
    },
    "redirect_url": "https://gateway.bepaid.by/process/3fffb637-aa8e-4f7d-9180-c19688d2dce1",
    "code": "S.0000",
    "friendly_message": "The operation is successful.",
    "smart_routing_verification": {
      "status": "successful"
    },
    "payment": {
      "auth_code": "654321",
      "bank_code": "05",
      "rrn": "999",
      "ref_id": "777888",
      "message": "Payment was approved",
      "amount": 492,
      "currency": "EUR",
      "billing_descriptor": "test descriptor",
      "gateway_id": 3483,
      "status": "successful"
    },
    "customer": {
      "ip": null,
      "email": null,
      "device_id": null,
      "birth_date": null
    },
    "billing_address": {
      "first_name": "John",
      "last_name": "Doe",
      "address": "1st Street",
      "country": "US",
      "city": "Denver",
      "zip": "96002",
      "state": "CO",
      "phone": null
    }
  }
}