try out ↗

← API Index · ↑ parent


/api/admin/voucher

Methods

Endpoint Description
/api/admin/voucher/create2 Creates individual voucher codes for a voucher item and returns them. The lifetime of the codes is taken from validuntil, else from days, else from the item (items.voucherdays, 0 = unlimited). If customers are given, the codes are bound to them: amount codes per customer; a customer who still has unused codes for the item keeps those, only their lifetime is renewed, and they are returned instead. Requires the permission to create vouchers.