StoredCreditAccount
A stored credit account contains all balance changes.
Retrieve all balance transactions for a specific gift card by its code.
Authorizations
x-api-keystringRequired
Value for the x-api-key header parameter.
Path parameters
codestringRequired
StoredCreditAccount identifier
Responses
200
StoredCreditAccount resource
403
Forbidden
404
Not found
get
/gift_cards/{code}/balancesGET /gift_cards/{code}/balances HTTP/1.1
Host: api.glu.io
x-api-key: YOUR_API_KEY
Accept: */*
{
"balances": [
{
"id": 1,
"createdAt": "2025-11-21T11:12:24.389Z",
"updatedAt": "2025-11-21T11:12:24.389Z",
"type": "Activation",
"amount": 1,
"location": {},
"happenedAt": "2025-11-21T11:12:24.389Z",
"expiresAt": null,
"reversed": {
"id": 1,
"createdAt": "2025-11-21T11:12:24.389Z",
"updatedAt": "2025-11-21T11:12:24.389Z",
"type": "Activation",
"amount": 1,
"location": {},
"happenedAt": "2025-11-21T11:12:24.389Z",
"expiresAt": null,
"reversed": "[Circular Reference]",
"mewsPayment": {},
"attachedMember": "https://example.com/",
"storedCreditAccount": {
"balances": "[Circular Reference]"
}
},
"mewsPayment": {},
"attachedMember": "https://example.com/",
"storedCreditAccount": {
"balances": "[Circular Reference]"
}
}
]
}Redeem a gift card by providing the amount and currency.
Authorizations
x-api-keystringRequired
Value for the x-api-key header parameter.
Path parameters
codestringRequired
StoredCreditAccount identifier
Body
objectOptional
Responses
201
StoredCreditAccount resource created
400
Invalid input
403
Forbidden
422
An error occurred
post
/gift_cards/{code}/redeemPOST /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
x-api-keystringRequired
Value for the x-api-key header parameter.
Path parameters
codestringRequired
StoredCreditAccount identifier
Responses
200
StoredCreditAccount resource
403
Forbidden
404
Not found
get
/stored_credit_accounts/{code}GET /stored_credit_accounts/{code} HTTP/1.1
Host: api.glu.io
x-api-key: YOUR_API_KEY
Accept: */*
{
"id": 1,
"createdAt": "2025-11-21T11:12:24.389Z",
"updatedAt": "2025-11-21T11:12:24.389Z",
"contact": "https://example.com/",
"giftCard": "https://example.com/",
"balances": [
"https://example.com/"
],
"attachedMember": "https://example.com/",
"type": "Gift Card",
"currencyCode": "text"
}Last updated