Get Payment Request List
GEThttps://api.cleverhub.co/api/v1/payment_requests/bank_payments
Retrieve a list of bank payment requests within a specified time period, up to a maximum of 1 year. This endpoint enables you to track and manage transactions by querying records based on a start (from_date
) and end date (to_date
). For queries beyond the 1-year limit, please contact our support team for assistance.
Pagination is supported, with up to 20 records returned per page, allowing you to browse through large datasets efficiently.
Request
Query Parameters
The start date for querying payment requests, formatted as 'DD/MM/YY' or 'YYYY-MM-DDThh:mm:ss' in UTC timezone.
The end date for querying payment requests, formatted as 'DD/MM/YY' or 'YYYY-MM-DDThh:mm:ss' in UTC timezone.
Page number to retrieve. Each page contains up to 20 records.
Responses
- 200
- 400
- 401
Payment request list retrieved successfully.
- application/json
- Schema
- Example (auto)
Schema
The number of records displayed per page.
20
The current page number being viewed.
1
The total number of pages available.
5
records object[]
{
"per_page": 20,
"page": 1,
"total_page": 5,
"records": [
{
"id": 12345,
"payee_detail": {
"account_holder_name": "Jane Doe",
"bsb": "654321",
"account_number": "987654321"
},
"name": "Jane Doe",
"merchant_name": "Merchant Inc.",
"gst": true,
"amount": "1000.0",
"total": "1100.0",
"gst_amount": "100.0",
"expired_at": "2024-12-31T23:59:59Z",
"external_id": "custom-id-12345",
"cashback_amount": "50.0",
"pay_by": "2024-12-30T23:59:59Z",
"paid_at": "2024-12-25T12:34:56Z",
"status": "received",
"description": "Payment for invoice #1234",
"refund_information": {
"refund_bsb": "654321",
"refund_account_number": "987654321",
"refund_amount": "10.99",
"request_date": "2024-07-01T00:00:00Z",
"reason": "Refund for incorrect payment"
},
"payment_request_notification": {
"endpoint_url": "https://merchant.com/payment_callback",
"authorization_header": "Bearer your_token"
},
"nonce": "unique_nonce_string",
"stage": "overpaid",
"additional_property": "Additional value"
}
]
}
Bad Request
Unauthorized
Authorization: app-id
name: app-idtype: apiKeyin: headerdescription: A unique identifier assigned to each application.
name: secret-keytype: apiKeyin: headerdescription: A secure token associated with the `app-id`.
- 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/payment_requests/bank_payments");
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());