Skip to main content
The /customers resource lets you manage the individuals and organizations that purchase your software. You can create new customer records, look up existing ones by ID, update contact details, and remove customers that are no longer needed. All requests must be authenticated with a JWT Bearer token or HTTP Basic credentials.

Required Permissions


List All Customers

string
required
Bearer <token> or Basic credentials.
Retrieve an array of all customer records in your Avalex account.
Response — 200 OK

Create a Customer

string
required
Bearer <token> or Basic credentials.
string
required
Full name or company name of the customer.
string
required
Primary contact email address.
object
Optional social media handles.
string
Internal note visible only to staff.
Creates a new customer record and returns it with a server-generated ID.
Response — 201 Created

Get a Customer by ID

string
required
The unique customer ID (e.g. cust_123).
Returns a single customer record. Responds with 404 Not Found if no customer with that ID exists.
Response — 200 OK

Update a Customer

string
required
The unique customer ID.
Performs a full replacement of the customer record. You must supply all fields — omitted fields will be cleared. Returns 404 Not Found if the customer does not exist.
This is a full replacement (PUT). If you omit socials or note, those fields will be unset on the stored record. Include all existing values you want to retain.
Response — 200 OK

Delete a Customer

string
required
The unique customer ID.
Permanently removes the customer record. Returns 204 No Content on success and 404 Not Found if the ID does not exist.
Response — 204 No Content

Customer Schema

The following fields are returned on every Customer object.

Full Schema Example