Get Payment Request List
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.
curl --request GET \
--url https://api.cleverhub.co/api/v1/payment_requests/bank_payments \
--header 'app-id: <api-key>' \
--header 'secret-key: <api-key>'import requests
url = "https://api.cleverhub.co/api/v1/payment_requests/bank_payments"
headers = {
"app-id": "<api-key>",
"secret-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'app-id': '<api-key>', 'secret-key': '<api-key>'}};
fetch('https://api.cleverhub.co/api/v1/payment_requests/bank_payments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cleverhub.co/api/v1/payment_requests/bank_payments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"app-id: <api-key>",
"secret-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cleverhub.co/api/v1/payment_requests/bank_payments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("app-id", "<api-key>")
req.Header.Add("secret-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cleverhub.co/api/v1/payment_requests/bank_payments")
.header("app-id", "<api-key>")
.header("secret-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cleverhub.co/api/v1/payment_requests/bank_payments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["app-id"] = '<api-key>'
request["secret-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"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"
}
]
}Authorizations
A unique identifier assigned to each application.
A secure token associated with the app-id.
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.
curl --request GET \
--url https://api.cleverhub.co/api/v1/payment_requests/bank_payments \
--header 'app-id: <api-key>' \
--header 'secret-key: <api-key>'import requests
url = "https://api.cleverhub.co/api/v1/payment_requests/bank_payments"
headers = {
"app-id": "<api-key>",
"secret-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'app-id': '<api-key>', 'secret-key': '<api-key>'}};
fetch('https://api.cleverhub.co/api/v1/payment_requests/bank_payments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cleverhub.co/api/v1/payment_requests/bank_payments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"app-id: <api-key>",
"secret-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cleverhub.co/api/v1/payment_requests/bank_payments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("app-id", "<api-key>")
req.Header.Add("secret-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cleverhub.co/api/v1/payment_requests/bank_payments")
.header("app-id", "<api-key>")
.header("secret-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cleverhub.co/api/v1/payment_requests/bank_payments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["app-id"] = '<api-key>'
request["secret-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"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"
}
]
}