Activate
POST https://api.e-guma.ch/v1/depot_vouchers/{code}/activate.json?apikey={api-key}
Parameters
coderequired | The alphanumeric code of the voucher. The code has 12 characters. You can pass the code with (e.g. ABCD-ABCD-ABCD) or without (e.g. ABCDABCDABCD) dashes. |
api-keyrequired |
POST Data
amount_in_centsOnly when using free amount | The amount for the voucher |
Return
code | The same voucher code as you provided as parameter |
amount_in_cents | The amount the voucher was activated with |
Example
POST https://api.e-guma.ch/v1/depot_vouchers/CDHE2JNT5LS9/activate.json?apikey=510e32c594d84816a4af9df1
{
"code":"CDHE2JNT5LS9",
"amount_in_cents":40000
}
Updated 3 days ago