---
updatedAt: 2026-11-13T00:45:53.000Z
agentTools:
  projectIndex: https://docs.astrada.co/llms.txt
---

# Error States & Remediation

# Introduction

The canonical reference for every enrollment outcome: how to handle errors, the complete error-code list, what the cardholder sees, and what success looks like. SDK troubleshooting: [Unhappy Paths](https://docs.astrada.co/docs/unhappy-paths) · tier behavior: [Verification Risk Tiers](https://docs.astrada.co/docs/verification-risk-tiers). Linked bank accounts have their own states, covered in [Bank connection states](#bank-connection-states).

# How to handle errors

Four rules cover every case:

1. **Branch on `errorCode` when present.** It's the stable machine key (full list below).
2. **Fall back to `category`, then HTTP status.** Some errors carry `category` without an `errorCode`; network-path 3DS failures and client errors carry neither.
3. **Never parse or render `detail`.** It's human-readable, interpolates IDs, can change without notice, and may contain provider/technical context cardholders shouldn't see.
4. **Log the reference ID.** Every SDK error screen footer shows `Reference: <verificationId> | <correlationId>`. Capture it; it's the fastest path for Astrada support to trace a failure.

**The error body:**

| Field       | Present   | Use                                                                                                                                                                                                          |
| ----------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `detail`    | always    | display/debug only, never branch on it                                                                                                                                                                       |
| `errorCode` | sometimes | primary branching key                                                                                                                                                                                        |
| `category`  | sometimes | remediation class: `cvc` · `bank-contact` · `hard-fraud` · `soft-decline` · `transient` · `infrastructure` · `auth-failed` · `auth-canceled` · `auth-rejected` · `auth-unsupported` · `verification-locked`  |
| `retryable` | sometimes | can the cardholder usefully retry now                                                                                                                                                                        |
| `metadata`  | sometimes | e.g. `attemptsRemaining` on a mismatch/lockout error. **Not** where a 409's existing-resource id lives. Both verification-create and subscription-create 409s put that in `currentValue` instead (see below) |

**Two phases, two catalogs.** Errors from **creating the subscription** (`POST /card-subscriptions`) use the `card_subscription.*` namespace (or `detail`-only for conflict/validation/network pre-check). Errors from **verifying the cardholder** (`POST /card-verifications/3ds` + `/steps/…`) use `stripe.*` (or `detail`-only on the network 3DS path).

# Error code reference

`card_subscription.*`, `stripe.*`, and `verification.*` are the `errorCode` namespaces.

## During subscription create: `card_subscription.*`

These carry `title` and `type` (the per-code reference URL) instead of `category`/`retryable`.

| `errorCode`                                                                                                                                 | HTTP | Cardholder sees (SDK)                                                           |
| ------------------------------------------------------------------------------------------------------------------------------------------- | ---- | ------------------------------------------------------------------------------- |
| [`card_subscription.account_blocking_card_type`](https://docs.astrada.co/reference/errors-account_blocking_card_type)                       | 403  | "Card type not supported"                                                       |
| [`card_subscription.account_blocking_card_funding_type`](https://docs.astrada.co/reference/errors-account_blocking_card_funding_type)       | 403  | "Card funding type not supported"                                               |
| [`card_subscription.subaccount_blocking_card_type`](https://docs.astrada.co/reference/errors-subaccount_blocking_card_type)                 | 403  | "Card type not supported"                                                       |
| [`card_subscription.subaccount_blocking_card_funding_type`](https://docs.astrada.co/reference/errors-subaccount_blocking_card_funding_type) | 403  | "Card funding type not supported"                                               |
| [`card_subscription.subaccount_blocking_card_country`](https://docs.astrada.co/reference/errors-subaccount_blocking_card_country)           | 403  | "Card country not supported"                                                    |
| [`card_subscription.network_blocking_card`](https://docs.astrada.co/reference/errors-network_blocking_card)                                 | 403  | "Card not supported"                                                            |
| [`card_subscription.card_must_be_network_bulk_enrolled`](https://docs.astrada.co/reference/errors-card_must_be_network_bulk_enrolled)       | 422  | *(no SDK copy: handle in `onError`, route to your bulk flow)*                   |
| [`card_subscription.sandbox_card_not_allowed`](https://docs.astrada.co/reference/errors-sandbox_card_not_allowed)                           | 403  | *(sandbox environment only: enroll a [sandbox test card](https://docs.astrada.co/docs/sandbox-testing))* |

Remediation: for the `account_blocking_*` and `subaccount_blocking_*` codes, adjust the subaccount's [enrollment controls](https://docs.astrada.co/docs/card-enrollment-controls) via `PATCH /subaccounts`, or use an eligible card. `network_blocking_card` is a platform-level rule set by Astrada that no account or subaccount setting can override (today: Visa consumer debit and prepaid), so the only remediation is to enroll an eligible card; the rules in force are reported read-only as `networkBlockedCards` on the subaccount. Detail-only outcomes at create: **409** (subscription already exists, `currentValue` carries the existing id) and **400** (Mastercard pre-check rejected the card, or request validation failed).

## During verification: `stripe.*`

Which codes can occur depends on the **path** (network × [tier](https://docs.astrada.co/docs/verification-risk-tiers)):

* **Visa with a tier set** → the full `stripe.*` table below.
* **Mastercard** → 3DS always runs the network path (`detail`-only failures); the only `stripe.*` codes possible are the three HIGHEST hold codes.
* **No tier set** → network path: `detail`-only, never `stripe.*`.

| `errorCode`                      | `category`            | `retryable`                            | HTTP       | Cardholder sees (SDK)                          |
| -------------------------------- | --------------------- | -------------------------------------- | ---------- | ---------------------------------------------- |
| `stripe.cvc_fail`                | `cvc`                 | yes³                                   | 400 / 500² | "Security code didn't match"                   |
| `stripe.generic_decline`         | `soft-decline`        | no                                     | 400 / 500² | "Card declined"                                |
| `stripe.insufficient_funds`      | `soft-decline`        | no                                     | 400 / 500² | "Verification failed"                          |
| `stripe.expired_card`            | `soft-decline`        | no                                     | 400 / 500² | "Card expired"                                 |
| `stripe.stolen_card`             | `hard-fraud`          | no                                     | 400 / 500² | "Card not eligible"                            |
| `stripe.lost_card`               | `hard-fraud`          | no                                     | 400 / 500² | "Card not eligible"                            |
| `stripe.restricted_card`         | `hard-fraud`          | no                                     | 400 / 500² | "Card not eligible"                            |
| `stripe.card_declined_at_3ds`    | `hard-fraud`          | no                                     | 500        | "Card declined during verification"            |
| `stripe.contact_issuer`          | `bank-contact`        | no                                     | 400 / 500² | "Contact your bank"                            |
| `stripe.try_again_later`         | `transient`           | yes                                    | 400 / 500  | "Verification temporarily unavailable"         |
| `stripe.auth_failed`             | `auth-failed`         | none¹                                  | 500        | "Authentication failed"                        |
| `stripe.auth_canceled`           | `auth-canceled`       | none¹                                  | 500        | "Verification canceled"                        |
| `stripe.auth_rejected_by_issuer` | `auth-rejected`       | none¹                                  | 500        | "Authentication denied by your bank"           |
| `stripe.auth_unsupported`        | `auth-unsupported`    | none¹                                  | 500        | "Card doesn't support secure verification"     |
| `stripe.place_holds_declined`    | `soft-decline`        | yes                                    | 400        | "Couldn't place the holds" *(HIGHEST)*         |
| `stripe.amount_confirm_mismatch` | `auth-failed`         | while `metadata.attemptsRemaining` > 0 | 400        | "Amounts didn't match" *(HIGHEST)*             |
| `stripe.amount_confirm_locked`   | `verification-locked` | no                                     | 400        | "Verification temporarily blocked" *(HIGHEST)* |
| `stripe.unknown`                 | `infrastructure`      | no                                     | 400 / 500² | generic failure screen                         |

¹ `auth-*` failures mostly arrive without a wire `retryable` flag: treat `auth-failed`/`auth-canceled` as retry, `auth-rejected`/`auth-unsupported` as use-another-card. A newer `auth-failed` decline path does carry `retryable: true` on the wire; when present, prefer it over this default.

² Same `errorCode`/`category` either way, but the HTTP status depends on *when* the decline happens: **400** at verification create (rejected immediately); **500** if the decline instead happens after a 3DS challenge has already run. Branch on `errorCode`, not on the status code.

³ `false` specifically for a missing-CVC request (empty field). The same `errorCode` covers both "CVC provided but wrong" (retryable) and "no CVC provided" (not retryable).

**Category without `errorCode`:** a few known declines intentionally carry no copy key: extra hard-fraud variants, velocity (`soft-decline`, not retryable), rate-limit/connection (`transient`, retryable). Branch on `category`; the SDK shows its generic screen.

**SDK-side codes** (only in `onError`, never from the API): `stripe.js_load_failed` ("Payment service unavailable"), `stripe.unexpected_state` ("Verification incomplete"), `stripe.resume_unavailable` ("Session expired").

## After repeated failures: `verification.*`

When a subaccount has `failedAttemptLockout` enabled, repeated hard failures lock a card across **every** network. Rules + thresholds: [Verification Attempt Lockout](https://docs.astrada.co/docs/verification-attempt-lockout).

| `errorCode`                              | `category`            | `retryable` | HTTP | Cardholder sees (SDK)              |
| ---------------------------------------- | --------------------- | ----------- | ---- | ---------------------------------- |
| `verification.attempts_locked`           | `verification-locked` | no          | 400  | "Verification temporarily blocked" |
| `verification.attempts_locked_permanent` | `verification-locked` | no          | 400  | "Verification blocked"             |

The temporary code carries `metadata.lockedUntil` (ISO-8601). Clear either lock with `POST /card-verifications/unlock` (`subaccounts:write`). This is **distinct** from the `HIGHEST` per-card lockout (`stripe.amount_confirm_locked`, below), which only Astrada can clear.

# Triage a failed verification with failureReason

Most integrations use the **SDK**, which runs the verification in the cardholder's browser and shows them a failure screen via `onError`. Your backend never sees those calls, so when a cardholder's card won't enroll, you need your own server-side way to find out **why**. These read endpoints give you that visibility **even when the SDK does the enrolling**: look a failure up by a handle the SDK's `onError` hands you, the **verification ID** (one verification) or the **card ID** (all of a card's failures).

* `GET /card-verifications/3ds?cardId={cardId}&state=failed`: the card's failed verifications, each with its `failureReason`. `cardId` is required. This is a per-card view your backend can query any time. You get the `cardId` (and `subscriptionId`) from the SDK's `onError` callback, or from the card subscription: it's in the `cardsubscription.*` webhook payload, and `GET /card-subscriptions/{id}` returns it next to a `_links.verifications` link that points straight at this query.
* `GET /card-verifications/3ds/{verificationId}`: a single verification, when you have its id. The SDK hands it to you directly as `verificationId` on the `onError` callback (and shows it on the failure screen as `Reference: <verificationId>`); direct-API integrators already hold it from the `POST /card-verifications/3ds` response.

`failureReason` is present **only** when `state` is `failed`. `category`, `description`, and `retryable` are always present; `issuerMessage`, `code`, and `acsReferences` appear only when the issuer returned them (typically a frictionless decline).

| Field           | Always | Description                                                                                                       |
| --------------- | ------ | ----------------------------------------------------------------------------------------------------------------- |
| `category`      | yes    | Stable, provider-agnostic failure category an integrator can branch on without enumerating raw issuer codes.      |
| `description`   | yes    | Human-readable explanation of the failure, safe to relay to the cardholder.                                       |
| `retryable`     | yes    | Whether the cardholder can retry now and plausibly succeed.                                                       |
| `issuerMessage` | no     | The issuer's own cardholder-facing message, when provided (frictionless declines only).                           |
| `code`          | no     | Raw provider reason code (a 3DS `transStatusReason` or a Stripe `decline_code`), surfaced for support escalation. |
| `acsReferences` | no     | 3DS ACS reference identifiers, when returned by the issuer. Useful when escalating to the issuer.                 |

`category` is one of: `authentication_declined`, `authentication_canceled`, `cvc_check_failed`, `card_declined`, `contact_issuer`, `card_blocked`, `too_many_attempts`, `not_supported`, `temporary_issue`, `processing_error`. Branch on `category` to route, on `retryable` to decide whether to offer a retry, and show `description` (never `detail`) to the cardholder.

```json
{
  "id": "9fab1bea-bc1e-4757-bd47-479422e5983b",
  "cardId": "8309b5f8-d5d8-49bb-9001-38bf1bb0f1e4",
  "type": "3DS",
  "state": "failed",
  "authenticationFlow": "frictionless",
  "failureReason": {
    "category": "authentication_declined",
    "description": "The card issuer declined the 3-D Secure authentication.",
    "retryable": true,
    "issuerMessage": "Your bank declined this verification. Please contact your bank or try another card.",
    "code": "05",
    "acsReferences": {
      "acsTransactionId": "8a880dc0-d2d2-4067-bcb1-b08d1690b26e",
      "acsReferenceNumber": "ACME-ACS-2024-0042",
      "dsTransactionId": "97267598-fae6-494f-8453-2d3807e0c77f"
    }
  }
}
```

> 📘 Three vocabularies, not one: don't map between them
>
> The same underlying failure gets a different spelling depending which surface you're reading: the SDK's `onError` `category` shown to the cardholder in real time (`cvc` · `soft-decline` · `auth-failed` …, in the error-code tables above), the durable `failureReason.category` recorded on the verification (listed here, e.g. `cvc_check_failed`), and (sandbox-only) [Test Cards & Sandbox Testing](https://docs.astrada.co/docs/sandbox-testing)'s `decline_code` column (e.g. `incorrect_cvc`). A bad CVC is `cvc` / `cvc_check_failed` / `incorrect_cvc` depending which one you're looking at. Don't map any of the three onto another.

# What the cardholder sees

The SDK's failure screens, grouped by what the cardholder can do about each: not a restatement of the `errorCode`/`category`/`retryable` semantics above, only the actual screen for each. (At `LOW`, `bank-contact` and `auth-unsupported` are silently bypassed to success. See [Verification Risk Tiers](https://docs.astrada.co/docs/verification-risk-tiers).)

## Cardholder can fix it

| Category                                                       | Screen                       | Capture                                                                                                                                                                            |
| -------------------------------------------------------------- | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `cvc`: re-enter the security code (rejected at **every** tier) | "Security code didn't match" | <Image align="center" className="border" width="200px" border={true} src="https://files.readme.io/eb370c00be2dfacaa61e1ecf3ec3a8ed4ced95f9268efcb87a3be7450ed18b20-outcome.png" /> |
| `bank-contact`: call the bank, then re-enroll                  | "Contact your bank"          | <Image align="center" className="border" width="200px" border={true} src="https://files.readme.io/259876294a189719b80d54345540895281144731510b77f2ef475d2b7227f9e9-outcome.png" /> |

## Card problems: use a different card

| `errorCode`                                              | Screen                                                                   | Capture                                                                                                                                                                            |
| -------------------------------------------------------- | ------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `stripe.generic_decline`                                 | "Card declined"                                                          | <Image align="center" className="border" width="200px" border={true} src="https://files.readme.io/e5bfd87fd70661e0e56d7732e4dad3ff6c87393ae5619285d709709b1c1c7529-outcome.png" /> |
| `stripe.insufficient_funds`                              | "Verification failed"                                                    | <Image align="center" className="border" width="200px" border={true} src="https://files.readme.io/e0d8535195509a6d8cda75d79c020d3745e5f144a6cd1c6a6702ded577496c99-outcome.png" /> |
| `stripe.expired_card`                                    | "Card expired"                                                           | <Image align="center" className="border" width="200px" border={true} src="https://files.readme.io/cb5b8c244bcfd78637bccffcae238656e088fd2b1bdbf2658c3781932feefbf3-outcome.png" /> |
| `hard-fraud` (stolen/lost/restricted + no-code variants) | "Card not eligible" (one screen for all, so card status isn't disclosed) | <Image align="center" className="border" width="200px" border={true} src="https://files.readme.io/b1d6b47fa7f79919b6e79cd719ec28a35d1625a85e5e8c53d3de6fc355a5663a-outcome.png" /> |

## 3DS authentication didn't complete

| `category`         | Screen                                     | Capture                                                                                                                                                                            |
| ------------------ | ------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `auth-failed`      | "Authentication failed"                    | <Image align="center" className="border" width="180px" border={true} src="https://files.readme.io/a5ef704effa15459f99e6e32a6d5898d2d230c5c971556f4640807bb204e21ac-outcome.png" /> |
| `auth-rejected`    | "Authentication denied by your bank"       | <Image align="center" className="border" width="180px" border={true} src="https://files.readme.io/4c39e47c09654773b0dadedbeca5cc44d1cdfd0461d21ebea3027643e3160973-outcome.png" /> |
| `auth-canceled`    | "Verification canceled"                    | <Image align="center" className="border" width="180px" border={true} src="https://files.readme.io/2e6e8171b09243b094247b0a334484c1d65c4781cd1d808383c070018d26e66f-outcome.png" /> |
| `auth-unsupported` | "Card doesn't support secure verification" | <Image align="center" className="border" width="180px" border={true} src="https://files.readme.io/29a3f2d3aeee240c7c76dc5fda8a3f7d7abc93c51809ca95ac8ab844f2937974-outcome.png" /> |
| `transient`        | "Verification temporarily unavailable"     | <Image align="center" className="border" width="180px" border={true} src="https://files.readme.io/067a08e88b691aac7547b29d26290066f626534adc8a6851c0f84ea7235912a3-outcome.png" /> |

Two special renders: the bank's optional free-form 3DS message is shown verbatim under the standard copy (<Image align="center" className="border" width="200px" border={true} src="https://files.readme.io/c5e502f64411282f3990819a13fe10d04f87443329d61caed189825530827586-outcome.png" />), and a challenge that succeeds but declines at finalization shows `stripe.card_declined_at_3ds` (<Image align="center" className="border" width="200px" border={true} src="https://files.readme.io/e5b38ac61bdabd7ea81752155c84ed98b2d39b4af45794a874b15b7c94d451a5-outcome.png" />).

## Infrastructure & recovery

| Situation                                                            | Screen                                   | Capture                                                                                                                                                                            |
| -------------------------------------------------------------------- | ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Verification scripts blocked (`stripe.js_load_failed`, SDK-side)     | "Payment service unavailable"            | <Image align="center" className="border" width="200px" border={true} src="https://files.readme.io/6c857505f8e3d9f32ecdc8eaaeb2ec4f2ff36eae549b4d46e933c8db02348c2f-outcome.png" /> |
| Unrecognized/unexpected failure (catchall)                           | "Verification incomplete — try again"    | <Image align="center" className="border" width="200px" border={true} src="https://files.readme.io/10ee677833512480a54b646465f93a251ff25c915ebfa0f24457daf2b24a8ce7-outcome.png" /> |
| Refresh mid-challenge, session intact                                | challenge re-mounts, cardholder finishes | <Image align="center" className="border" width="200px" border={true} src="https://files.readme.io/9b61d29364d4f065b0032ec860e334c787a955136db56d510ca31f645929c783-outcome.png" /> |
| Refresh mid-challenge, session expired (`stripe.resume_unavailable`) | "Couldn't resume" + start over           | <Image align="center" className="border" width="200px" border={true} src="https://files.readme.io/02cbd952316e1ba0da57068f65bfde0f04b227e6090a7b8f82991b51bebe82a7-outcome.png" /> |

Re-enrolling a card with an in-progress verification returns **409** with the existing verification's `id` in `metadata`. Fetch it and resume at `currentStepId` (the SDK does this automatically).

## Card locked: too many attempts

When `failedAttemptLockout` is enabled, a card that crosses the failure thresholds is blocked at the create step ([Verification Attempt Lockout](https://docs.astrada.co/docs/verification-attempt-lockout)). The two tiers show distinct screens, wait-and-retry vs contact-your-provider:

| `errorCode`                                                                                       | Screen                             | Capture                                                                                                                                                                            |
| ------------------------------------------------------------------------------------------------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `verification.attempts_locked`: temporary, auto-clears at `metadata.lockedUntil`                  | "Verification temporarily blocked" | <Image align="center" className="border" width="200px" border={true} src="https://files.readme.io/318d280bf62af870466e4c2a11c182f6964be6dfa4b0f668db64dc19d1566dfc-outcome.png" /> |
| `verification.attempts_locked_permanent`: permanent, clear with `POST /card-verifications/unlock` | "Verification blocked"             | <Image align="center" className="border" width="200px" border={true} src="https://files.readme.io/6fe40b698ef09eee095c850e03926f15a503d94b126bf3ce0ddbacc38732743a-outcome.png" /> |

# Default-path (network 3DS) failures: no `errorCode`

When 3DS runs on the network rail (**Mastercard 3DS at every tier**, and **Visa with no tier set**), those step failures carry **`detail` only**. The network's own error codes are never returned as structured fields (at most a short provider fragment inside the `3DS details: '…'` text). Your code can only branch on **HTTP status**. The `detail` sub-cases below are shown for log-reading/support triage, not as something your integration can distinguish or act on differently:

| HTTP | What it means                                                                                                                                                                                                                   |
| ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 400  | Rejected at creation (card not eligible for a verification), or a step call arrived after the step already finished or was superseded.                                                                                          |
| 409  | The verification is already terminal and cannot be completed: either the cardholder abandoned mid-authentication, or the challenge window closed before it completed. **Start a new verification**; retrying this one will 400. |
| 500  | The 3DS step failed (terminal).                                                                                                                                                                                                 |

The SDK shows its generic failure screen for terminal failures, no per-cause copy on this path:

<Image align="center" className="border" width="220px" border={true} src="https://files.readme.io/10ef9a3484913f1d858b06ccb5875776c7662200b26e107906c464136bd40bf7-G-MC.4-outcome.png" />

# HIGHEST verification errors

The two-hold second factor's codes (flow: [HIGHEST Verification](https://docs.astrada.co/docs/highest-verification)):

| `errorCode`                      | Remediation                                                      |
| -------------------------------- | ---------------------------------------------------------------- |
| `stripe.amount_confirm_mismatch` | Retry while `metadata.attemptsRemaining` > 0 (2 per hold set).   |
| `stripe.amount_confirm_locked`   | Locked after repeated failed sessions. Contact Astrada to clear. |
| `stripe.place_holds_declined`    | Hold couldn't authorize. Retry or use another card.              |

> 📘 Distinct from the attempt lockout
>
> `stripe.amount_confirm_locked` is the **HIGHEST-only** two-hold lockout (per card, cleared only by Astrada). The opt-in cross-network throttle for the other tiers uses `verification.attempts_locked` and you clear it yourself. See [Verification Attempt Lockout](https://docs.astrada.co/docs/verification-attempt-lockout).

<Image align="center" className="border" width="220px" border={true} src="https://files.readme.io/9d0e528939c26e7399fdb7431ce46a0d7226c6a6f1ebe0c71bf1563d7b4ab0d8-G3.4-locked.png" />

**Hold expiry:** unconfirmed holds eventually fail the verification (next `GET` returns `state: failed`; holds void automatically). No special code. Re-enroll to start fresh.

# Integration (client) errors

Integration faults surface in the SDK's `onError` with `type: "client"` and `detail` only. Fix the integration. See [Installation](https://docs.astrada.co/docs/web-sdk) for the token contract:

| `detail` *(examples, not contractual)*                                          | Fix                                                                                                                                                       |
| ------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| "Timeout while waiting for token…within the allowed time window (5s)."          | `getAccessToken` must resolve within the configured window (default 5 s); raise it with the optional `getAccessTokenTimeoutMs` (ms) option on `openForm`. |
| "Access token is malformed…" / "…not a valid JWT token."                        | Pass the raw JWT from [Authentication](https://docs.astrada.co/docs/authentication).                                                                                               |
| "Verification state is 'failed'…" / "There is already an ongoing verification…" | Stale/conflicting verification. Start a new enrollment.                                                                                                   |

# Success states

**On the API.** `state: completed`, `currentStepId: null`, and `authenticationFlow` reports how 3DS resolved: `challenge`, `frictionless`, or `null` (3DS didn't run).

**In the SDK.** The success screen plus the `onSuccess` callback:

```json
{
  "subscriptionId": "…",
  "cardId": "…",
  "enrollmentGuidance": { "availableEnrollmentMethods": ["network-bulk"] },
  "authenticationFlow": "challenge"
}
```

<Image align="center" className="border" width="220px" border={true} src="https://files.readme.io/ffe6aa349aaa2f5dc53a86188f22c8da60a434b9191fac4ae3c880d991b4af74-G3.1-outcome.png" />

If the program is bulk-eligible, the success screen says so and `availableEnrollmentMethods` includes `network-bulk`. `onCancel` fires (no payload) if the cardholder closes the form before finishing.

**On your backend.** Don't rely on the browser:

1. **Webhooks (recommended)**: `cardsubscription.created` / `cardsubscription.updated` ([Webhooks](https://docs.astrada.co/docs/webhooks-1)); the subscription `state` is the outcome: `active`, `reqSCA` (3DS still pending), `failed-to-create`, `deactivated`, `expired`. A `bank-feed` enrollment (a card created from a completed bank link) is born `active` with no 3DS step (`reqSCA` never applies), so distinguish it by `enrollmentType`.
2. **Poll**: `GET /card-verifications/3ds/{verificationId}` until `completed` / `failed`.
3. **SDK callback**: `onSuccess` for immediate UX; confirm server-side with 1 or 2.

# Testing error paths

Every state above is reproducible with sandbox test cards. See [Test Cards & Sandbox Testing](https://docs.astrada.co/docs/sandbox-testing).

# Bank connection states

A linked bank account has its own `state`, separate from the card errors above. 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 the [Unified Enrollment SDK](https://docs.astrada.co/docs/unified-enrollment-sdk#configure-the-session-client-side) 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](https://docs.astrada.co/docs/bank-linking-webhooks-and-events#bankaccountstate_changed) has every case. | Create a new bank link if the cardholder wants the feed back.                                                                                                                                                                                                                |

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`](https://docs.astrada.co/docs/bank-linking-webhooks-and-events#bankaccountstate_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`):

```json
{
  "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](https://docs.astrada.co/docs/sandbox-bank-linking#9-drill-a-reconnect-mastercard-us).

# Related

* [Quick Start: Card Enrollment](https://docs.astrada.co/docs/quick-start-card-enrollment) · [Verification Risk Tiers](https://docs.astrada.co/docs/verification-risk-tiers) · [HIGHEST Verification](https://docs.astrada.co/docs/highest-verification) · [Unhappy Paths](https://docs.astrada.co/docs/unhappy-paths)