Settle a table bill
post
https://api.flactrum.com/v1/pos/dining-sessions/{session}/settle
Collects payment for every round awaiting payment and closes the bill; the table becomes free.
| Required scope | tables.write orders.payment |
| Success status | 200 |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| session * | path | string | ULID of the record. |
Request body
| Field | Type | Description |
|---|---|---|
| payment_method_id | string|null | Single method; or send payments for a split. |
| payments | array | — |
| customer_id | string|null | Defaults to the customer linked to the bill. |
| balance_to_use | number | — |
| points_to_use | integer | — |
| discount | number | Spread across the rounds in proportion to their totals. |
| current_account_id | string|null | Required when a payment uses an on-account method. |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X POST 'https://api.flactrum.com/v1/pos/dining-sessions/01m43mzv2wc78bhpfxh7nrevvn/settle' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"payment_method_id": "01m43mzv4ahshsrnfm9ya6tgjs"
}'
HTTP 200 · application/json
{
"data": {
"id": "01m43mzv2wc78bhpfxh7nrevvn",
"status": "closed",
"version": 2,
"guest_count": 3,
"opened_at": "2026-10-04T14:27:20+00:00",
"closed_at": "2026-10-04T14:27:20+00:00",
"table": {
"id": "01m43mzv2bxgqxj3hhmh8j9fea",
"code": "S-1",
"name": "S-1",
"area": {
"id": "01m43mzv2admbdzkc0kbn1n6fb",
"name": "Salon"
}
},
"opener": null,
"customer_id": null,
"customer": null,
"pending_total": 0,
"orders": [
{
"id": "01m43mzv3jh0yh3kybknw65m2n",
"order_number": "NIS-261004-0001",
"branch_id": "01m43mzv20hyecq0kfg3eq3kxt",
"channel": "kasa",
"service_type": "table",
"table": {
"id": "01m43mzv2bxgqxj3hhmh8j9fea",
"code": "S-1",
"name": "S-1"
},
"status": "completed",
"display_number": "001",
"kitchen": {
"status": "new",
"preparing_at": null,
"ready_at": null,
"delivered_at": null
},
"customer_id": null,
"customer_name": null,
"payment_method_id": "01m43mzv4ahshsrnfm9ya6tgjs",
"totals": {
"total": 180,
"subtotal": 163.64,
"tax": 16.36,
"discount": 0,
"campaign_discount": 0,
"cost": 0,
"gross_profit": 163.64
},
"customer_payment": {
"paid_with_balance": 0,
"paid_with_points": 0,
"points_spent": 0,
"points_earned": 0
},
"items": [
{
"id": "01m43mzv3pkz7dnb7v6fv4z8a5",
"product_id": "01m43mzv2fxdk1qp1jrefy1tmc",
"campaign_id": null,
"quantity": 2,
"unit_price": 90,
"list_price": 90,
"campaign_discount": 0,
"total_price": 180,
"tax_rate": 10,
"tax_amount": 16.36,
"cancelled_at": null,
"cancel_reason": null,
"addons": []
}
],
"note": "Az şekerli",
"ordered_at": "2026-10-04T14:27:20+00:00",
"paid_at": "2026-10-04T14:27:20+00:00",
"created_at": "2026-10-04T14:27:20+00:00",
"updated_at": "2026-10-04T14:27:20+00:00"
}
]
}
}