Skip to main content
GET
Retrieve account journal entry
GET/////
Retrieve a journal entry for a credit account.

URL path parameters

Response body

Sample response body

The following code block shows a sample PURCHASE journal entry.
JSON
The following code block shows a sample INTEREST journal entry.
JSON
The following code block shows a sample FEE journal entry.
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 you want to retrieve journal entries.

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

journal_entry_token
string
required

Unique identifier of the journal entry you want to retrieve.

Send a GET request to /credit/accounts/{account_token}/journalentries to retrieve existing journal entry tokens.

Response

Expected response to a valid request

Contains information about a journal entry.

id
string
required

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

Required string length: 8
type
string
required

Journal entry event type.

Example:

"authorization.clearing"

group
enum<string>
required

Group to which the journal entry belongs.

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

Unique identifier of the journal entry.

amount
number
required

Amount of the journal entry.

status
enum<string>
required

Status of the journal entry. This field is immutable and may not represent the current status.

  • PENDING - Transaction is pending and impacts the account balance.
  • POSTED - Transaction is posted and impacts the account balance.
  • DECLINED - Transaction was declined and does NOT impact the account balance. These entries are persisted with full details including metadata about the decline reason.
  • ERROR - Transaction encountered an error and does NOT impact the account balance. These entries are persisted with full details including metadata about the error.
  • CLEARED - Transaction was cleared (final state for certain transaction types).

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

Journal 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.

Available options:
PENDING,
POSTED,
DECLINED,
ERROR,
CLEARED
user_token
string
required

Unique identifier of the credit user.

impact_time
string<date-time>
required

Date and time when the journal 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 journal entry was created on Marqeta's credit platform, in UTC.

detail_token
string
required

Unique identifier of the journal 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 journal entry.

For other journal 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 journal 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
memo
string

Merchant name or description for the journal entry.

Example:

"Whole Foods Market"

metadata
object | null

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

For DECLINED and ERROR status journal 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.

card_token
string<string>

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

Required string length: 8 - 36
root_token
string

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

detail_object
object

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

original_currency
object

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

The following lists each journal 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.

program_migration_time
string<date-time>

Date and time when the journal entry was migrated to Marqeta's credit platform, in UTC. Null if not migrated.