Get Payout Requests in a Period of Time
GEThttps://api.cleverhub.co/api/v2/payouts/all
You can easily query payout payments in a period of time. Currently we support up to 1 year period. Should you need more, please contact us directly.
Request
Query Parameters
from_date stringrequired
Start date to queries payment requests from, format 'DD/MM/YY' or 'YYYY-MM-DDThh:mm:ss'. This datetime would be in UTC timezone
Example: 2022-01-01T00:00:00
to_date stringrequired
End date to queries payment requests, format 'DD/MM/YY' or 'YYYY-MM-DDThh:mm:ss'. This datetime would be in UTC timezone
Example: 2022-01-01T00:00:00
page stringrequired
Page number to query. Currently we support 20 records per page
Responses
- 200
- 400
- 401
- 404
- 422
OK
- application/json
- Schema
- Example (auto)
Schema
from_datestringrequired
Example:
2022-01-01T00:00:00.000+0000
to_datestringrequired
Example:
2022-12-01T00:00:00.000+0000
pageintegerrequired
Example:
1
sizeintegerrequired
Example:
10
next_pageintegerrequired
Example:
2
total_pageintegerrequired
Example:
1
total_countintegerrequired
Example:
10
records object[]required
{
"from_date": "2022-01-01T00:00:00.000+0000",
"to_date": "2022-12-01T00:00:00.000+0000",
"page": 1,
"size": 10,
"next_page": 2,
"total_page": 1,
"total_count": 10,
"records": [
{
"uuid": "OHXTEF9M",
"currency": "PHP",
"payout_method_name": "ph_ewallet_gcash_php",
"description": "Payout payment 2023",
"total_amount": "1000",
"status": "completed",
"webhook_notification": {
"endpoint_url": "https://example.org",
"authorization_header": "SECRET"
},
"scheduled_at": "2023-04-01T00:00:00.000+0000",
"payout_transactions": [
{
"uuid": "OHXTEF9M",
"balance_id": "808C75EF-988143EB",
"payee": "John Scarlet",
"amount": "100.00",
"payout_method_params": {
"account_number": 123456789999,
"account_name": "Luyx",
"bank_code": 11111
},
"status": "settled",
"error_message": "PayID not found",
"created_at": "2022-01-01T00:00:00.000+0000"
}
],
"error_code": "HC_PAYOUT1",
"error_message": "Insufficient available funds. Top up your balance.",
"external_id": "123"
}
]
}
Bad Request
Unauthorized
- application/json
- Schema
- Example (auto)
- Example
Schema
errors object
{
"errors": {
"code": "string",
"message": "string"
}
}
{
"errors": {
"code": "REQUIRE_LOGIN",
"message": "Not Authorised"
}
}
Not Found
- application/json
- Schema
- Example (auto)
- Example
Schema
errors object
{
"errors": {
"message": "string"
}
}
{
"errors": {
"message": "Not found"
}
}
Unporcessable Entity
- application/json
- Schema
- Example (auto)
- Example
Schema
errors object
{
"errors": {
"message": "string"
}
}
{
"errors": {
"message": "Invalid date"
}
}
Authorization: app-id
name: app-idtype: apiKeydescription: The app-id is registered and secured inside Hello Clever system and only required when client has initiated or in the middle of the transaction.in: header
name: secret-keytype: apiKeydescription: The secret-key is our client's secret of the source. Required if a publishable key is used to retrieve the source.in: header
- 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/v2/payouts/all");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("app-id", "<app-id>");
request.Headers.Add("secret-key", "<app-id>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear