Bank Linking Webhooks & Events
Bank linking webhooks: connection events, bank transactions, and the match events that tie each bank posting to its card transaction for reconciliation.
For: developers
Introduction
Bank activity arrives on the transaction events you already handle: transactionmessage.created, transaction.created and transaction.updated, with the same schema and the same handlers. Bank linking also has five events of its own, which you subscribe to if you need them: two lifecycle events (banklink.completed, bankaccount.state_changed) and three bank-record events (banktransaction.created, banktransaction.deleted, transaction.match.created). Completing a bank link can also create cards, announced on the cardsubscription.created event you may already consume, with enrollmentType: "bank-feed"; see Unified Card & Bank Feeds.
This page orients you to what fires when across the bank-linking journey. The canonical payload schemas for every event live in the Webhook Event Types reference. Link out to it for field-level detail rather than copying shapes into your integration.
Events at a glance
| Event | Fires when | Where in the journey |
|---|---|---|
banklink.completed | A bank-link enrollment finishes | Cardholder connected (Quick Start step 4) |
cardsubscription.created | A completed bank link creates a card (enrollmentType: "bank-feed") | One per created card; unordered relative to banklink.completed |
transactionmessage.created + transaction.created | A bank-only movement posts | Fees, transfers, payroll, FX markup |
transactionmessage.created + transaction.updated | A linked card's auth matches a bank posting | Earlier settlement |
bankaccount.state_changed | A connection's state changes | Re-auth needed, disconnected, or recovered |
banktransaction.created | Any bank transaction is synced | Every synced bank transaction |
banktransaction.deleted | A previously announced bank transaction is retracted | Drop the bank record you hold for that id |
transaction.match.created | A bank transaction is matched to a card transaction | Reconciliation signal (Use Cases) |
The lifecycle events
banklink.completed
banklink.completedSent when an enrollment finishes: when the provider reports the cardholder finished the hosted-link flow, when a GET /bank-links/{bankLinkId} finds it finished, or on the manual PATCH /bank-links/{bankLinkId} completion. Astrada sends it once per completion, carrying the completed bankLinkId and all the accounts discovered under it in a single delivery, so a push-only consumer reacts to a new connection without polling GET /bank-links. A retry repeats the same webhook-id; if the event never arrives, GET /bank-links/{bankLinkId} shows the completed link and its accounts.
Each account row carries its mask (for credit accounts, the card number's last 4), normalized type, and the cards attached to it at completion. cardIds lists every linked card, including already-enrolled cards matched by last 4; cards[] appears for credit accounts where completion created a card, pairing the new cardId with its subscription. A cardsubscription.created event fires separately for each created card, and delivery order relative to this event is not guaranteed.
{
"bankLinkId": "enrollment_792dcb7d",
"bankAccounts": [
{
"id": "3a8f2c1d-5e7b-4d9a-b6c8-9f0e1d2a3b4c",
"name": "Checking",
"mask": "6789",
"type": "checking",
"cardIds": []
},
{
"id": "059d5e6a-cfb1-46e6-ab84-6586582b6b58",
"name": "Platinum Card",
"mask": "1005",
"type": "credit",
"cardIds": ["9e107d9d-372b-4d1a-9f4a-654321abcdef"],
"cards": [
{
"id": "9e107d9d-372b-4d1a-9f4a-654321abcdef",
"subscriptionId": "1b671a64-40d5-491e-99b0-da01ff1f3341",
"last4digits": "1005",
"network": "amex",
"enrollmentType": "bank-feed"
}
]
}
],
"eventType": "banklink.completed"
}bankaccount.state_changed
bankaccount.state_changedTells you that a linked bank account needs the cardholder to sign in again (auth_required), has been disconnected (disconnected), or works again (active). One event fires per bank account, and writing the same state again sends nothing. Use it to prompt the cardholder to reconnect (and to stop prompting) without polling GET /bank-accounts. The same states apply to every bank-linking provider.
{
"bankAccountId": "3a8f2c1d-5e7b-4d9a-b6c8-9f0e1d2a3b4c",
"state": "auth_required",
"previousState": "active",
"reason": "consent_expiring",
"expiresAt": "2026-07-09T00:00:00.000Z",
"eventType": "bankaccount.state_changed"
}| Field | Type | Meaning |
|---|---|---|
bankAccountId | string (UUID) | The bank account whose state changed. |
state | string | The new state: active, auth_required, or disconnected. |
previousState | string | The state before this change. |
reason | string or null | Why the state changed, when known (values below). Always null on a change back to active. |
expiresAt | string (ISO 8601) or null | When the bank consent ends or ended, for consent_expiring and consent_expired when the provider gives the date. Otherwise null. |
The reason values sent today:
state | reason | When |
|---|---|---|
auth_required | sync_error | A sync kept failing with a sign-in error for longer than a short grace period. |
auth_required | item_error_webhook | The provider reported that the cardholder must sign in again. |
auth_required | consent_expiring | The bank consent ends soon (at expiresAt, when known). Bank data keeps flowing until then. |
auth_required | consent_expired | The bank consent has ended. |
disconnected | deleted | The bank link or the bank account was deleted through the API. |
disconnected | reaped_stale | The connection stayed broken, with no successful sync, for 90 days (30 days for Mastercard Open Finance US). |
disconnected | superseded_by_relink | The cardholder linked the same bank accounts again, and the new connection replaced this one. |
disconnected | expired_incomplete | The bank link expired before its completion finished. |
disconnected | item_error_webhook | Mastercard Open Finance US reported that one account of the connection is closed or can no longer be found. The connection's other accounts stay connected. |
disconnected | consent_revoked, consent_inactive, revoked, terminated | Mastercard Open Finance Europe reported that the consent or the connection ended. |
disconnected | subscription_deactivated, or the reason given on PATCH /bank-accounts/{id} | One bank account was disconnected through the API, for example because its card was deactivated. |
disconnected | null | The provider ended the connection: the cardholder revoked access at the provider, or the connection, the account, or support for the bank no longer exists. |
Branch on state, and treat reason as detail for your logs and support: new values can appear, and the PATCH case passes through whatever text its caller sent.
When an account is in auth_required, restore it with POST /bank-accounts/{id}/refresh, which returns a reconnect link for the same connection, or open SDK v2 with reconnect: { bankAccountId }. See Bank connection states and Keep connections healthy.
Bank account states and reconnecting
A linked bank account has its own state, separate from card errors. The states are the same for every bank-linking provider: each provider reports problems in its own terms, and Astrada maps them onto these three states.
state | What it means | What you do |
|---|---|---|
active | The connection works and bank data flows. | Nothing. |
auth_required | The bank needs the cardholder to sign in again: a changed password, a new security challenge, or a consent that is about to end or has ended. | Ask the cardholder to reconnect: request a reconnect link with POST /bank-accounts/{id}/refresh and send them to its hostedLink, or open SDK v2 with reconnect: { bankAccountId }. |
disconnected | The connection has ended and cannot be repaired, for example because it was deleted, the cardholder revoked access, the provider no longer has it, the same accounts were linked again under a new connection, or it stayed broken for 90 days. The reason list has every case. | Create a new bank link if the cardholder wants the feed back. Opening SDK v2's reconnect for this account sends an error with code: "bank_account.disconnected". |
While an account is auth_required, new bank data stops arriving for it. The exception is a consent that is about to end (reason: "consent_expiring"): it stays valid until it ends (expiresAt, when the provider gives the date), so data keeps flowing, and a reconnect before then avoids a gap. After a successful reconnect the account keeps its id, returns to active, and syncing resumes.
Get told instead of polling. Subscribe to bankaccount.state_changed, which carries the new state, the previousState, and a reason. As a fallback, GET /bank-accounts?state=auth_required lists the accounts that need a reconnect.
Reconnect through the API. POST /bank-accounts/{id}/refresh (scope banking:write) works only for an account in auth_required, and returns 400 Bad Request for any other state. Response (201 Created):
{
"id": "3a8f2c1d-5e7b-4d9a-b6c8-9f0e1d2a3b4c",
"hostedLink": "https://secure.plaid.com/hl/...",
"expiresAt": "2026-10-01T14:55:42.000Z"
}The hostedLink opens the provider's repair flow for the same connection: Plaid's update mode, or Mastercard's Connect opened on the connection that needs repair. When the cardholder finishes and the provider confirms the repair, the account returns to active and bankaccount.state_changed fires with "previousState": "auth_required". If the link expires first (expiresAt), request a new one.
Connection errors that need no action. GET /bank-accounts also returns subscriptionState, the state of the connection behind the account, and lastSyncedAt, its last successful sync. subscriptionState can read error while the account stays active: the provider reported a problem that the cardholder cannot fix. Astrada keeps retrying and clears it on the next successful sync, so act on the account state only.
To try the reconnect path in the sandbox, see Testing Bank Linking.
Bank activity on your existing webhooks
Bank money movement arrives on the transaction* events you already handle. There is no new shape to parse. Three behaviors are worth knowing, each in its own section below.
Bank-only transactions
A movement with no card counterpart (payroll, transfers, fees, FX markup, plus everything on an account with no linked or created cards) arrives as a transactionmessage.created carrying a settlement message (FINL_ADVC) that Astrada builds from the bank posting, followed by a transaction.created for a settled transaction. The universal markers of a bank-only movement are:
- no
approvalCode, - a
bank_-prefixedtransactionReference, - a
bankDataprovenance block.
A bank-only movement carries network: "OPEN_BANKING" in every case except one:
| The account | network on a bank-only movement |
|---|---|
| An account whose card Astrada created for it (a bank-feed card) at an institution that is its own card network, which today means American Express | "AMEX", because the account is an American Express card account |
| Every other account | "OPEN_BANKING" |
A bank-only movement never infers a network from transaction history, so it never looks like a card network's settlement, and the correction that reverses one always carries the same network the original did.
Which cardId a bank-only movement carries:
- On an account with no linked or created cards, a bank-only movement carries
cardId: null(the_links.cardlink is omitted). - On an account that does have linked cards, it is attributed to the account's oldest linked card and carries that card's
cardId, for feed grouping only.
The approvalCode/transactionReference markers above remain the universal classifiers. Do not use network to tell bank-only movements apart from card clearings.
Earlier settlement
When a bank posting matches one of your card transactions with high confidence, the transaction settles early: a bank-sourced FINL_ADVC (inheriting the authorization's transactionReference, approvalCode, and network) and a transaction.updated moving it from PENDING to SETTLED, typically hours after the swipe instead of days.

Earlier settlement, in the order the events arrive.
- Purchases that clear in parts. This applies per clearing leg: a purchase that clears in parts (for example 49 + 100 + 100 under one reference) can match each bank debit to its own leg, producing one
transaction.match.createdper debit and settling the card transaction leg by leg. - When the network's clearing arrives. When the card network's own clearing arrives later, settled amounts may revise once more (tips, FX); the network remains the financial authority, and amount revision on
transaction.updatedis expected, not an error. - The bank settlement is superseded. The provisional bank settlement is superseded rather than removed at that point. Its id joins the payload's
supersededMessageIdsand its embedded projection changes tosuperseded: true, keeping the bank provenance visible without double-counting (see Superseded messages).
Bank-first, card-later
If the bank movement arrived first as a standalone transaction and card data shows up later, the movement re-settles onto the card transaction and the standalone's transaction.updated revises its settled amounts to 0 (status stays SETTLED).
- Every later match nets. This netting fires for every later match, whatever its confidence. A movement paired below the early-settlement bar still nets its standalone, so the same real-world spend is never represented twice.
- Nothing new to handle. No new field or status to handle: consumers that already process amount revisions get this for free.
- Matches can come late. Re-matching of late card data runs on a scheduled cadence (tight in the first hours, then progressively less frequent), and reopens automatically when newer card data arrives for the account. Matches can therefore appear well past the initial window.
- Either order. The card transaction's settlement and the standalone's netting revision are sent separately, so either can arrive first.
Key state by bankData.bankTransactionId and treat each event as an idempotent upsert, and both properties (late matches and either order) are harmless.
One join key across every surface
bankData.bankTransactionId(on bank-sourcedtransactionmessage.createdpayloads and the_embedded.messages[]projection) equalsbanktransaction.created.idandtransaction.match.created.matches[].id, and resolves viaGET /bank-transactions/{subaccountId}/{id}. Stitch the bank-feed events and the unified transaction into one record with no extra REST call.
Some accounts set up before July 2026 receive transaction.created and transaction.updated without _embedded.messages[]; ask your Astrada contact whether yours is one.
Retractions and duplicates
Two edge cases need nothing beyond the same idempotent-upsert handling:
- A bank transaction can be retracted upstream (Plaid removes it), netting its transaction to
0like the re-settle above. A retraction is also announced as an event: abanktransaction.deletedfires with the sameidthe originalbanktransaction.createdcarried. - A single movement can occasionally arrive twice under different
bankTransactionIds (a Plaid duplicate), so don't assume exactly one event per real-world movement.
Full payloads are in the reference: transactionmessage.created, transaction.created, transaction.updated, and the Bank-sourced activity section.
The bank-record events
Beyond the unified transaction* feed, these four events expose the bank side directly and can be subscribed to on their own. banktransaction.created is the primary event if you consume bank linking as a standalone feed. See Bank-only mode.
banktransaction.created
banktransaction.createdOne event per bank transaction synced from a linked account (Plaid sync). It fires for each synced bank transaction once it has posted, whether or not a card is linked; a still-pending Plaid transaction is not announced until it settles (which is why pending on this event is always false). Its id is the join key described above. amount is always positive, a decimal number in the currency's main unit (42.5 is 42.50), not in cents. Direction is carried by transactionType (debit or credit). category is the primary personal-finance category (or null), and merchantName may be null.
{
"id": "7f2a9c4e-3b1d-4e8f-a5c7-6d0e2f9b8a3c",
"bankAccountId": "3a8f2c1d-5e7b-4d9a-b6c8-9f0e1d2a3b4c",
"bankAccountName": "Checking",
"date": "2025-10-15",
"amount": 42.5,
"currency": "USD",
"description": "UBER TRIP",
"merchantName": "Uber",
"category": "Travel",
"pending": false,
"transactionType": "debit",
"eventType": "banktransaction.created"
}transaction.match.created
transaction.match.createdSent when Astrada matches a bank transaction to one of your card transactions: as bank data syncs, on the scheduled re-matching, and during a backfill. It fires only when cards are linked. It carries the matchId, the confidence (HIGH ≥ 0.70, MEDIUM ≥ 0.50, LOW ≥ 0.20; Astrada has not sent new LOW matches since June 2026, though a LOW match stored before then can still be sent again) and numeric score, the per-factor reasons, a summary of the matched card transaction, and the matched bank transaction(s) under matches[].
cardTransaction.id is the id of the matched card transaction message (the one transactionmessage.created carried), not the transaction's own id. To find the transaction, call GET /transactions?transactionMessageId={cardTransaction.id} (scope transactions:read).
For example, a reconciliation tool can use these events to mark a card transaction as matched to its bank posting and send matches below HIGH to a person to review (Use Cases).
{
"matchId": "b1c2d3e4-f5a6-7b8c-9d0e-1f2a3b4c5d6e",
"confidence": "HIGH",
"score": 0.88,
"cardTransaction": {
"id": "9c8b7a6d-5e4f-3c2b-1a0d-9e8f7c6b5a4d",
"cardId": "5dec2c49-0aa5-4683-a317-427eb5d115f3",
"date": "2025-10-15",
"amount": 42.5,
"currency": "USD",
"descriptor": "UBER *TRIP",
"source": "Card"
},
"reasons": [
{ "type": "Amount", "score": 1, "cardValue": 42.5, "bankValue": 42.5, "diff": 0, "message": "Exact match" },
{ "type": "Merchant", "score": 0.88, "cardValue": "UBER *TRIP", "bankValue": "Uber", "diff": 12, "message": "88% similarity" }
],
"matches": [
{
"id": "7f2a9c4e-3b1d-4e8f-a5c7-6d0e2f9b8a3c",
"bankAccountId": "3a8f2c1d-5e7b-4d9a-b6c8-9f0e1d2a3b4c",
"bankAccountName": "Checking",
"date": "2025-10-15",
"amount": 42.5,
"currency": "USD",
"source": "Plaid",
"description": "UBER TRIP"
}
],
"eventType": "transaction.match.created"
}banktransaction.deleted
banktransaction.deletedSent when a bank transaction you were told about with banktransaction.created is retracted. id is the same id the banktransaction.created carried, so drop the record you hold under it. reason is provider_removed (the provider removed the transaction) or duplicate_retired (it was a duplicate of another transaction).
{
"id": "7f2a9c4e-3b1d-4e8f-a5c7-6d0e2f9b8a3c",
"bankAccountId": "3a8f2c1d-5e7b-4d9a-b6c8-9f0e1d2a3b4c",
"deletedAt": "2025-10-16T08:12:44.000Z",
"reason": "provider_removed",
"eventType": "banktransaction.deleted"
}Full field detail for all three is in the Event Types reference.
Bank transactions and matches have read endpoints (scope banking:read). A push-only consumer can fetch the exact resource a webhook just referenced:
GET /transaction-matches/{subaccountId}/{matchId}: one match;GET /transaction-matches/{subaccountId}: list matches.GET /bank-transactions/{subaccountId}/{id}: one bank transaction;GET /bank-transactions/{subaccountId}: list, with filtersbankAccountId,cardId,startDate,endDate,minAmount,maxAmount,transactionType,matched.
Bank-only mode
You can use bank linking without enrolling any card numbers, as a standalone bank-data source in place of card enrollment. Bank-only mode still creates cards:
- Completion still creates a card (an active
bank-feedsubscription, announced bycardsubscription.created) for each credit account that carries a usable last 4, and that account's synced transactions are attributed to the created card'scardId. - An account that exposes no usable last 4 gets no created card, and its movements carry
cardId: null.
Either way, with no card-network enrollment there is nothing to match, and every synced bank transaction surfaces the same way:
- a
banktransaction.created(the raw bank record), - plus a settlement message (
FINL_ADVC) built from the bank posting, ontransactionmessage.created - and a SETTLED
transaction.created.
What bank-only mode does not give you:
- Card authorizations. Bank linking never emits a card authorization (
AUTH_REQU); bank transactions arrive at the bank's posting time, not at swipe time, so there is no real-time authorization stream without a card. - Match events. With no card-network transactions to match against,
transaction.match.creatednever fires.
Next steps
- Quick Start: Bank Linking: the integration from token to events.
- Linking Cards to Bank Accounts: enable earlier settlement.
- Webhook Event Types: canonical payload schemas for every event.
Updated about 17 hours ago
