id (cust_...) across transactions, payments, and subscriptions.
All requests require the x-api-key header. See Authentication.
Endpoints
| Method | Route | Description |
|---|---|---|
POST | /customers | Creates a new customer |
GET | /customers | Lists customers (paginated, with filters) |
GET | /customers/:id | Retrieves a customer by ID |
PUT | /customers/:id | Updates a customer |
DELETE | /customers/:id | Removes a customer (soft delete) |
The Customer object
Fields accepted on creation (POST) and update (PUT).
Customer’s full name. Minimum of 2 characters.
Customer’s email address. Must be a valid email.
Customer type. Accepted values:
individual, company.Customer’s identification document (CPF, CNPJ, or passport). Minimum of 6 characters.
Document type. Accepted values:
cpf, cnpj, passport. Default: cpf.Customer’s phone number. Cannot be empty.
Customer’s address (optional). All nested fields are strings and may be
null.For
address, each field is required within the object but accepts null. That means: if you
send address, include all 8 keys (use null for any missing values). If you have no address
at all, simply omit the entire address field.Create a customer
POST /customers — responds 201 Created.Idempotency-Key header with a unique value
per request to avoid creating duplicate customers on retries. See
Conventions.
Your API key. See Authentication.
Unique key to ensure idempotency for the request (optional).
Resposta 201
List customers
GET /customers — responds 200 OK with a paginated list.Query parameters
All filters are optional and passed as query string parameters. When provided, text values perform a partial (case-insensitive) match.Filter by name.
Filter by email address.
Filter by document number.
Filter by document type:
cpf, cnpj, or passport.Filter by phone number.
Filter by customer type:
individual or company.Free-text search.
Combined search (ILIKE) across
name, email, and document fields.Start of the creation date range. Format: ISO 8601 with timezone (e.g.,
2026-01-01T00:00:00Z).End of the creation date range. Format: ISO 8601 with timezone (e.g.,
2026-01-31T23:59:59Z).Field to sort by. Values:
name, createdAt, updatedAt.Sort direction. Values:
asc, desc.Pagination
Page number (minimum 1).
Number of items per page (minimum 1, maximum 100).
Date parameters must use ISO 8601 with timezone. Date-only strings (
YYYY-MM-DD) or
DD/MM/YYYY format are rejected. See Conventions.Resposta 200
Pagination metadata is returned inside a
pagination object (page, limit, total, and
totalPages). This envelope is the platform standard — see Conventions.Retrieve a customer by ID
GET /customers/:id — responds 200 OK.Customer ID (e.g.,
cust_8f3k2m9q1w7r5t0y).Resposta 200
Update a customer
PUT /customers/:id — responds 200 OK.ID of the customer to update.
Resposta 200
Delete a customer
DELETE /customers/:id — responds 200 OK.deletedAt field populated.
This endpoint is idempotent.
ID of the customer to delete.
Resposta 200
See also
Transactions
Create transactions using a customer as the buyer.
Payments
Payments linked to a customer’s transactions.
Subscriptions
Recurring charges for a customer.
Conventions
Pagination, idempotency, and date formats.

