Overview / Customers & loyalty / Update a customer

Update a customer

patch https://api.flactrum.com/v1/customers/{customer}

Balance and points are not writable here; use the wallet endpoints so every change leaves a ledger entry.

Required scope customers.write
Success status200
Returns One Customer object

Parameters

NameInTypeDescription
customer * path string ULID of the record.

Request body

FieldTypeDescription
name * string —
phone string|null Unique within the brand — two accounts for one person would split their balance.
email string|null Unique within the brand.
password string|null For mobile-app login. Stored hashed; never returned.
is_active boolean —
note string|null —

Response fields

FieldTypeDescription
id string —
name string —
email 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 PATCH 'https://api.flactrum.com/v1/customers/01m43mxxbeycm9pkvz2w565f2y' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "note": "VIP"
}'

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": "VIP",
        "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"
    }
}