List cardholders
curl --request GET \
--url https://api-sandbox.endl.io/api/v0/customer/{businessId}/card-users \
--header 'Api-Key: <api-key>' \
--header 'Api-Version: <api-version>'import requests
url = "https://api-sandbox.endl.io/api/v0/customer/{businessId}/card-users"
headers = {
"Api-Version": "<api-version>",
"Api-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Api-Version': '<api-version>', 'Api-Key': '<api-key>'}
};
fetch('https://api-sandbox.endl.io/api/v0/customer/{businessId}/card-users', 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-sandbox.endl.io/api/v0/customer/{businessId}/card-users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Api-Key: <api-key>",
"Api-Version: <api-version>"
],
]);
$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-sandbox.endl.io/api/v0/customer/{businessId}/card-users"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Api-Version", "<api-version>")
req.Header.Add("Api-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-sandbox.endl.io/api/v0/customer/{businessId}/card-users")
.header("Api-Version", "<api-version>")
.header("Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.endl.io/api/v0/customer/{businessId}/card-users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Api-Version"] = '<api-version>'
request["Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"cardholders": [
{
"cardholderId": "cus_6OzDYZWl5Aim37RwvZfZ",
"businessId": "cus_HUCgMg1iqWb379FMNvaJ",
"firstName": "Ada",
"lastName": "Lovelace",
"email": "ada@example.com",
"status": "active",
"cards": [
{
"cardId": "f92950fa-bc30-4aaa-bafc-995b454bf1e5",
"kind": "scoped",
"status": "canceled",
"last4": "8326",
"expiryMonth": "05",
"expiryYear": "2031",
"displayName": "Agent card",
"limitAmount": 120,
"limitFrequency": "allTime",
"scope": {
"amountInUSDCents": 100,
"lifetimeLimitCents": 120,
"bufferPercentage": 20,
"expiresAt": null,
"allowedMccs": [],
"allowedMerchants": [],
"cardType": "consumer",
"purpose": "order 8841",
"spentAt": "2026-09-29T10:12:00Z"
}
}
]
}
],
"nextCursor": null,
"hasMore": false
}{
"code": 400,
"message": "amountInUSDCents must be an integer from 1 to 10000000",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRCRD_1005",
"message": "amountInUSDCents must be an integer from 1 to 10000000",
"field": null
}
]
}{
"code": 401,
"message": "Partner API key required",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRCORE_1004",
"message": "Partner API key required",
"field": null
}
]
}{
"code": 403,
"message": "Access denied / missing cards permission",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRCORE_1005",
"message": "Access denied / missing cards permission",
"field": null
}
]
}{
"code": 404,
"message": "Reference not found",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRREF_1001",
"message": "Reference not found",
"field": "userId"
}
]
}{
"code": 502,
"message": "Card issuing temporarily unavailable",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRCRD_1009",
"message": "Card issuing temporarily unavailable",
"field": null
}
]
}List cardholders
Cardholders under a business, 20 per page, each with their cards newest first.
Follow nextCursor until it is null; hasMore says whether another page exists.
GET
/
api
/
v0
/
customer
/
{businessId}
/
card-users
List cardholders
curl --request GET \
--url https://api-sandbox.endl.io/api/v0/customer/{businessId}/card-users \
--header 'Api-Key: <api-key>' \
--header 'Api-Version: <api-version>'import requests
url = "https://api-sandbox.endl.io/api/v0/customer/{businessId}/card-users"
headers = {
"Api-Version": "<api-version>",
"Api-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Api-Version': '<api-version>', 'Api-Key': '<api-key>'}
};
fetch('https://api-sandbox.endl.io/api/v0/customer/{businessId}/card-users', 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-sandbox.endl.io/api/v0/customer/{businessId}/card-users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Api-Key: <api-key>",
"Api-Version: <api-version>"
],
]);
$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-sandbox.endl.io/api/v0/customer/{businessId}/card-users"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Api-Version", "<api-version>")
req.Header.Add("Api-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-sandbox.endl.io/api/v0/customer/{businessId}/card-users")
.header("Api-Version", "<api-version>")
.header("Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.endl.io/api/v0/customer/{businessId}/card-users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Api-Version"] = '<api-version>'
request["Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"cardholders": [
{
"cardholderId": "cus_6OzDYZWl5Aim37RwvZfZ",
"businessId": "cus_HUCgMg1iqWb379FMNvaJ",
"firstName": "Ada",
"lastName": "Lovelace",
"email": "ada@example.com",
"status": "active",
"cards": [
{
"cardId": "f92950fa-bc30-4aaa-bafc-995b454bf1e5",
"kind": "scoped",
"status": "canceled",
"last4": "8326",
"expiryMonth": "05",
"expiryYear": "2031",
"displayName": "Agent card",
"limitAmount": 120,
"limitFrequency": "allTime",
"scope": {
"amountInUSDCents": 100,
"lifetimeLimitCents": 120,
"bufferPercentage": 20,
"expiresAt": null,
"allowedMccs": [],
"allowedMerchants": [],
"cardType": "consumer",
"purpose": "order 8841",
"spentAt": "2026-09-29T10:12:00Z"
}
}
]
}
],
"nextCursor": null,
"hasMore": false
}{
"code": 400,
"message": "amountInUSDCents must be an integer from 1 to 10000000",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRCRD_1005",
"message": "amountInUSDCents must be an integer from 1 to 10000000",
"field": null
}
]
}{
"code": 401,
"message": "Partner API key required",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRCORE_1004",
"message": "Partner API key required",
"field": null
}
]
}{
"code": 403,
"message": "Access denied / missing cards permission",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRCORE_1005",
"message": "Access denied / missing cards permission",
"field": null
}
]
}{
"code": 404,
"message": "Reference not found",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRREF_1001",
"message": "Reference not found",
"field": "userId"
}
]
}{
"code": 502,
"message": "Card issuing temporarily unavailable",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRCRD_1009",
"message": "Card issuing temporarily unavailable",
"field": null
}
]
}Authorizations
Partner API key. Must carry the cards permission.
Headers
The API version this request targets. 2026-09.1. See Versioning.
Pattern:
^\d{4}-\d{2}\.\d+$Path Parameters
Your business customer, cus_…, enabled for cards.
Query Parameters
The nextCursor from the previous page. Omit for the first page.