query · Module: Network · Requires network:read
Arguments
Returns
LedgerEntryList!
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 LedgerEntries($limit: Int) {
ledgerEntries(limit: $limit) {
data {
id
object
type
status
livemode
created
updated
shipment
parent_shipment
debit_account
credit_account
amount {
amount
currency
}
}
has_more
}
}
{
"limit": 10
}
{
"data": {
"ledgerEntries": {
"data": [
{
"id": "le_1a2B3c",
"object": "ledger_entry",
"type": "shipper_charge",
"status": "pending",
"livemode": true,
"created": 1791302400,
"updated": 1791302400,
"shipment": "shp_1Q2w3E4r5T6y",
"parent_shipment": "example",
"debit_account": "example",
"credit_account": "example",
"amount": {
"amount": 1299,
"currency": "usd"
}
}
],
"has_more": true
}
}
}
List ledger entries
query LedgerEntries($limit: Int) {
ledgerEntries(limit: $limit) {
data {
id
object
type
status
livemode
created
updated
shipment
parent_shipment
debit_account
credit_account
amount {
amount
currency
}
}
has_more
}
}
{
"limit": 10
}
{
"data": {
"ledgerEntries": {
"data": [
{
"id": "le_1a2B3c",
"object": "ledger_entry",
"type": "shipper_charge",
"status": "pending",
"livemode": true,
"created": 1791302400,
"updated": 1791302400,
"shipment": "shp_1Q2w3E4r5T6y",
"parent_shipment": "example",
"debit_account": "example",
"credit_account": "example",
"amount": {
"amount": 1299,
"currency": "usd"
}
}
],
"has_more": true
}
}
}
query · Module: Network · Requires network:read
| Argument | Type | Description |
|---|---|---|
account | String | Filter by account. |
shipment | String | Filter by shipment. |
type | String | Filter by type. |
status | String | Filter by status. |
createdGte | Int | Filter by created gte. |
createdLte | Int | Filter by created lte. |
limit | Int | Page size, 1–100 (default 10). |
startingAfter | ID | Cursor: return objects after this ID. |
endingBefore | ID | Cursor: return objects before this ID. |
LedgerEntryList!
| Field | Type |
|---|---|
data | [LedgerEntry!]! |
has_more | Boolean |
errors[], with the REST error object in extensions (type, code, param, request_id), using the codes in Conventions §9.
query LedgerEntries($limit: Int) {
ledgerEntries(limit: $limit) {
data {
id
object
type
status
livemode
created
updated
shipment
parent_shipment
debit_account
credit_account
amount {
amount
currency
}
}
has_more
}
}
{
"limit": 10
}
{
"data": {
"ledgerEntries": {
"data": [
{
"id": "le_1a2B3c",
"object": "ledger_entry",
"type": "shipper_charge",
"status": "pending",
"livemode": true,
"created": 1791302400,
"updated": 1791302400,
"shipment": "shp_1Q2w3E4r5T6y",
"parent_shipment": "example",
"debit_account": "example",
"credit_account": "example",
"amount": {
"amount": 1299,
"currency": "usd"
}
}
],
"has_more": true
}
}
}