Get Static PayID List
Retrieve a comprehensive list of all Static Open PayIDs registered under your account. This endpoint allows for efficient management of Static PayIDs by providing options to filter the results based on customer-specific identifiers. You can filter by email, PayID, or customer ID to quickly locate and review relevant Static PayIDs.
Static Open PayIDs are reusable identifiers that link directly to customer details, streamlining future payment interactions and providing a persistent payment method. This list can be used to monitor, manage, and organise Static PayIDs within your account.
curl --request GET \
--url https://api.cleverhub.co/api/v1/customers/get_static_open_payids \
--header 'app-id: <api-key>' \
--header 'secret-key: <api-key>'import requests
url = "https://api.cleverhub.co/api/v1/customers/get_static_open_payids"
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/customers/get_static_open_payids', 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/customers/get_static_open_payids",
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/customers/get_static_open_payids"
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/customers/get_static_open_payids")
.header("app-id", "<api-key>")
.header("secret-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cleverhub.co/api/v1/customers/get_static_open_payids")
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{
"total": 20,
"page": 1,
"total_page": 1,
"records": [
{
"id": 1,
"name": "Sample Name",
"address": "123 Sample Street",
"email": "user@example.com",
"city": "Sample City",
"state_name": "Sample State",
"zip_code": "12345",
"static_payid": "samplepayid@example.com",
"external_id": "ext-12345",
"status": "active"
}
]
}Authorizations
A unique identifier assigned to each application.
A secure token associated with the app-id.
Query Parameters
Filter the list by the customer’s email address to retrieve associated Static PayIDs.
Filter the list by a specific PayID to retrieve matching records.
Filter the list by the customer’s unique ID to retrieve associated Static PayIDs.
curl --request GET \
--url https://api.cleverhub.co/api/v1/customers/get_static_open_payids \
--header 'app-id: <api-key>' \
--header 'secret-key: <api-key>'import requests
url = "https://api.cleverhub.co/api/v1/customers/get_static_open_payids"
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/customers/get_static_open_payids', 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/customers/get_static_open_payids",
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/customers/get_static_open_payids"
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/customers/get_static_open_payids")
.header("app-id", "<api-key>")
.header("secret-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cleverhub.co/api/v1/customers/get_static_open_payids")
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{
"total": 20,
"page": 1,
"total_page": 1,
"records": [
{
"id": 1,
"name": "Sample Name",
"address": "123 Sample Street",
"email": "user@example.com",
"city": "Sample City",
"state_name": "Sample State",
"zip_code": "12345",
"static_payid": "samplepayid@example.com",
"external_id": "ext-12345",
"status": "active"
}
]
}