Skip to main content
Reserves a voucher for this terminal, marks it printed and debits the shop balance. Print the returned data right away, then call Confirm a printed voucher.
Do not retry printVoucher automatically after a timeout: each successful call sells a new voucher. Check the voucher history first, then use reprint if the voucher was already generated.

Headers

string
required

Body

string
required
printVoucher
string
required
tt, orange or ooredoo.
number
required
1 or 5 (TND).

Response

integer
Voucher id. Keep it for reprint and confirm reprint.
string
Recharge code to print, grouped by 5 digits.
string
Serial number. Keep it for confirm and duplicate.
string
Operator of the voucher.
number
Face value in TND.
string
Expiry date of the voucher.
string
Sale date and time.
string
Ticket layout for this terminal.
Shop logo (black and white) to print on the ticket.
string | null
Shop barcode for this operator and value, or null.
Text to print at the bottom of the ticket.
URL of the operator/value image.

Errors