Utopia PaymentsDocs
Customers

List customers

Lists customers, newest first, or finds one by `email`. One page carries `items`, `has_more` and `next_cursor`; pass `next_cursor` back as `cursor` for the next page. Only customers belonging to the key's merchant and mode are listed.

GET
/customers

Lists customers, newest first, or finds one by email. One page carries items, has_more and next_cursor; pass next_cursor back as cursor for the next page. Only customers belonging to the key's merchant and mode are listed.

Authorization

secretKey
AuthorizationBearer <token>

Your secret key: sk_live_… or sk_test_….

In: header

Query Parameters

limit?integer

How many records to return in one page: 1 to 100, and 20 when left out. Asking for more than 100 is refused with INVALID_REQUEST.

Range1 <= value <= 100
Default20
cursor?string

The next_cursor of the previous page; leave it out for the first page. A cursor marks the record the next page starts after, so records created while you walk the list never shift the pages you have not read yet. Anything the API did not issue is refused with INVALID_CURSOR.

email?string

The customer with this email address, compared in lower case. Emails are unique per merchant and mode, so at most one customer matches.

Formatemail

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/customers"
{  "items": [    {      "object": "customer",      "customer_id": "cus_3f2b8c1e9a4d4e7b8c2a1d5e6f7a8b9c",      "name": "string",      "email": "user@example.com",      "phone_number": "string",      "metadata": {        "property1": "string",        "property2": "string"      },      "created_at": "2019-08-24T14:15:22Z"    }  ],  "has_more": true,  "next_cursor": "string"}