Gift Cards Maintenance
Getting balance and redemption
Getting Gift Card Actual Balance
To retrieve a gift-card balance use the following method
Parameters
giftCard
- gift card object which contained all information needed to operate
You can get gift card object from the source URL by invoking method gitfCardFromCode
Returns
Promise
returns gift card balance in pool dimension
Example
Gift Card Redemption
You can send money from the gift-card to the your account with the following method
Parameters
giftCard
- gift card object which contained all information needed to operate
You can get gift card object from the source URL by invoking method gitfCardFromCode
preferredProvingMode
- you can optionally set other ProverMode for redemption process. E.g. you can use delegated prover to redemption process speed up (if configured) while your account using local prover only
Returns
Promise
returns job ID associated with redemption transaction
Example
Last updated