curl -H "api-key: 6f1c2a9e-4b7d-4e0a-9c55-2d8f3b1a7e10" \
-H "Content-Type: application/json" \
-d '{"action":"duplicateVoucher","serieNumber":"0012345678"}' \
https://apitest.tunimobile.com/v1/voucher/do_action
{
"status": "success",
"code": 200,
"message": "OK",
"data": {
"id": 987654,
"cartNumber": "12345 67890 12345",
"serieNumber": "0012345678",
"operator": "orange",
"value": 5,
"expireAt": "2027-06-30 00:00:00",
"printedAt": "2026-10-28 10:15:03",
"size": "standard",
"logo": "https://api.tunimobile.com/images/avatars_bw/123.png",
"barcode": "6191234567890",
"footer": "Powered By TuniMobile.com",
"operatorLogo": "https://api.tunimobile.com/images/operator/orange_5.jpg",
"duplicateCount": 1
}
}
Vouchers
Print a duplicate of a confirmed voucher
Print a copy of a confirmed voucher. No new debit.
curl -H "api-key: 6f1c2a9e-4b7d-4e0a-9c55-2d8f3b1a7e10" \
-H "Content-Type: application/json" \
-d '{"action":"duplicateVoucher","serieNumber":"0012345678"}' \
https://apitest.tunimobile.com/v1/voucher/do_action
{
"status": "success",
"code": 200,
"message": "OK",
"data": {
"id": 987654,
"cartNumber": "12345 67890 12345",
"serieNumber": "0012345678",
"operator": "orange",
"value": 5,
"expireAt": "2027-06-30 00:00:00",
"printedAt": "2026-10-28 10:15:03",
"size": "standard",
"logo": "https://api.tunimobile.com/images/avatars_bw/123.png",
"barcode": "6191234567890",
"footer": "Powered By TuniMobile.com",
"operatorLogo": "https://api.tunimobile.com/images/operator/orange_5.jpg",
"duplicateCount": 1
}
}
Prints a copy of a voucher that was already confirmed, for example when the customer lost the ticket. No new debit. Each call increases the voucher’s duplicate counter.
Print a mention such as “DUPLICATA” on the ticket. After printing, call Confirm a reprint or duplicate.
Authentication
Either theapi-key of the terminal that printed the voucher, or a login as the owner of that terminal’s shop. See Who can call what.
string
API key of the terminal that printed the voucher. Not needed if you are logged in as the shop owner.
Body
string
required
duplicateVoucherstring
required
Serial number of the voucher.
Response
Same fields as Generate a voucher, plus:integer
Number of duplicates printed so far for this voucher.
Errors
| HTTP | error.details | Meaning |
|---|---|---|
403 | access_denied | The caller is neither the terminal that printed the voucher nor logged in as the owner of its shop. Also returned for a voucher that was never printed. |
404 | voucher_not_found | Unknown or missing serial number |
curl -H "api-key: 6f1c2a9e-4b7d-4e0a-9c55-2d8f3b1a7e10" \
-H "Content-Type: application/json" \
-d '{"action":"duplicateVoucher","serieNumber":"0012345678"}' \
https://apitest.tunimobile.com/v1/voucher/do_action
{
"status": "success",
"code": 200,
"message": "OK",
"data": {
"id": 987654,
"cartNumber": "12345 67890 12345",
"serieNumber": "0012345678",
"operator": "orange",
"value": 5,
"expireAt": "2027-06-30 00:00:00",
"printedAt": "2026-10-28 10:15:03",
"size": "standard",
"logo": "https://api.tunimobile.com/images/avatars_bw/123.png",
"barcode": "6191234567890",
"footer": "Powered By TuniMobile.com",
"operatorLogo": "https://api.tunimobile.com/images/operator/orange_5.jpg",
"duplicateCount": 1
}
}