a simple gift card api

LOGIN HERE

How to use

All endpoints require an API Key which can be found inside your account. You will want to make sure to always submit requests with the `Authorization` header. Example

var apikey = 'YOUR API KEY';
xhr.setRequestHeader('Authorization', 'Bearer ' + apikey);

Here are the endpoints to interact with the gift card API.


/api/cards/balance GET

INPUTS
`sku` The sku of the card you are requesting for a balance. You can comma seperate skus to get up to 100 cards at a time.


/api/cards/charge POST

INPUTS
`sku` The sku of the card you are requesting to charge.
`amount` The amount you wish to charge against the balance of the card.


/api/transactions/refund POST

INPUTS
`id` The id of the transaction you are requesting to refund.
`amount` The amount you wish to refund back to the balance of the transaction.