Gift Server
https://api.chargeitpro.com/GiftCard.json
Name: Content-Type
Value: application/json
Method: POST
Transaction types
GiftIssueNewAccount | issues new gift card for amount specified and returns new gift card number to be emailed by shopping cart |
GiftRedeem | used when paying by gift card. Reduces amount on gift card by amount specified |
GiftBalance | used to check the current balance on a gift card |
GiftVoid | cancels previous gift card transaction using previous ApprovalNumberResult in UniqueTransRef |
GiftAddValue | used to put money back onto a gift card |
GiftAddValue
{"IsTestMode":true,"MerchantName":"62127538111111","MerchantKey":"12345","ClientIP":"123.456.789.012","AmountTotal":"24.95","TransactionReference":"YourInvNo.123","TransactionType":"GiftAddValue","AccountData":"900006010010138","Cashier":"WebSite","UniqueTransRef":null,"Notes":"Your Software v1.0"}
{"Success":true,"Status":"OK","StatusCode":200,"Result":{"ApprovalNumberResult":"62492","DateAdded":"\/Date(1392658519000-0000)\/","TransactionType":"GiftAddValue","MaskedAccount":"xxxxxxxxxxx0138","TransactionReference":"","Cashier":"WebSite","RequestedAmountTotal":0,"AmountTotal":24.95,"AmountBalance":6877.36,"Notes":"Your Software v1.0","AccountCardType":"Gift"}}
GiftRedeem
{"IsTestMode":true,"MerchantName":"62127538111111","MerchantKey":"12345","ClientIP":"123.456.789.012","AmountTotal":"65.37","TransactionReference":"YourInvNo.123","TransactionType":"GiftRedeem","AccountData":"900006010010138","Cashier":"WebSite","UniqueTransRef":null,"Notes":"Your Software v1.0"}
{"Success":true,"Status":"OK","StatusCode":200,"Result":{"ApprovalNumberResult":"62495","DateAdded":"\/Date(1392659489000-0000)\/","TransactionType":"GiftRedeem","MaskedAccount":"xxxxxxxxxxx0138","TransactionReference":"","Cashier":"WebSite","RequestedAmountTotal":0,"AmountTotal":-65.37,"AmountBalance":6787.04,"Notes":"Your Software v1.0","AccountCardType":"Gift"}}
GiftVoid
{"IsTestMode":true,"MerchantName":"62127538111111","MerchantKey":"12345","ClientIP":"123.456.789.012","AmountTotal":"0","TransactionReference":"YourInvNo.123","TransactionType":"GiftVoid","AccountData":null,"Cashier":"WebSite","UniqueTransRef":"62493","Notes":"Your Software v1.0"}
{"Success":true,"Status":"OK","StatusCode":200,"Result":{"ApprovalNumberResult":"62494","DateAdded":"\/Date(1392659204000-0000)\/","TransactionType":"Adjust Down","MaskedAccount":"xxxxxxxxxxx0138","TransactionReference":"","Cashier":"WebSite","RequestedAmountTotal":0,"AmountTotal":-24.95,"AmountBalance":6852.41,"Notes":"VoidAddValue 62492 Your Software v1.0","AccountCardType":"Gift"}}
GiftBalance
{"IsTestMode":true,"MerchantName":"62127538111111","MerchantKey":"12345","ClientIP":"123.456.789.012","AmountTotal":"0","TransactionReference":"YourInvNo.123","TransactionType":"GiftBalance","AccountData":"900006010010138","Cashier":"WebSite","UniqueTransRef":null,"Notes":"Your Software v1.0"}
{"Success":true,"Status":"OK","StatusCode":200,"Result":{"ApprovalNumberResult":"62493","DateAdded":"\/Date(1392658843000-0000)\/","TransactionType":"GiftBalance","MaskedAccount":"xxxxxxxxxxx0138","TransactionReference":"","Cashier":"WebSite","RequestedAmountTotal":0,"AmountTotal":0,"AmountBalance":6877.36,"Notes":"Your Software v1.0","AccountCardType":"Gift"}}
GiftIssueNewAccount
NOTE
This test account will repeatedly issue the same card number while testing.
{"IsTestMode":true,"MerchantName":"62127538111111","MerchantKey":"12345","ClientIP":"123.456.789.012","AmountTotal":"50.00","TransactionReference":"YourInvNo.123","TransactionType":"GiftIssueNewAccount","Cashier":"WebSite","UniqueTransRef":null,"Notes":"Your Software v1.0"}
{"Success":true,"Status":"OK","StatusCode":200,"Result":{"ApprovalNumberResult":"62490","DateAdded":"\/Date(1392657794000-0000)\/","TransactionType":"GiftIssueNewAccount","MaskedAccount":"xxxxxxxxxxx0138","TransactionReference":"","Cashier":"WebSite","RequestedAmountTotal":0,"AmountTotal":50,"AmountBalance":6802.41,"Notes":"Your Software v1.0","AccountCardType":"Gift","NewAccount":"900006010010138"}}