Overview / Catalog / Cancel an item already sent to a table

Cancel an item already sent to a table

post https://api.flactrum.com/v1/pos/order-items/{item}/cancel

Only items on an open table bill. reason is required; restock (default true) returns the consumed stock.

Required scope tables.write
Success status200
Returns One Order object

Parameters

NameInTypeDescription
item * path string ULID of the record.

Request body

FieldTypeDescription
reason * string —
restock boolean Default true: return the consumed stock.

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/order-items/01m43mzvd8n0amn9awkgwfctfk/cancel' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "reason": "Yanlış ürün",
    "restock": false
}'

HTTP 200 · application/json

{
    "data": {
        "id": "01m43mzvd54h14jz89vfsncbkj",
        "order_number": "NIS-261004-0001",
        "branch_id": "01m43mzvbg7w3ywvakesk2pxh9",
        "channel": "kasa",
        "service_type": "table",
        "table": {
            "id": "01m43mzvbw92ph1hzvcg5nsvpy",
            "code": "S-2",
            "name": "S-2"
        },
        "status": "cancelled",
        "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": 0,
            "subtotal": 0,
            "tax": 0,
            "discount": 0,
            "campaign_discount": 0,
            "cost": 0,
            "gross_profit": 0
        },
        "customer_payment": {
            "paid_with_balance": 0,
            "paid_with_points": 0,
            "points_spent": 0,
            "points_earned": 0
        },
        "items": [
            {
                "id": "01m43mzvd8n0amn9awkgwfctfk",
                "product_id": "01m43mzvc06xedz2qexd5jq6ab",
                "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": "2026-10-04T14:27:21+00:00",
                "cancel_reason": "Yanlış ürün",
                "addons": []
            }
        ],
        "note": "Az şekerli",
        "ordered_at": "2026-10-04T14:27:21+00:00",
        "paid_at": null,
        "created_at": "2026-10-04T14:27:21+00:00",
        "updated_at": "2026-10-04T14:27:21+00:00"
    }
}