FlexyAPI documentation

API documentation

Step 8 – Restaurant order slips (8.6)

Each table order gets an 8.6 slip, which must be settled or cancelled within 24 hours; otherwise transmission stops.

In food service every table order gets a Catering Order Slip (8.6). Each slip must be closed within 24 hours of its issue. You close it in one of two ways:

  • with the receipt or invoice that settles it, or
  • by cancelling it.

If a slip stays open for more than 24 hours, Flexy has to stop transmitting all documents of that VAT number until the slip is closed (A.1112/2025 Article 9).

Example:

  1. 20:00, table 7: you issue slip 8.6 Δ-301 and AADE gives it ΜΑΡΚ 400001958737111.
  2. 20:45, the customer pays: you issue receipt 11.1 Β-88 with "multiple_connected_marks": [400001958737111]. The slip is closed.
  3. If Β-88 had not been issued by 20:00 the next day, every new document of that VAT number would be refused. Transmission resumes as soon as you issue the receipt or cancel the slip.

1. Issue the slip

An 8.6 is issued like any other document (see the 8.6 example). With provider: "flexy", table_number is required: it is sent to AADE as the table number (tableAA). Keep the mydata_mark from the response: you will need it to close the slip.

2. Settle it with the receipt or invoice

In the document that settles one or more slips, list their ΜΑΡΚ in multiple_connected_marks:

{
  "document": {
    "provider": "flexy",
    "provider_details": { "document_type": "11.1" },
    "multiple_connected_marks": [400001958737111, 400001958737112]
    // … the rest of the receipt, as in the 11.1 example
  }
}

The document types that settle slips are 1.1, 5.2, 11.1, 11.2 and 11.4 (AADE does not accept the field on 1.6, 2.4 and 5.1). Each ΜΑΡΚ must be a slip of the same issuer that was issued through Flexy with the same API key; a slip issued with another API key is answered order_slip_not_found. A split bill cites the same slip from each of its receipts: the first one closes the slip, and AADE receives the correlation from all of them. A cancelled slip cannot be cited.

3. Or cancel it

To cancel slips, issue an 8.6 with total_cancel_delivery_orders: true that lists them in multiple_connected_marks. It must have exactly one item with zero values and VAT category 8:

{
  "document": {
    "provider": "flexy",
    "provider_details": { "document_type": "8.6", "payment_method_type": "5" },
    "table_number": "7",
    "total_cancel_delivery_orders": true,
    "multiple_connected_marks": [400001958737111],
    "items": [
      {
        "title": "Slip cancellation",
        "quantity": "1.00",
        "unit_measure": "ΤΕΜ",
        "unit_value": "0.00",
        "unit_total": "0.00",
        "provider_details": { "classification_category": "category1_95", "vat_classification_category": "8" }
        // … taxes with value "0.00"
      }
    ]
    // … totals and tax_breakdown all "0.00"
  }
}

Which slips are open

curl "https://provider-staging.flexy.gr/api/v1/documents/order-slips/?issuer_vat_number=<VAT NUMBER>" \
  -H "Authorization: Bearer <token>"
{
  "order_slips": {
    "issuer_vat_number": "<VAT NUMBER>",
    "transmission_suspended": true,
    "suspended_at": "2026-10-15T17:15:00Z",
    "open_slips": [
      {
        "document_id": "…",
        "mark": 400001958737111,
        "series": "Δ",
        "aa": "301",
        "table_number": "7",
        "issued_at": "2026-10-14T17:00:00Z",
        "deadline": "2026-10-15T17:00:00Z",
        "overdue": true,
        "hours_open": 25
      }
    ]
  }
}
FieldMeaning
transmission_suspendedtrue while transmission is suspended for this VAT number.
open_slipsThe slips not yet settled or cancelled, oldest first. deadline is 24 hours after issue; overdue means it has passed.
open_slips[].hours_openWhole hours the slip has been open since its issue, as the 24-hour rule counts them. Use it to warn the user before the 24 hours run out.
open_slips[].table_numberThe table the slip was issued for (the table_number you sent); empty when it had none. Use it to group open slips by table.

Something is wrong

HTTPcodeCauseWhat to do
403transmission_suspendedA slip of this VAT number has been open for more than 24 hours. detail lists the open slips. If detail says a Flexy operator suspended it, slips have nothing to do with it.Issue the document that settles them, or cancel them. Only those documents are accepted until then. For an operator's suspension, contact Flexy support.
400order_slip_not_foundA ΜΑΡΚ in multiple_connected_marks is not an 8.6 of this issuer issued through Flexy.Check the ΜΑΡΚ.
400order_slip_closedThe slip is cancelled, or a cancellation lists a slip already settled.Remove it from the list.
400connected_marks_not_allowedThis document type cannot settle slips.Use one of the types above, or an 8.6 cancellation.
400total_cancel_invalidA cancellation that is not an 8.6, lists no ΜΑΡΚ, or does not have exactly one zero line with VAT category 8.Fix what detail mentions.
400required (attr: table_number)An 8.6 without a table number.Add table_number.

Slips issued with provider oxygen or mydata are not affected by these checks.