query · Module: Network · Requires network:read
Arguments
Returns
LedgerEntry!
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 LedgerEntry($id: ID!) {
ledgerEntry(id: $id) {
id
object
type
status
livemode
created
updated
shipment
parent_shipment
debit_account
credit_account
amount {
amount
currency
}
}
}
{
"id": "le_1a2B3c"
}
{
"data": {
"ledgerEntry": {
"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"
}
}
}
}
Retrieve a LedgerEntry
query LedgerEntry($id: ID!) {
ledgerEntry(id: $id) {
id
object
type
status
livemode
created
updated
shipment
parent_shipment
debit_account
credit_account
amount {
amount
currency
}
}
}
{
"id": "le_1a2B3c"
}
{
"data": {
"ledgerEntry": {
"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"
}
}
}
}
query · Module: Network · Requires network:read
| Argument | Type | Description |
|---|---|---|
id | ID! | The object’s ID. |
LedgerEntry!
| Field | Type |
|---|---|
id | String! |
object | LedgerEntryObject! |
livemode | Boolean! |
created | Int! |
updated | Int |
type | LedgerEntryType! |
shipment | String |
parent_shipment | String |
debit_account | String! |
credit_account | String! |
amount | Money! |
basis | JSON |
status | LedgerEntryStatus! |
user_metadata | UserMetadata |
carrier_metadata | CarrierMetadata |
system_metadata | SystemMetadata |
errors[], with the REST error object in extensions (type, code, param, request_id), using the codes in Conventions §9.
query LedgerEntry($id: ID!) {
ledgerEntry(id: $id) {
id
object
type
status
livemode
created
updated
shipment
parent_shipment
debit_account
credit_account
amount {
amount
currency
}
}
}
{
"id": "le_1a2B3c"
}
{
"data": {
"ledgerEntry": {
"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"
}
}
}
}