Overview / Catalog / Send a round to the table

Send a round to the table

post https://api.flactrum.com/v1/pos/dining-sessions/{session}/orders

Creates an order on the bill: it goes to the kitchen and waits for payment until the bill is settled. Send an Idempotency-Key header: a retried request with the same key returns the first order instead of creating a second one.

Required scope tables.write
Success status201
Returns One Order object

Parameters

NameInTypeDescription
session * path string ULID of the record.

Request body

FieldTypeDescription
lines * array —
note string|null —
customer_name string|null —

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/pos/dining-sessions/01m43mzv2wc78bhpfxh7nrevvn/orders' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "lines": [
        {
            "product_id": "01m43mzv2fxdk1qp1jrefy1tmc",
            "quantity": 2,
            "addon_ids": []
        }
    ],
    "note": "Az şekerli"
}'

HTTP 201 · application/json

{
    "data": {
        "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": "pending",
        "display_number": "001",
        "kitchen": {
            "status": "new",
            "preparing_at": null,
            "ready_at": null,
            "delivered_at": null
        },
        "customer_id": null,
        "customer_name": null,
        "payment_method_id": null,
        "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": null,
            "paid_with_points": null,
            "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": null,
        "created_at": "2026-10-04T14:27:20+00:00",
        "updated_at": "2026-10-04T14:27:20+00:00"
    }
}