Printing tickets

Third-party apps can print receipts by sending a structured ticket payload. You only populate the ticket data; honei handles layout and routing to the available printer (on-device printer or ESC/POS)

Integration flow

Device & Routing Behavior

  • S1F2: prints on the integrated printer with optimized defaults.

  • S1E2: prints via ESC/POS. honei selects and drives the available printer automatically.

  • No extra configuration is required on the caller side; just send the payload.

Intent Action

To trigger a print, launch an intent with the following action and extra:

Parameters

Key
Type
Description

data

String

stringified JSON described below.

Ticket Payload (Schema)

Field
Type
Required
Notes

tableName

String

No

Table/area label shown on ticket.

ticketNumber

String

No

Your internal ticket/order number.

numberOfGuests

Number

No

For dine-in contexts.

date

String

Yes

Display date/time; if omitted, device time may be used.

subtotal

Number

Yes

Sum of item price before taxes.

total

Number

Yes

Subtotal + taxes (+ service/fees if any).

taxAmount

Number

Yes

Total tax amount (matches total - subtotal if only one tax).

taxRate

Number

No

Decimal form (10% = 0.10). Optional if multiple rates apply.

items

Array

Yes

See Items tab

Example

Receiving Result

When launching a PRINT_TICKET intent, honei Terminal returns a result code to your app:

  • RESULT_OK → the ticket was successfully printed.

  • RESULT_CANCELED → the ticket could not be printed. In this case, the intent will include an errorMessage in the data extras.

Last updated