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
x-api-keystringRequired

Value for the x-api-key header parameter.

Path parameters
codestringRequired

StoredCreditAccount identifier

Responses
200

StoredCreditAccount resource

get
/gift_cards/{code}/balances
GET /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

post

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
post
/gift_cards/{code}/redeem
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
x-api-keystringRequired

Value for the x-api-key header parameter.

Path parameters
codestringRequired

StoredCreditAccount identifier

Responses
200

StoredCreditAccount resource

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