Skip to content

Customers API

GET /v1/customers

Query Parameters:

ParameterTypeDescription
pagenumberPage number (default: 1)
limitnumberItems per page (default: 20)
searchstringSearch by name or email

Response:

{
"success": true,
"data": [
{
"id": "cust_abc123",
"email": "jane@example.com",
"name": "Jane Doe",
"externalId": "user_456",
"metadata": {},
"createdAt": "2025-01-15T10:30:00Z"
}
],
"pagination": { "page": 1, "limit": 20, "total": 42 }
}
GET /v1/customers/{id}
POST /v1/customers

Request Body:

{
"email": "jane@example.com",
"name": "Jane Doe",
"externalId": "user_456",
"metadata": {
"tier": "gold"
}
}
FieldTypeRequiredDescription
emailstringYesCustomer email
namestringNoDisplay name
externalIdstringNoYour system’s user ID
metadataobjectNoCustom key-value data
PATCH /v1/customers/{id}

Request Body:

{
"name": "Jane Smith",
"metadata": {
"tier": "platinum"
}
}
DELETE /v1/customers/{id}

Returns 204 No Content on success.