List customers with pagination
client.express.list(ExpressListParams { cursor, limit } query?, RequestOptionsoptions?): CursorExpressCustomers<ExpressListResponse { createdAt, expressCustomerId, expressCustomerName, 6 more } >
GET/v1/express
Retrieves a paginated list of customers with optional filtering by name. Returns up to 100 customers per request.
Parameters
Returns
List customers with pagination
import Avara from 'avara';
const client = new Avara({
apiKey: process.env['AVARA_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const expressListResponse of client.express.list()) {
console.log(expressListResponse.createdAt);
}{
"expressCustomers": [
{
"createdAt": "2024-01-15T09:00:00Z",
"expressCustomerId": "cus_1234567890abcdef1234567890abcdef",
"expressCustomerName": "City Medical Center - Radiology Department",
"isActive": true,
"updatedAt": "2024-03-15T14:20:00Z",
"userCount": 15,
"createdByApiKeyId": "550e8400-e29b-41d4-a716-446655440000",
"createdByUserId": "usr_1234567890abcdef1234567890abcdef",
"metadata": {
"department": "radiology",
"region": "northeast"
}
}
],
"hasMore": true,
"cursor": "cursor"
}Returns Examples
{
"expressCustomers": [
{
"createdAt": "2024-01-15T09:00:00Z",
"expressCustomerId": "cus_1234567890abcdef1234567890abcdef",
"expressCustomerName": "City Medical Center - Radiology Department",
"isActive": true,
"updatedAt": "2024-03-15T14:20:00Z",
"userCount": 15,
"createdByApiKeyId": "550e8400-e29b-41d4-a716-446655440000",
"createdByUserId": "usr_1234567890abcdef1234567890abcdef",
"metadata": {
"department": "radiology",
"region": "northeast"
}
}
],
"hasMore": true,
"cursor": "cursor"
}