Skip to content

ideacreation/E-GUMA.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-GUMA.NET

E-GUMA.NET is a wrapper for the E-GUMA REST API.

Example

Balance

var apiKey = "510e32c594d84816a4af9df0";
var voucherCode = "JWCP-P7QV-25S4";
var result = new Eguma(apiKey).GetBalance(voucherCode);

Redeem

var apiKey = "510e32c594d84816a4af9df0";
var voucherCode = "JWCP-P7QV-25S4";
var result = new Eguma(apiKey).Redeem(voucherCode, 2000); // the amount is in cents!

Cancel Redemption

var apiKey = "510e32c594d84816a4af9df0";
var voucherCode = "JWCP-P7QV-25S4";
var result = new Eguma(apiKey).CancelRedemption(voucherCode, 2000); // the amount is in cents!

Activate a Depot Voucher

var apiKey = "510e32c594d84816a4af9df0";
var voucherCode = "JWCP-P7QV-25S4";
var result = new Eguma(apiKey).GetDepotVoucherActivateStatus(voucherCode);
if (result.CanBeActivated)
{
  // add the voucher as order line
}
else
{
  // show result.Message
}

.....

// when completing the order
foreach (orderLine in orderLines)
{
    if (orderLine.IsVoucher)
        new Eguma(apiKey).ActivateDepotVoucher(orderLine.VoucherCode);
}

More info in our Integration Guide

Documentation

Official documentation

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages