Balance
A balance represents a change to the overall balance of a gift card.
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
x-api-keystringRequired
Value for the x-api-key header parameter.
Query parameters
pageintegerOptionalDefault:
The collection page number
1createdAt[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
403
Forbidden
get
/balancesGET /balances HTTP/1.1
Host: api.glu.io
x-api-key: YOUR_API_KEY
Accept: */*
[
{
"id": 1,
"createdAt": "2025-11-21T23:21:53.080Z",
"updatedAt": "2025-11-21T23:21:53.080Z",
"type": "Activation",
"amount": 1,
"location": {},
"happenedAt": "2025-11-21T23:21:53.080Z",
"expiresAt": null,
"reversed": {
"id": 1,
"createdAt": "2025-11-21T23:21:53.080Z",
"updatedAt": "2025-11-21T23:21:53.080Z",
"type": "Activation",
"amount": 1,
"location": {},
"happenedAt": "2025-11-21T23:21:53.080Z",
"expiresAt": null,
"reversed": {
"id": 1,
"createdAt": "2025-11-21T23:21:53.080Z",
"updatedAt": "2025-11-21T23:21:53.080Z",
"type": "Activation",
"amount": 1,
"location": {},
"happenedAt": "2025-11-21T23:21:53.080Z",
"expiresAt": null,
"reversed": "[Circular Reference]",
"mewsPayment": {},
"attachedMember": "https://example.com/",
"storedCreditAccount": "[Circular Reference]"
},
"mewsPayment": {},
"attachedMember": "https://example.com/",
"storedCreditAccount": {
"balances": [
"[Circular Reference]"
]
}
},
"mewsPayment": {},
"attachedMember": "https://example.com/",
"storedCreditAccount": {
"balances": [
"[Circular Reference]"
]
}
}
]Retrieves a Balance resource.
Authorizations
x-api-keystringRequired
Value for the x-api-key header parameter.
Path parameters
idstringRequired
Balance identifier
Responses
200
Balance resource
403
Forbidden
404
Not found
get
/balances/{id}GET /balances/{id} HTTP/1.1
Host: api.glu.io
x-api-key: YOUR_API_KEY
Accept: */*
{
"id": 1,
"createdAt": "2025-11-21T23:21:53.080Z",
"updatedAt": "2025-11-21T23:21:53.080Z",
"type": "Activation",
"amount": 1,
"location": {},
"happenedAt": "2025-11-21T23:21:53.080Z",
"expiresAt": null,
"reversed": {
"id": 1,
"createdAt": "2025-11-21T23:21:53.080Z",
"updatedAt": "2025-11-21T23:21:53.080Z",
"type": "Activation",
"amount": 1,
"location": {},
"happenedAt": "2025-11-21T23:21:53.080Z",
"expiresAt": null,
"reversed": {
"id": 1,
"createdAt": "2025-11-21T23:21:53.080Z",
"updatedAt": "2025-11-21T23:21:53.080Z",
"type": "Activation",
"amount": 1,
"location": {},
"happenedAt": "2025-11-21T23:21:53.080Z",
"expiresAt": null,
"reversed": "[Circular Reference]",
"mewsPayment": {},
"attachedMember": "https://example.com/",
"storedCreditAccount": {
"balances": "[Circular Reference]"
}
},
"mewsPayment": {},
"attachedMember": "https://example.com/",
"storedCreditAccount": {
"balances": "[Circular Reference]"
}
},
"mewsPayment": {},
"attachedMember": "https://example.com/",
"storedCreditAccount": {
"balances": "[Circular Reference]"
}
}Last updated