Overview /
Customers & loyalty /
List customers
List customers
get
https://api.flactrum.com/v1/customers
| Required scope | customers.read |
| Panel screen | Customers & loyalty → Customers |
| Success status | 200 |
| Returns | A paginated list of Customer objects |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| phone | query | string | Exact match — the usual way to find an account at the till. |
| query | string | — | |
| search | query | string | Partial match on name, phone or email. |
| with_balance | query | boolean | Only accounts still holding money. |
| page | query | integer | Page number. |
| per_page | query | integer | Page size. Values above the maximum are rejected rather than silently clamped. |
| active | query | boolean | Filter by active flag. Omit to get both. |
| updated_since | query | string | Only records changed at or after this instant. Use it for incremental sync. |
| sort | query | string | Column to sort by. Each endpoint lists what it accepts. |
| direction | query | string | Sort direction. |
Response fields
| Field | Type | Description |
|---|---|---|
| id | string | — |
| name | string | — |
| string|null | — | |
| phone | string|null | — |
| balance | number | Stored money. Read-only here; it changes only through the wallet endpoints or a sale. |
| points | integer | Loyalty points. Read-only here. |
| is_active | boolean | — |
| last_order_at | string|null | — |
| order_count | integer | — |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X GET 'https://api.flactrum.com/v1/customers' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 200 · application/json
{
"data": [
{
"id": "01m43mxxbeycm9pkvz2w565f2y",
"name": "Elif Aydın",
"email": "elif@ornek.com",
"phone": "+905550000001",
"balance": 0,
"points": 0,
"is_active": true,
"note": null,
"email_verified_at": null,
"last_order_at": null,
"order_count": 0,
"created_at": "2026-10-04T14:26:17+00:00",
"updated_at": "2026-10-04T14:26:17+00:00"
}
],
"meta": {
"total": 1,
"page": 1,
"per_page": 25,
"last_page": 1
}
}