The e-guma Developer Hub

Welcome to the e-guma developer hub. You'll find comprehensive guides and documentation to help you start working with e-guma as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Deactivate Status

GET https://api.e-guma.ch/v1/depot_vouchers/{code}/deactivate_status.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

Return

code

The same voucher code as you provided as parameter

can_be_deactivated

If the voucher is sold and can be deactivated it is equal true.

amount_in_cents

The value of the voucher

message

If the voucher can not be deactivated, the message contains the reason. The message is returned in the client's default language.

Example

GET https://api.e-guma.ch/v1/depot_vouchers/CDHE2JNT5LS9/deactivate_status.json?apikey=510e32c594d84816a4af9df1
{
  "code":"CDHE2JNT5LS9",
  "can_be_deactivated":true,
  "amount_in_cents":5000,
  "message":""
}

Updated about a year ago

Deactivate Status


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.