Developers - REST API v1

Activate

Use Activate Status before calling this method.

URL

POST https://api.e-guma.ch/v1/depot_vouchers/{code}/activate.json?apikey={api-key}

Parameters

code required 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-key required

POST Data Only when using free amount

amount_in_cents The amount for the voucher

Returns

code The same voucher code as you provided as parameter
amount_in_cents The value of the activated voucher

Example

Request (POST)
https://api.e-guma.ch/v1/depot_vouchers/CDHE2JNT5LS9/activate.json?apikey=510e32c594d84816a4af9df1
Response
{
  "code":"CDHE2JNT5LS9",
  "amount_in_cents":5000
}

Kontakt

Idea Creation GmbH
Walchestrasse 15
8006 Zürich
Tel. +41 44 500 54 00
info@e-guma.ch

Support
support@e-guma.ch
TeamViewer herunterladen

Social Media