Skip to main content
The transactions resource provides methods for enriching raw transaction strings and managing enriched transaction records.

Enrich a Transaction

Transform a raw bank transaction string into structured data:

Enrichment Options

Use the options field to control extraction behavior. You can skip entity types you don’t need or pre-fill known data to improve accuracy:
You cannot combine a filter (e.g. noMerchant) with pre-filled data for the same entity type — the request will return a 422 validation error.
When your payment rail already tells you whether money went to a person, pass p2p. Use true for a person-to-person transfer and false for a payment to a business. Leave it out when you don’t know:
See Person-to-person hint for what each value returns.

Idempotent Enrichment

Pass an idempotencyKey to safely retry enrichment requests without consuming extra credits. The key must be unique per bank transaction: a retry of the same request with the same key returns the stored result without a charge, and the same key with a different request fails with DuplicateRequestError.

Cancel a Call

Every method accepts an AbortSignal in its last options argument. Aborting cancels the call, including while it waits its turn under pacing, between retries, or in flight. The call rejects with the signal’s reason (an AbortError by default):

List Transactions

Retrieve paginated lists of previously enriched transactions:

Auto-Paginate

Use for await...of to iterate through all pages automatically:

Count Transactions

Count your organization’s transactions. Pass afterDate (an ISO 8601 string or a Date) to count only transactions created on or after it:

Get a Transaction

Retrieve a single enriched transaction by ID:

Delete a Transaction

Remove a transaction record:

Delete Transactions in Bulk

Delete many transactions in one request. Pass exactly one of ids (at most 1000 UUIDs), afterDate, or all: true:
all: true deletes every transaction in your organization and cannot be undone.
Any other combination throws a ValidationError. A 503 means cleanup is incomplete. The SDK retries it automatically. If it still fails, call again with the same request. After a retry, count covers only the final attempt.