query · Module: Billing
Arguments
Returns
BalanceTransactionList!
Errors
Errors are returned inerrors[], with the REST error object in extensions (type, code, param, request_id), using the codes in Conventions §9.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
query BalanceTransactions($limit: Int) {
balanceTransactions(limit: $limit) {
data {
id
object
type
amount {
amount
currency
}
balance_after {
amount
currency
}
source {
type
id
}
created
}
has_more
}
}
{
"limit": 10
}
{
"data": {
"balanceTransactions": {
"data": [
{
"id": "obj_1a2B3c",
"object": "balance_transaction",
"type": "top_up",
"amount": {
"amount": 1299,
"currency": "usd"
},
"balance_after": {
"amount": 1299,
"currency": "usd"
},
"source": {
"type": "example",
"id": "obj_1a2B3c"
},
"created": 1791302400
}
],
"has_more": true
}
}
}
List balance transactions
query BalanceTransactions($limit: Int) {
balanceTransactions(limit: $limit) {
data {
id
object
type
amount {
amount
currency
}
balance_after {
amount
currency
}
source {
type
id
}
created
}
has_more
}
}
{
"limit": 10
}
{
"data": {
"balanceTransactions": {
"data": [
{
"id": "obj_1a2B3c",
"object": "balance_transaction",
"type": "top_up",
"amount": {
"amount": 1299,
"currency": "usd"
},
"balance_after": {
"amount": 1299,
"currency": "usd"
},
"source": {
"type": "example",
"id": "obj_1a2B3c"
},
"created": 1791302400
}
],
"has_more": true
}
}
}
query · Module: Billing
| Argument | Type | Description |
|---|---|---|
type | String | Filter by type. |
limit | Int | Page size, 1–100 (default 10). |
startingAfter | ID | Cursor: return objects after this ID. |
endingBefore | ID | Cursor: return objects before this ID. |
BalanceTransactionList!
| Field | Type |
|---|---|
data | [BalanceTransaction!]! |
has_more | Boolean |
errors[], with the REST error object in extensions (type, code, param, request_id), using the codes in Conventions §9.
query BalanceTransactions($limit: Int) {
balanceTransactions(limit: $limit) {
data {
id
object
type
amount {
amount
currency
}
balance_after {
amount
currency
}
source {
type
id
}
created
}
has_more
}
}
{
"limit": 10
}
{
"data": {
"balanceTransactions": {
"data": [
{
"id": "obj_1a2B3c",
"object": "balance_transaction",
"type": "top_up",
"amount": {
"amount": 1299,
"currency": "usd"
},
"balance_after": {
"amount": 1299,
"currency": "usd"
},
"source": {
"type": "example",
"id": "obj_1a2B3c"
},
"created": 1791302400
}
],
"has_more": true
}
}
}