Overview /
Customers & loyalty /
Top up a balance
Top up a balance
post
https://api.flactrum.com/v1/customers/{customer}/top-up
Adds stored money to the account and writes a ledger entry. Moving money is a separate scope from editing the customer card.
| Required scope | customers.wallet |
| Success status | 201 |
| Returns | One CustomerTransaction object |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| customer * | path | string | ULID of the record. |
Request body
| Field | Type | Description |
|---|---|---|
| amount * | number | Must be greater than zero. |
| description | string|null | — |
Response fields
| Field | Type | Description |
|---|---|---|
| id | string | — |
| customer_id | string | — |
| ledger | string | — |
| type | string | — |
| amount | number | Signed: negative means it left the account. |
| balance_after | number | The balance after this entry, stored so the ledger can be audited without replaying it. |
| order_id | string|null | — |
| description | string|null | — |
| created_at | string | — |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X POST 'https://api.flactrum.com/v1/customers/01m43mxxtypmnjpb64f9am3nky/top-up' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"amount": 500,
"description": "Kasadan yükleme"
}'
HTTP 201 · application/json
{
"data": {
"id": "01m43mxxvc5mf5tkvaccty8yfx",
"customer_id": "01m43mxxtypmnjpb64f9am3nky",
"ledger": "balance",
"type": "topup",
"amount": 500,
"balance_after": 500,
"branch_id": null,
"order_id": null,
"description": "Kasadan yükleme",
"created_at": "2026-10-04T14:26:18+00:00"
}
}