Skip to navigation

Retrieve a journal entry

Returns one journal entry, exactly as GET /journalEntries lists it. A journalEntry.created event’s relatedObject.url is this read.

The journal is available only for financial accounts enabled for it; an entry of any other is refused with NOT_ELIGIBLE.

Authentication

AuthorizationBearer

Access token from POST /access-token. Valid for at most 30 minutes.

Path parameters

journalEntryIdstringRequiredformat: "^[A-Za-z0-9_-]+$"1-128 characters

The journal entry’s ID, from GET /journalEntries or a journalEntry.created event.

Headers

Account-HolderstringOptionalformat: "^[A-Za-z0-9_-]+$"1-128 characters

The account holder a platform API key acts on. Platform keys must send it on account holder operations. A company API key acts on its own account holder; it may omit the header or send its own account holder ID.

X-Request-IdstringOptionalformat: "^[A-Za-z0-9._:-]+$"1-128 characters

Your own correlation ID for this request. It is recorded with the request. The X-Request-Id response header is always generated by the server.

Response headers

X-Request-Idstringformat: "uuid"
Unique ID of this request. Quote it when you contact support.
RateLimitstringOptional

Remaining budget for each rate limit policy, for example "burst"; r=57; t=6 (requests remaining and seconds until the window resets).

RateLimit-PolicystringOptional

The rate limit policies applied to this request, for example "burst"; q=60; w=10 (requests allowed per window of seconds).

Response

The journal entry.
idstringformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

objectenum

Always journalEntry.

Allowed values:
livemodeboolean

true on a live platform in production, false on a Sandbox platform and outside production.

createdAtdatetime
When the entry was written.
accountHolderIdstringformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

financialAccountIdstringformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

sequenceinteger1-9007199254740991
The entry's position in the account's journal, from 1 with no gaps.
typeenum

What the entry records. OPENING_BALANCE is always sequence 1. Outbound funding is FUNDING with a negative amount, and a move between the account and one of its cards is FUNDING with an amount of zero. On a credit account, a repayment is FUNDING and a change to the credit limit is CREDIT_LIMIT, with an amount of zero, moving CREDIT_LINE and AVAILABLE together. DISPUTE is money a card dispute credits to the account, with a positive amount, or takes back, with a negative one; its authorizationId is the disputed purchase’s. Accept values not listed here. REVERSAL means held money was released. On some accounts a purchase that went through also releases its hold as a REVERSAL, and records the spend as a separate CAPTURE with the same authorizationId without changing the pending balance again. A REVERSAL alone does not mean the purchase was cancelled; read the purchase outcome from the entry’s transactionId.

amountobject

The signed movement: the change to posted, or the change to pendingIn less pendingOut when nothing settled. An authorization and its capture each show the purchase amount, so add up balanceImpact, not amount.

lineslist of objects

The entry’s double-entry posting: in each currency the DEBIT lines add up to the CREDIT lines. The OPENING_BALANCE entry takes each ledger account from zero to its balance when the journal started, and has no lines when every account started at zero.

balanceImpactobject

The account’s money in three parts, from the account holder’s side. posted is settled money and is negative when the account owes. pendingOut is authorized outgoing money not yet settled, and pendingIn incoming money not yet settled.

balanceAfterobject

The account’s money in three parts, from the account holder’s side. posted is settled money and is negative when the account owes. pendingOut is authorized outgoing money not yet settled, and pendingIn incoming money not yet settled.

effectiveAtdatetime
When the change happened at the card issuer.
transactionIdstringOptionalformat: "^[A-Za-z0-9_-]+$"1-128 characters

The transaction the entry belongs to, worked out when you read. It is left out when no single transaction matches; match on providerReferences.authorizationId instead.

providerReferencesobjectOptional
The card issuer's identifiers for what this entry was posted from.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error