StoredCreditAccount
A stored credit account contains all balance changes.
Retrieve all balance transactions for a specific gift card by its code.
Authorizations
Path parameters
idstringRequired
StoredCreditAccount identifier
Responses
200
StoredCreditAccount resource
Responseobject
A stored credit account contains all balance changes.
403
Forbidden
404
Not found
get
GET /gift_cards/{code}/balances HTTP/1.1
Host: api.glu.io
x-api-key: YOUR_API_KEY
Accept: */*
{}
Redeem a gift card by providing the amount and currency.
Authorizations
Path parameters
idstringRequired
StoredCreditAccount identifier
Body
objectOptional
Responses
201
StoredCreditAccount resource created
Responseobject
400
Invalid input
403
Forbidden
422
An error occurred
post
POST /gift_cards/{code}/redeem HTTP/1.1
Host: api.glu.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 2
{}
{}
Retrieve a stored credit account by its unique code. The response includes details such as the balance, status, and validity period.
Authorizations
Path parameters
idstringRequired
StoredCreditAccount identifier
Responses
200
StoredCreditAccount resource
Responseobject
A stored credit account contains all balance changes.
403
Forbidden
404
Not found
get
GET /stored_credit_accounts/{code} HTTP/1.1
Host: api.glu.io
x-api-key: YOUR_API_KEY
Accept: */*
{}