Overview / Catalog / Collect payment for a kiosk order

Collect payment for a kiosk order

post https://api.flactrum.com/v1/orders/{order}/pay

A kiosk order is paid at the counter: it is created pending and already on its way to the kitchen. This marks it completed with the payment method used, which is when it counts towards revenue and day-end totals. 409 if the order is not awaiting payment.

Required scope orders.payment
Success status200
Returns One Order object

Parameters

NameInTypeDescription
order * path string ULID of the record.

Request body

FieldTypeDescription
payment_method_id * string —

Response fields

FieldTypeDescription
id string —
order_number string —
branch_id string —
channel string Where the sale came from.
status string Payment lifecycle. A kiosk order paid at the counter stays `pending` until POST /orders/{order}/pay.
display_number string Short daily number called out to the customer, e.g. 007.
kitchen object Kitchen stage: `status` is new, preparing, ready, delivered or null (never goes to the kitchen), with the time each stage was reached.
customer_id string|null —
customer_name string|null Free text typed at the kiosk so staff can call the order by name. Unrelated to customer_id, which is a registered loyalty customer.
payment_method_id string|null On a kiosk order this is the method the customer chose; the money is still collected at the counter, so the order stays `pending` until POST /orders/{order}/pay.
totals object total, subtotal, tax, discount, campaign_discount, cost, gross_profit.
customer_payment object How much was covered by balance and points, and what was earned.
items array Prices are frozen at sale time; later menu or campaign changes never alter a past receipt. A line refunded later is split off with `cancelled_at` set and no longer counts toward the totals.
payments array How the money was collected, one entry per method. A split bill (several methods) has several entries; balance and points are in customer_payment.
adjustments array Refunds and waste recorded after the sale, oldest first.
note string|null —
ordered_at string —

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X POST 'https://api.flactrum.com/v1/orders/01m43myjbkfh298jf23wzgv555/pay' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "payment_method_id": "01m43myjc0vb8eea1exhc5htks"
}'

HTTP 200 · application/json

{
    "data": {
        "id": "01m43myjbkfh298jf23wzgv555",
        "order_number": "NIS-261004-0001",
        "branch_id": "01m43myjakg6ydtj2zf6ajh3ch",
        "channel": "kiosk",
        "service_type": "counter",
        "table": null,
        "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": "01m43myjc0vb8eea1exhc5htks",
        "totals": {
            "total": 178,
            "subtotal": 161.82,
            "tax": 16.18,
            "discount": 0,
            "campaign_discount": 0,
            "cost": 0,
            "gross_profit": 161.82
        },
        "customer_payment": {
            "paid_with_balance": 0,
            "paid_with_points": 0,
            "points_spent": 0,
            "points_earned": 0
        },
        "items": [
            {
                "id": "01m43myjbperh5bhx7c9c95m4e",
                "product_id": "01m43myjb1sahethvshvpz8bw9",
                "campaign_id": null,
                "quantity": 2,
                "unit_price": 89,
                "list_price": 89,
                "campaign_discount": 0,
                "total_price": 178,
                "tax_rate": 10,
                "tax_amount": 16.18,
                "cancelled_at": null,
                "cancel_reason": null,
                "addons": []
            }
        ],
        "note": null,
        "ordered_at": "2026-10-04T14:26:39+00:00",
        "paid_at": "2026-10-04T14:26:39+00:00",
        "created_at": "2026-10-04T14:26:39+00:00",
        "updated_at": "2026-10-04T14:26:39+00:00"
    }
}