POST https://api.e-guma.ch/v1/depot_vouchers/{code}/activate.json?apikey={api-key}
Parameters
Attribute
Description
coderequired
The code of the voucher. Depot vouchers generated by e-guma have 12 characters. You can pass the code with (e.g. ABCD-ABCD-ABCD) or without (e.g. ABCDABCDABCD) dashes. Imported depot codes can have another length, for example a 4-digit code. Pass the code as it is printed or scanned. Dashes and spaces are ignored.
api-keyrequired
POST Data
Attribute
Description
amount_in_centsOnly when using free amount
The voucher amount when using a free amount. Vouchers with a predefined amount do not require a payload.
Return
code
The same voucher code as you provided as parameter
amount_in_cents
The amount the voucher was activated with. This is the amount the customer pays.
free_credit_amount_in_cents
The free credit granted on top of the paid amount, if the voucher type grants free credit when a voucher is issued. 0 if not. The balance of the activated voucher is amount_in_cents + free_credit_amount_in_cents.
Example
POST https://api.e-guma.ch/v1/depot_vouchers/CDHE2JNT5LS9/activate.json?apikey=510e32c594d84816a4af9df1