Get Payout List
GEThttps://api.cleverhub.co/api/v1/payouts/
Retrieve a list of payout transactions made within a specified time frame. This endpoint allows you to track payouts over a given period, with paging options for large datasets. You can query up to a 1-year period. If additional support for a longer time range is required, please contact our support team.
The query parameters from_date
and to_date
specify the time range, and page
allows for pagination of results, with 20 records per page.
Request
Query Parameters
Start date for querying payout requests. Accepted formats are 'DD/MM/YY' or 'YYYY-MM-DDThh:mm:ss'. This date-time is in UTC.
End date for querying payout requests. Accepted formats are 'DD/MM/YY' or 'YYYY-MM-DDThh:mm:ss'. This date-time is in UTC.
Page number to query. Each page contains up to 20 records. Use this parameter to navigate through multiple pages of results.
Responses
- 200
- 400
- 401
- 404
- 422
Successful response with a list of payout transactions.
- application/json
- Schema
- Example (auto)
Schema
The start date of the queried payout transactions, as specified in the request.
2022-01-01T00:00:00
The end date of the queried payout transactions, as specified in the request.
2022-12-31T23:59:59
The current page number of the returned results.
1
The number of records per page. Default is 20.
20
The page number for the next set of results, if available.
2
The total number of pages available based on the query parameters.
5
The total number of payout transactions available within the specified date range.
100
records object[]
{
"from_date": "2022-01-01T00:00:00",
"to_date": "2022-12-31T23:59:59",
"page": 1,
"size": 20,
"next_page": 2,
"total_page": 5,
"total_count": 100,
"records": [
{
"id": 12345,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"description": "Payout for invoice #12345",
"payid": "sample@payid.com",
"total_amount": "1000.00",
"total_refund": "100.00",
"total_failed_transactions": "2",
"scheduled_at": "2024-12-31T23:59:59Z",
"status": "processing",
"export_url": "https://example.com/download/payout_attachment",
"payout_notification": {
"endpoint_url": "https://merchant.com/payout_callback",
"authorization_header": "Bearer your_token"
},
"error_code": "HC_PAYOUT1",
"error_message": "Insufficient funds to payout. Please top up balance in the dashboard.",
"is_retry": false,
"external_id": "custom-payout-id-6789",
"payout_transactions": [
{
"id": 123,
"balance_id": "550e8400-e29b-41d4-a716-446655441111",
"payee": "John Doe",
"payid": "payee@payid.com",
"payid_type": "EMAIL",
"bsb": "123456",
"account_number": "987654321",
"amount": "500.00",
"status": "settled",
"error_message": "Payment failed due to insufficient funds.",
"created_at": "2024-01-01T00:00:00Z"
}
]
}
]
}
Bad Request
Unauthorized
Not Found
Unprocessable Entity
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.cleverhub.co/api/v1/payouts/");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());