
Transactions Get
CertifiedGet a Mercury transaction
Transactions Get
Get a Mercury transaction
Retrieve full details for a single Mercury bank transaction by its ID.
type: io.kestra.plugin.mercury.transactions.GetExamples
Get a Mercury transaction by ID
id: get_mercury_transaction
namespace: company.team
tasks:
- id: get_transaction
type: io.kestra.plugin.mercury.transactions.Get
apiToken: "{{ secret('MERCURY_API_TOKEN') }}"
accountId: "d0e567d8-76a7-11e9-a22d-0b33e9de0755"
transactionId: "4b54e3d6-72aa-4c07-b3c6-9f4a56a64010"
Properties
accountId *string
Account ID
The unique identifier (UUID) of the Mercury account that owns the transaction.
apiToken *string
Mercury API token
API token for authentication with the Mercury API.
transactionId *string
Transaction ID
The unique identifier (UUID) of the Mercury transaction to retrieve.
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.
Outputs
transaction
Transaction details
The retrieved Mercury bank transaction.
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.