Skip to main content
GET
List account statement ledger entries
GET//////
Important
This feature is being deprecated and replaced by statement journal entries. To list statement journal entries, see List account statement journal entries.
Retrieve an array of ledger entries on a credit account’s statement summary. This endpoint supports sorting.

URL path parameters

URL query parameters

Response body

Sample response body

JSON

Authorizations

Authorization
string
header
required

Token used to verify user identity and also authorize user to use service

Path Parameters

account_token
string
required

Unique identifier of the credit account for which to retrieve the statement ledger entries.

Send a GET request to /credit/accounts to retrieve existing credit account tokens.

statement_summary_token
string
required

Unique identifier of the statement summary from which to retrieve ledger entries.

Send a GET request to /credit/accounts/{token}/statements/ to retrieve existing statement summary tokens.

Query Parameters

expand
enum<string>[]

Embeds the specified object into the response.

Available options:
detailObject,
originalCurrency
sort_by
enum<string>
default:lastModifiedTime

Field on which to sort. Prefix the field name with a hyphen (-) to sort in descending order. Omit the hyphen to sort in ascending order.

NOTE: You must sort using system field names such as lastModifiedTime, and not by the field names appearing in response bodies such as last_modified_time.

Available options:
lastModifiedTime,
-lastModifiedTime

Response

Expected response to a valid request

id
string
required

Eight-digit numeric identifier of the ledger entry, an alternate identifier to the UUID that is useful for remembering and referencing.

Required string length: 8
memo
string
required

Merchant name or description for the ledger entry.

Example:

"Whole Foods Market"

type
string
required

Ledger entry event type.

Example:

"authorization.clearing"

group
enum<string>
required

Group to which the ledger entry belongs.

Available options:
PURCHASE,
INTERNAL,
FEE,
REWARD,
INTEREST,
PAYMENT,
ADJUSTMENT,
BALANCE_TRANSFER,
CASH_ADVANCE,
BALANCE_REFUND,
ORIGINAL_CREDIT,
INQUIRY
token
string
required

Unique identifier of the ledger entry.

amount
number
required

Amount of the ledger entry.

status
enum<string>
required

Status of the ledger entry when it was initially recorded and had an impact on the balance, either PENDING or POSTED. This field is immutable and may not represent the current status.

To view the current status of purchases, refunds, OCTs, and payments, see the detail_object.state field. These journal entries start in PENDING and can transition to CLEARED, DECLINED, or ERROR. This transition of status is only sent through webhook event notifications.

Ledger entries that are final transactions, such as clearings, start and remain in a POSTED state.

NOTE: CLEARED status does not have an impact on the account balance and is only sent through webhook event notifications. For CLEARED status, impact_time, request_time, created_time, token, and id are returned blank.

DECLINED and ERROR statuses do not impact the account balance but ARE recorded in the ledger with full details including metadata about the failure reason.

Available options:
PENDING,
POSTED,
DECLINED,
ERROR,
CLEARED
card_token
string<string>
required

Unique identifier of the credit card used to make the ledger entry.

Required string length: 8 - 36
impact_time
string<date-time>
required

Date and time when the ledger entry impacts the account balance.

For purchases, this is the time of the authorization.

For purchase authorization clearings, this is the time when the transaction is settled.

created_time
string<date-time>
required

Date and time when the ledger entry was created on Marqeta's credit platform, in UTC.

detail_token
string
required

Unique identifier of the ledger entry's full details.

request_time
string<date-time>
required

For purchases, the date and time of the authorization, which is when the user initiates the ledger entry.

For other ledger entry groups, equivalent to impact_time.

account_token
string<string>
required

Unique identifier of the credit account associated with the credit card used to make the ledger entry.

currency_code
enum<string>
default:USD
required

Valid three-digit link:https://www.iso.org/iso-4217-currency-codes.html[ISO 4217 currency code, window="_blank"].

Available options:
USD
metadata
object | null

Contains key-value pairs with additional information about the ledger entry.

For DECLINED and ERROR status ledger entries, this field contains diagnostic information extracted from the transaction gateway response:

  • funding.gatewayLog.message - Gateway decline or error message
  • funding.gatewayLog.timedOut - Whether the gateway request timed out ("true" or "false")
  • funding.gateway.response.code - Gateway HTTP response code
  • funding.gateway.response.data.jitFunding.memo - Additional context from JIT funding
  • funding.gateway.response.data.jitFunding.declineReason - Specific decline reason (e.g., "INSUFFICIENT_FUNDS", "CARD_EXPIRED")

This field is null for successful transactions with PENDING or POSTED status.

root_token
string

Unique identifier of the root ledger entry. If the current ledger entry is the root, this field is returned empty.

detail_object
object

Contains the ledger entry's full details. The fields returned in this object vary based on the ledger entry group.

The following lists each ledger entry group and the specific fields returned for each group.

  • Purchases and refunds: see the <</core-api/transactions#getTransactions, transactions>> response fields.

  • Disputes: see the <</core-api/credit-account-disputes#retrieveDispute, account disputes response fields.>>

  • Original credit transaction (OCT): see the <</core-api/push-to-card-payments#_create_push_to_card_disbursement, Push-to-Card disbursement>> fields.

  • Rewards: see the <</core-api/credit-account-rewards#createReward, account reward>> response fields.

  • Payments: see the <</core-api/credit-account-payments#retrievePayment, account payment>> response fields.

  • Balance refunds: see the <</core-api/credit-account-balance-refunds#createBalanceRefund, balance refund>> response fields.

  • Adjustments: see the <</core-api/credit-account-adjustments#retrieveAdjustment, account adjustment>> response fields.

  • Interest and fees: see fields below.

Unique identifier of the original ledger entry. If the current ledger entry is the original, this field is returned empty.

original_currency
object

Original Currency