StoredCreditAccount

A stored credit account contains all balance changes.

Retrieve the balance events for a gift card

get

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.

get
GET /gift_cards/{code}/balances HTTP/1.1
Host: api.glu.io
x-api-key: YOUR_API_KEY
Accept: */*
{}

Redeem a gift card

post

Redeem a gift card by providing the amount and currency.

Authorizations
Path parameters
idstringRequired

StoredCreditAccount identifier

Body
objectOptional
Responses
201

StoredCreditAccount resource created

Responseobject
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 code

get

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.

get
GET /stored_credit_accounts/{code} HTTP/1.1
Host: api.glu.io
x-api-key: YOUR_API_KEY
Accept: */*
{}