API FONDYВерсия 1.0

Получение списка транзакций по платежу

Данный функционал API позволяет получить список транзакций, которые были созданы в рамках покупки (order). На одну покупку может быть создано несколько транзакций, таких как: попытки клиента оплатить разными платежными реквизитами, транзакции purchase, reverse, capture. Причиной нескольких транзакций purchase помимо попыток клиента, также может быть работа бинменеджмента — процесса маршрутизации транзакций на разные банки-эквайеры в случае отказов или сбоев протоколов банков.

  1. Параметры запроса
  2. Пример запроса
  3. Пример ответа

Параметры запроса

ПараметрТипОписаниеПример передаваемого мерчантом значения
merchant_idinteger(12)

Уникальный идентификатор мерчанта. Выдается торговцу после регистрации.

обязательный
1
order_idstring(1024)

Идентификатор заказа, назначаемый мерчантом.

обязательный
order_12345_12.10.2018:11:05
signaturestring(40)

Подпись заказа.
Служит для проверки целостности и подлинности запроса на стороне сервера платежного шлюза

обязательный
1773cf135bd89656131134b98637894dad42f808

Пример запроса

 

POST /api/transaction_list/
Content-Type: application/json
{
  "request": {
    "order_id": "13986590658a6e385e2c26",
    "merchant_id": "1396424",
    "signature": "e7fd0638142def963fb3cc9a47c63dd1c29a12dd"
  }
}

Пример ответа

 

{
  "response": [
    {
      "verification_code": null,
      "masked_card": "408093XXXXXX8221",
      "protocol": "safe_charge",
      "pares_status": null,
      "sender_country": "US",
      "istest": "N",
      "timestart": "17.02.2017 13:50:32",
      "currency": "USD",
      "preauth": "N",
      "transaction_status": "declined",
      "duration": 953,
      "binmanagement_enabled": "Y",
      "ip_country": "US",
      "receiver_country": null,
      "id": 1020832654,
      "receiver_approval_code": null,
      "fee": null,
      "rectoken_lifetime": null,
      "card_last_digits": "8221",
      "reversal_amount": 0,
      "settlement_amount": 0,
      "timeend": "17.02.2017 13:50:33",
      "order_id": "13986590658a6e385e2c26",
      "cavv": null,
      "parent_tran_id": null,
      "actual_amount": 33.7,
      "ipaddress_v4": "45.56.154.162",
      "expire_year": "2019",
      "actual_currency": "USD",
      "receiver_rrn": null,
      "tran_type": "purchase",
      "eci": null,
      "settlement_date": null,
      "payment_system": "card",
      "rectoken": null,
      "merchant_id": 1397308,
      "response_description": "General decline",
      "settlement_currency": null,
      "payment_id": 37877547,
      "md": "1020832654",
      "sender_rrn": null,
      "capture_status": null,
      "expire_month": "03",
      "card_bin": "408093",
      "sender_approval_code": null,
      "client_fee": 0,
      "capture_amount": null,
      "card_type": "VISA",
      "amount": 33.7,
      "sender_email": null,
      "veres_status": null,
      "settlement_status": null,
      "response_code": 1000
    },
    {
      "verification_code": null,
      "masked_card": "408093XXXXXX8221",
      "protocol": "checkout",
      "pares_status": null,
      "sender_country": "US",
      "istest": "N",
      "timestart": "17.02.2017 13:50:31",
      "currency": "USD",
      "preauth": "N",
      "transaction_status": "declined",
      "duration": 1322,
      "binmanagement_enabled": "Y",
      "ip_country": "US",
      "receiver_country": null,
      "id": 1020832650,
      "receiver_approval_code": null,
      "fee": null,
      "rectoken_lifetime": null,
      "card_last_digits": "8221",
      "reversal_amount": 0,
      "settlement_amount": 0,
      "timeend": "17.02.2017 13:50:32",
      "order_id": "13986590658a6e385e2c26",
      "cavv": null,
      "parent_tran_id": null,
      "actual_amount": 33.7,
      "ipaddress_v4": "45.56.154.162",
      "expire_year": "2019",
      "actual_currency": "USD",
      "receiver_rrn": null,
      "tran_type": "purchase",
      "eci": null,
      "settlement_date": null,
      "payment_system": "card",
      "rectoken": null,
      "merchant_id": 1397308,
      "response_description": "General decline",
      "settlement_currency": null,
      "payment_id": 37877547,
      "md": null,
      "sender_rrn": null,
      "capture_status": null,
      "expire_month": "03",
      "card_bin": "408093",
      "sender_approval_code": null,
      "client_fee": 0,
      "capture_amount": null,
      "card_type": "VISA",
      "amount": 33.7,
      "sender_email": null,
      "veres_status": null,
      "settlement_status": null,
      "response_code": 1000
    },
    {
      "verification_code": null,
      "masked_card": "408093XXXXXX8221",
      "protocol": "lpb",
      "pares_status": null,
      "sender_country": "US",
      "istest": "N",
      "timestart": "17.02.2017 13:50:30",
      "currency": "USD",
      "preauth": "N",
      "transaction_status": "declined",
      "duration": 401,
      "binmanagement_enabled": "Y",
      "ip_country": "US",
      "receiver_country": null,
      "id": 1020832648,
      "receiver_approval_code": null,
      "fee": null,
      "rectoken_lifetime": null,
      "card_last_digits": "8221",
      "reversal_amount": 0,
      "settlement_amount": 0,
      "timeend": "17.02.2017 13:50:31",
      "order_id": "13986590658a6e385e2c26",
      "cavv": null,
      "parent_tran_id": null,
      "actual_amount": 33.7,
      "ipaddress_v4": "45.56.154.162",
      "expire_year": "2019",
      "actual_currency": "USD",
      "receiver_rrn": null,
      "tran_type": "purchase",
      "eci": null,
      "settlement_date": null,
      "payment_system": "card",
      "rectoken": null,
      "merchant_id": 1397308,
      "response_description": "Order `{order_id}` not found",
      "settlement_currency": null,
      "payment_id": 37877547,
      "md": null,
      "sender_rrn": null,
      "capture_status": null,
      "expire_month": "03",
      "card_bin": "408093",
      "sender_approval_code": null,
      "client_fee": 0,
      "capture_amount": null,
      "card_type": "VISA",
      "amount": 33.7,
      "sender_email": null,
      "veres_status": null,
      "settlement_status": null,
      "response_code": 1018
    }
  ]
}

Хочу принимать платежи со всего мира!