Getting all disbursements
GET|POST /api/disbursements
Request:
| Field | Required | Type | Description |
|---|---|---|---|
| perPage | ❌ | int | Number of records per page. Default: 10 |
| page | ❌ | int | Page number. Default: 1 |
| filters | ❌ | array | Array of objects for filtering records |
| filters.*.type | ❌ | string | Filter type - and or or. Default: and |
| filters.*.field | ✅ | string | Field to filter by. ('id', 'paySystem', 'contractId', 'amount', 'client_amount', 'commission', 'orderId', 'fundTransactionId', 'status', 'error', 'createdAt', 'updatedAt') |
| filters.*.operator | ❌ | string | Comparison operator (<, <=, >, >=, =, !=, like, not like, in, not in). Default: = |
| filters.*.value | ❌ | mixed | Value for comparison |
| sort | ❌ | string | Field to sort by ('id', 'paySystem', 'contractId', 'amount', 'client_amount', 'commission', 'orderId', 'fundTransactionId', 'status', 'error', 'createdAt', 'updatedAt') |
| sortDirection | ❌ | mixed | Sort direction (asc, desc). Default: 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"
}
]
}