Skip to content

Получение всех выдач

GET|POST /api/disbursements

Request:

FieldRequiredTypeDescription
perPageintКол-во записей в странице. По умолчанию: 10
pageintНомер страницы. По умолчанию: 1
filtersarrayМассив объектов для филтрации записей
filters.*.typestringВид фильтрации - and или or. По умолчанию: and
filters.*.fieldstringПоле для филтрации. ('id', 'paySystem', 'contractId', 'amount', 'client_amount', 'commission', 'orderId', 'fundTransactionId', 'status', 'error', 'createdAt', 'updatedAt')
filters.*.operatorstringОператор сравнения (<, <=, >, >=, =, !=, like, not like, in, not in). По умолчанию: =
filters.*.valuemixedЗначение для сравнения
sortstringПоле для сортировки ('id', 'paySystem', 'contractId', 'amount', 'client_amount', 'commission', 'orderId', 'fundTransactionId', 'status', 'error', 'createdAt', 'updatedAt')
sortDirectionmixedНаправление сортировки (asc, desc). По умолчанию: asc

Response:

json
{
  "status": "ok",
  "timestamp": "1685516056000",
  "data": [
    {
      "id": 56,
      "paySystem": "tinkoff",
      "contractId": 101342406,
      "amount": 10000,
      "client_amount": 10000,
      "commission": 0,
      "orderId": "",
      "status": -1,
      "statusText": "???",
      "error": "Error append DDS data",
      "createdAt": "2022-03-25T19:48:29+03:00",
      "updatedAt": "2022-03-25T19:48:29+03:00"
    },
    {
      "id": 55,
      "paySystem": "tinkoff",
      "contractId": 101342406,
      "amount": 10000,
      "client_amount": 10000,
      "commission": 0,
      "orderId": "",
      "status": -1,
      "statusText": "???",
      "error": "Error append DDS data",
      "createdAt": "2022-03-25T19:48:16+03:00",
      "updatedAt": "2022-03-25T19:48:16+03:00"
    }
  ]
}