Balance

A balance represents a change to the overall balance of a gift card.

List all balances

get

Returns a list of balance events across all gift cards. The balance events are ordered by the date they happened, with the most recent first.

Authorizations
Query parameters
pageintegerOptional

The collection page number

Default: 1
createdAt[before]stringOptional
createdAt[strictly_before]stringOptional
createdAt[after]stringOptional
createdAt[strictly_after]stringOptional
updatedAt[before]stringOptional
updatedAt[strictly_before]stringOptional
updatedAt[after]stringOptional
updatedAt[strictly_after]stringOptional
happenedAt[before]stringOptional
happenedAt[strictly_before]stringOptional
happenedAt[after]stringOptional
happenedAt[strictly_after]stringOptional
expiresAt[before]stringOptional
expiresAt[strictly_before]stringOptional
expiresAt[after]stringOptional
expiresAt[strictly_after]stringOptional
typestring · enumOptionalPossible values:
amount[between]stringOptional
amount[gt]stringOptional
amount[gte]stringOptional
amount[lt]stringOptional
amount[lte]stringOptional
order[happenedAt]string · enumOptionalDefault: ascPossible values:
Responses
200

Balance collection

get
GET /balances HTTP/1.1
Host: api.glu.io
x-api-key: YOUR_API_KEY
Accept: */*
[
  {
    "id": 1,
    "createdAt": "2025-08-20T03:44:53.834Z",
    "updatedAt": "2025-08-20T03:44:53.834Z",
    "type": "Activation",
    "amount": 1,
    "location": {},
    "happenedAt": "2025-08-20T03:44:53.834Z",
    "expiresAt": null,
    "reversed": {
      "id": 1,
      "createdAt": "2025-08-20T03:44:53.834Z",
      "updatedAt": "2025-08-20T03:44:53.834Z",
      "type": "Activation",
      "amount": 1,
      "location": {},
      "happenedAt": "2025-08-20T03:44:53.834Z",
      "expiresAt": null,
      "reversed": {
        "id": 1,
        "createdAt": "2025-08-20T03:44:53.834Z",
        "updatedAt": "2025-08-20T03:44:53.834Z",
        "type": "Activation",
        "amount": 1,
        "location": {},
        "happenedAt": "2025-08-20T03:44:53.834Z",
        "expiresAt": null,
        "reversed": "[Circular Reference]",
        "mewsPayment": {},
        "attachedMember": "https://example.com/",
        "storedCreditAccount": "https://example.com/"
      },
      "mewsPayment": {},
      "attachedMember": "https://example.com/",
      "storedCreditAccount": "https://example.com/"
    },
    "mewsPayment": {},
    "attachedMember": "https://example.com/",
    "storedCreditAccount": "https://example.com/"
  }
]

Retrieve a balance event

get

Retrieves a Balance resource.

Authorizations
Path parameters
idstringRequired

Balance identifier

Responses
200

Balance resource

get
GET /balances/{id} HTTP/1.1
Host: api.glu.io
x-api-key: YOUR_API_KEY
Accept: */*
{
  "id": 1,
  "createdAt": "2025-08-20T03:44:53.834Z",
  "updatedAt": "2025-08-20T03:44:53.834Z",
  "type": "Activation",
  "amount": 1,
  "location": {},
  "happenedAt": "2025-08-20T03:44:53.834Z",
  "expiresAt": null,
  "reversed": {
    "id": 1,
    "createdAt": "2025-08-20T03:44:53.834Z",
    "updatedAt": "2025-08-20T03:44:53.834Z",
    "type": "Activation",
    "amount": 1,
    "location": {},
    "happenedAt": "2025-08-20T03:44:53.834Z",
    "expiresAt": null,
    "reversed": {
      "id": 1,
      "createdAt": "2025-08-20T03:44:53.834Z",
      "updatedAt": "2025-08-20T03:44:53.834Z",
      "type": "Activation",
      "amount": 1,
      "location": {},
      "happenedAt": "2025-08-20T03:44:53.834Z",
      "expiresAt": null,
      "reversed": "[Circular Reference]",
      "mewsPayment": {},
      "attachedMember": "https://example.com/",
      "storedCreditAccount": "https://example.com/"
    },
    "mewsPayment": {},
    "attachedMember": "https://example.com/",
    "storedCreditAccount": "https://example.com/"
  },
  "mewsPayment": {},
  "attachedMember": "https://example.com/",
  "storedCreditAccount": "https://example.com/"
}