Skip to article

REST

Customers

Create, read and update customer records.

Customer records are the root of every billing relationship. This page is a placeholder for the customer endpoints.

List customers#

GET/v1/customers

Returns a paginated list of customers for the tenant.

ParameterTypeNotes
limitnumberPage size, 1 to 100
cursorstringCursor from the previous page
emailstringExact-match filter
curl -H "Authorization: Bearer $VERLIX_API_KEY" \
  "https://api.verlix.example/v1/customers?limit=25"

Create a customer#

POST/v1/customers

Creates a customer. Requires the customers:write scope.

{
    "name": "Brightline Logistics",
    "email": "billing@brightline.example",
    "currency": "usd"
}

Email is the identity

Two customers with the same email in one tenant are rejected with a conflict. Match on email before you create.

Update a customer#

PATCH/v1/customers/{id}

Updates the mutable fields of one customer.

FieldTypeNotes
namestringDisplay name
emailstringMust remain unique in the tenant
currencystringISO 4217 code

Deleting a customer#

A customer with issued invoices cannot be deleted. Void the invoices first, or archive the customer instead.