Customers
Everyone who has paid the business, with how often and how much.
Live
Customers work through the API today, with test and live keys.
A customer is someone who has paid the business, known by their phone number. They're the same as the dashboard's Customers. A live key sees customers with live payments; a test key, customers with test payments. Someone whose payments all failed isn't listed.
The customer object
{
"id": "cus_5l9n3t7qpa2d6f8g1rsy",
"name": "Kofi Boateng",
"phone": "233244001234",
"email": "kofi@example.com",
"payments": 7,
"total_paid": 1250,
"first_paid_at": "2026-09-02T12:41:08Z",
"last_paid_at": "2026-10-24T09:16:41Z"
}total_paid is in cedis, less refunds. The name and email are the ones the
customer gave most recently.
List customers
GET/v1/customers
Most recent payers first: search (a name, an email, or part of a phone
number), page and page_size (up to 100).
curl "https://api.xtopay.co/v1/customers?search=kofi" \
-H "Authorization: Bearer sk_live_…"Get a customer
GET/v1/customers/{id}
Their payments are GET /v1/payments: each payment carries
the customer's name, phone and email.