POST https://api.e-guma.ch/v1/vouchers/{code}/redeem.json?apikey={api-key}
Parameters
Parameter
Description
coderequired
The code of the voucher. Vouchers issued by e-guma have 12 characters. You can pass the code with (e.g. ABCD-ABCD-ABCD) or without (e.g. ABCDABCDABCD) dashes. Imported vouchers from a previous system can have another length and format, for example a 16-digit card number. Pass the code as it is printed or scanned. Dashes and spaces are ignored. Please use url_encode for the code as it might contain special characters.
api-keyrequired
POST Data
Parameter
Description
amount_in_centsrequired
The voucher can be redeemed in part or whole.
reference_numberoptional
An optional alphanumeric reference number can be transmitted. Maximum 1024 characters.
Return
code
The same voucher code as you provided as parameter