
Transactions List
CertifiedList Mercury transactions
Transactions List
List Mercury transactions
Retrieve transactions for a specific Mercury bank account with automatic offset-based pagination and filtering.
type: io.kestra.plugin.mercury.transactions.ListExamples
List Mercury transactions into memory
id: list_mercury_transactions
namespace: company.team
tasks:
- id: list_transactions
type: io.kestra.plugin.mercury.transactions.List
apiToken: "{{ secret('MERCURY_API_TOKEN') }}"
accountId: "d0e567d8-76a7-11e9-a22d-0b33e9de0755"
fetchType: FETCH
Stream Mercury transactions to internal storage
id: store_mercury_transactions
namespace: company.team
tasks:
- id: store_transactions
type: io.kestra.plugin.mercury.transactions.List
apiToken: "{{ secret('MERCURY_API_TOKEN') }}"
accountId: "d0e567d8-76a7-11e9-a22d-0b33e9de0755"
fetchType: STORE
Properties
accountId *string
Account ID
The unique identifier (UUID) of the Mercury account whose transactions to list.
apiToken *string
Mercury API token
API token for authentication with the Mercury API.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150baseUrl string
https://api.mercury.com/api/v1Mercury API base URL
Base URL for the Mercury API. Override for the Mercury sandbox (https://api-sandbox.mercury.com/api/v1). Must use HTTPS, except for loopback hosts (localhost, 127.0.0.1, ::1) during local testing.
end string
End date filter
Latest date to filter transactions. Format: YYYY-MM-DD or ISO 8601 string. Mercury defaults to the current date when omitted.
fetchType string
FETCHSTOREFETCHFETCH_ONENONEFetch mode
Controls how results are returned: FETCH to return all rows in memory, FETCH_ONE for the first row, STORE to stream records as ION into internal storage, or NONE to skip collecting outputs.
limit integerstring
1000Results per page
Maximum number of transactions to return per page. Minimum 1, maximum 1000. Default is 1000.
order string
ASCDESCSort order
Sort order for transactions. Allowed values: ASC or DESC. Defaults to DESC in the Mercury API when omitted.
pageCap integerstring
100Maximum pages to retrieve
Safety cap on the number of pages fetched during pagination. Minimum 1. Default is 100.
search string
Search term filter
Search term to filter transactions by description, note, recipient memo, or counterparty name.
start string
Start date filter
Earliest date to filter transactions. Format: YYYY-MM-DD or ISO 8601 string. Mercury defaults to 30 days prior to the current date when omitted.
status string
PENDINGSENTCANCELLEDFAILEDREVERSEDBLOCKEDTransaction status filter
Filter transactions by status: PENDING, SENT, CANCELLED, FAILED, REVERSED, or BLOCKED.
Outputs
row
The first transaction fetched
The first transaction retrieved. Only populated when fetchType is FETCH_ONE.
io.kestra.plugin.mercury.model.Transaction
Account ID
The external-facing account identifier for the Mercury account that owns this transaction.
Transaction amount
The amount of the transaction in USD. Can be negative for outgoing payments or fees, and positive for incoming deposits.
Attachments
File attachments associated with the transaction, such as receipts and invoices.
Bank description
Bank description text as reported on bank statements.
Card ID
ID of the card behind this transaction, present on card payments and refunds (debit or credit); null otherwise.
Category data
Expense category details for transaction classification.
Check number
Check number present for check deposits and mailed checks; null otherwise.
Compliant with receipt policy
Whether the transaction complies with the company's receipt policy.
Counterparty ID
The unique identifier for the counterparty.
Counterparty name
Name of the counterparty involved in the transaction.
Counterparty nickname
Nickname assigned to the counterparty, if any.
date-timeCreated at
Timestamp when the transaction record was created, in ISO 8601 UTC format.
Credit account period ID
ID of the credit account statement period, if applicable.
Currency exchange info
Information on currency conversions for international transactions.
Dashboard link
The direct URL to view the transaction in the Mercury dashboard.
Transaction details
Transaction method details such as card info, electronic routing, or wire routing info.
date-timeEstimated delivery date
The estimated delivery timestamp for the transaction, in ISO 8601 UTC format.
External memo
External memo attached to the payment.
date-timeFailed at
Timestamp when the transaction failed, if applicable, in ISO 8601 UTC format.
Fee ID
ID of the associated fee transaction, if any.
General ledger code name
Deprecated GL code name. Preserved for backwards compatibility.
General ledger allocations
GL code allocations assigned via accounting software integrations.
Has generated receipt
Whether a receipt was automatically generated.
Transaction ID
The unique identifier (UUID) for this transaction.
Transaction kind
Kind of transaction, such as outgoingPayment, externalTransfer, internalTransfer, or creditCardTransaction.
Merchant details
Merchant information for card transactions, including MCC, merchant ID, and local currency data.
Mercury category
High-level merchant category assigned by Mercury.
User note
Internal user note attached to the transaction.
date-timePosted at
Timestamp when the transaction settled and posted to the ledger, in ISO 8601 UTC format.
Reason for failure
Description of why the transaction failed, if applicable.
Related transactions
Related transactions such as refunds, fee reversals, or chargebacks.
Request ID
ID returned from /account/: id/request-send-money if created via a payment request.
Transaction status
Current status of the transaction. Possible values: pending, sent, cancelled, failed, reversed, blocked.
Tracking number
Tracking number for wire, RTP, or ACH payments; null otherwise.
rows array
The transactions fetched
List of retrieved transactions. Only populated when fetchType is FETCH.
io.kestra.plugin.mercury.model.Transaction
Account ID
The external-facing account identifier for the Mercury account that owns this transaction.
Transaction amount
The amount of the transaction in USD. Can be negative for outgoing payments or fees, and positive for incoming deposits.
Attachments
File attachments associated with the transaction, such as receipts and invoices.
Bank description
Bank description text as reported on bank statements.
Card ID
ID of the card behind this transaction, present on card payments and refunds (debit or credit); null otherwise.
Category data
Expense category details for transaction classification.
Check number
Check number present for check deposits and mailed checks; null otherwise.
Compliant with receipt policy
Whether the transaction complies with the company's receipt policy.
Counterparty ID
The unique identifier for the counterparty.
Counterparty name
Name of the counterparty involved in the transaction.
Counterparty nickname
Nickname assigned to the counterparty, if any.
date-timeCreated at
Timestamp when the transaction record was created, in ISO 8601 UTC format.
Credit account period ID
ID of the credit account statement period, if applicable.
Currency exchange info
Information on currency conversions for international transactions.
Dashboard link
The direct URL to view the transaction in the Mercury dashboard.
Transaction details
Transaction method details such as card info, electronic routing, or wire routing info.
date-timeEstimated delivery date
The estimated delivery timestamp for the transaction, in ISO 8601 UTC format.
External memo
External memo attached to the payment.
date-timeFailed at
Timestamp when the transaction failed, if applicable, in ISO 8601 UTC format.
Fee ID
ID of the associated fee transaction, if any.
General ledger code name
Deprecated GL code name. Preserved for backwards compatibility.
General ledger allocations
GL code allocations assigned via accounting software integrations.
Has generated receipt
Whether a receipt was automatically generated.
Transaction ID
The unique identifier (UUID) for this transaction.
Transaction kind
Kind of transaction, such as outgoingPayment, externalTransfer, internalTransfer, or creditCardTransaction.
Merchant details
Merchant information for card transactions, including MCC, merchant ID, and local currency data.
Mercury category
High-level merchant category assigned by Mercury.
User note
Internal user note attached to the transaction.
date-timePosted at
Timestamp when the transaction settled and posted to the ledger, in ISO 8601 UTC format.
Reason for failure
Description of why the transaction failed, if applicable.
Related transactions
Related transactions such as refunds, fee reversals, or chargebacks.
Request ID
ID returned from /account/: id/request-send-money if created via a payment request.
Transaction status
Current status of the transaction. Possible values: pending, sent, cancelled, failed, reversed, blocked.
Tracking number
Tracking number for wire, RTP, or ACH payments; null otherwise.
size integer
The total number of transactions returned
For FETCH this matches the size of rows, for FETCH_ONE 0 or 1, for STORE the count of stored records, and 0 for NONE.
uri string
uriURI of stored results
The URI of the file containing ION-formatted records in internal storage. Only populated when fetchType is STORE.