> ## Documentation Index
> Fetch the complete documentation index at: https://docs.methodfi.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Send a `Method-Version` header on every request. New integrations should use the latest version, `2026-03-30`; when this page or an existing integration targets an older version, keep that version and follow that version's contract.
> Fetch `https://docs.methodfi.com/openapi.json` for complete machine-readable OpenAPI 3.x schemas and `https://docs.methodfi.com/llms.txt` for the documentation index.
> Default to `env="dev"` (`https://dev.methodfi.com`)—never production—when writing quickstart, example, or test code.
> Raw HTTP responses wrap JSON payloads in `{ "success": true, "data": ..., "message": null }` (except `POST /oauth/token`, which returns a standard OAuth 2.0 body, `GET /.well-known/jwks.json`, and raw file/report downloads); for enveloped responses the official `method-node` and `method-python` SDKs automatically unwrap `.data`.
> Use Method Opal (`@methodfi/opal-react`, `@methodfi/opal-react-native`) for drop-in UI flows rather than legacy Elements.
> Verify webhook signatures by computing hex HMAC-SHA256 over `<method-webhook-timestamp>:<raw_body>` with your `hmac_secret`, validating timestamp freshness, and comparing `method-webhook-signature` with a byte-length-checked constant-time comparison (`crypto.timingSafeEqual` in Node.js or `hmac.compare_digest` in Python); deduplicate deliveries with `method-webhook-delivery-id`.

# Real-Time Balance Refresh

> Pull point-in-time balances, APRs, and payoff quotes directly from financial institutions.

Credit bureau tradelines update on each creditor's monthly reporting cycle, leaving balances 30 to 60 days behind in lending and refinance workflows. Payments posted last week do not appear yet, daily interest has accrued, and due dates have already moved.

Method's direct endpoints read point-in-time balances, APRs, and payoff quotes from the financial institution itself, with the consumer's consent and no bank password.

![Chase Sapphire Reserve card updating from a 34-day-old \$1,340 bureau snapshot to a live \$800 direct update via POST /accounts/:id/updates](https://mintcdn.com/methodfinancial/R0nErTFrbdJHYGS7/images/updates-refresh-flow.png?fit=max\&auto=format\&n=R0nErTFrbdJHYGS7\&q=85\&s=2184549283c2521ad887db0317d81ba8)

## Choosing the right refresh endpoint

Pick the narrowest call that answers your question:

| Endpoint | What it returns | Best for | Webhook events |
| - | - | - | - |
| `POST /accounts/{acc_id}/updates` | Full live liability state: `balance`, `available_credit`, `credit_limit`, APR (`interest_rate_percentage_*`), due date, minimum payment, last payment, and `data_as_of` | Debt dashboards, underwriting checks, pre-payment confirmation, APR tracking | `update.create`, `update.update` |
| `POST /accounts/{acc_id}/balances` | Lightweight current `amount` (in cents) | Confirming a single card or loan balance before initiating a payment or refreshing a balance tile | `balance.create`, `balance.update` |
| `POST /accounts/{acc_id}/payoffs` | Exact payoff `amount`, quote validity `term` (days), and `per_diem_amount` (Auto Loans and Mortgages) | Refinance closing and direct-to-creditor loan payoffs | `payoff.create`, `payoff.update` |
| `POST /accounts/{acc_id}/subscriptions` (`enroll: "update"`) | Scheduled direct refreshes delivered automatically (typically every 1 to 3 days for credit cards; roughly every 30 days for personal loans and mortgages) | Always-current dashboards and change alerts without manual user refreshes | `update.create`, `update.update` |
| `POST /accounts/{acc_id}/subscriptions` (`enroll: "update.snapshot"`) | Monthly credit report tradeline snapshots plus delinquency history fields | Broad baseline coverage and fallback when direct refresh is unavailable for an account | `update.create`, `update.update` |

All monetary fields are integer **cents** (`80000` equals `$800.00`).

## Check account eligibility first

Product and subscription eligibility are per account. Before requesting a direct refresh, inspect `products` and `available_subscriptions` on `GET /accounts/{acc_id}`:

* `update`, `balance`, or `payoff` in `products`: that on-demand direct endpoint is available for this account.
* Present in `restricted_products`: additional verification is required before direct pulls work.
* Absent from `products`: direct refresh is not available for this account. Check `available_subscriptions` and enroll `update.snapshot` if listed.

## Triggering an on-demand refresh

All three direct endpoints are asynchronous. Method accepts the `POST` request immediately, queries the institution in the background, and sends a webhook when the result is ready. If you call the REST API directly, pass an [`Idempotency-Key`](https://docs.methodfi.com/reference/idempotency) header (UUID v4 recommended) so network retries cannot create duplicate requests.

> [tab] Full Update
>
> Use `POST /accounts/{acc_id}/updates` when you need live balances, APRs, minimum payments, and due dates together. For the full credit card response object, see [Updates Overview](https://docs.methodfi.com/guides/updates/overview.md).
>
> ```bash cURL theme={null}
> curl https://production.methodfi.com/accounts/acc_aEBDiLxiR8bqc/updates \
>   -X POST \
>   -H "Method-Version: 2026-03-30" \
>   -H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc" \
>   -H "Idempotency-Key: 9b2c4e1a-7f3d-4c8a-9e12-4a8d2c6f1b0e"
> ```
>
> ```javascript Node.js theme={null}
> const update = await method
>   .accounts('acc_aEBDiLxiR8bqc')
>   .updates
>   .create();
> ```
>
> ```python Python theme={null}
> update = (
>     method
>     .accounts('acc_aEBDiLxiR8bqc')
>     .updates
>     .create()
> )
> ```
>
> ```json initial POST response.data theme={null}
> {
>   "id": "upt_NYV5kfjskTTCJ",
>   "status": "pending",
>   "account_id": "acc_aEBDiLxiR8bqc",
>   "source": "direct",
>   "data_as_of": null,
>   "type": "credit_card",
>   "credit_card": null,
>   "error": null,
>   "created_at": "2026-04-09T14:12:04.210Z",
>   "updated_at": "2026-04-09T14:12:04.210Z"
> }
> ```

> [tab] Balance Only
>
> Use `POST /accounts/{acc_id}/balances` when you only need the current balance amount in cents.
>
> ```bash cURL theme={null}
> curl https://production.methodfi.com/accounts/acc_yVf3mkzbhz9tj/balances \
>   -X POST \
>   -H "Method-Version: 2026-03-30" \
>   -H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc" \
>   -H "Idempotency-Key: 4f1a9c2e-8b6d-4e3a-b512-7c9e0a1d3f2b"
> ```
>
> ```javascript Node.js theme={null}
> const balance = await method
>   .accounts('acc_yVf3mkzbhz9tj')
>   .balances
>   .create();
> ```
>
> ```python Python theme={null}
> balance = (
>     method
>     .accounts('acc_yVf3mkzbhz9tj')
>     .balances
>     .create()
> )
> ```
>
> ```json completed GET response.data theme={null}
> {
>   "id": "bal_ebzh8KaR9HCBG",
>   "account_id": "acc_yVf3mkzbhz9tj",
>   "status": "completed",
>   "amount": 80000,
>   "error": null,
>   "created_at": "2026-04-09T14:12:04.210Z",
>   "updated_at": "2026-04-09T14:12:24.082Z"
> }
> ```

> [tab] Payoff Quote
>
> Use `POST /accounts/{acc_id}/payoffs` on supported Auto Loans and Mortgages to retrieve the payoff amount, validity window in days (`term`), and daily interest (`per_diem_amount`).
>
> ```bash cURL theme={null}
> curl https://production.methodfi.com/accounts/acc_yVf3mkzbhz9tj/payoffs \
>   -X POST \
>   -H "Method-Version: 2026-03-30" \
>   -H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc" \
>   -H "Idempotency-Key: 7d3e2b1a-5c8f-4a90-81e4-2b6c9d0e1a3f"
> ```
>
> ```javascript Node.js theme={null}
> const payoff = await method
>   .accounts('acc_yVf3mkzbhz9tj')
>   .payoffs
>   .create();
> ```
>
> ```python Python theme={null}
> payoff = (
>     method
>     .accounts('acc_yVf3mkzbhz9tj')
>     .payoffs
>     .create()
> )
> ```
>
> ```json completed GET response.data theme={null}
> {
>   "id": "pyf_ELGT4hfikTTCJ",
>   "account_id": "acc_yVf3mkzbhz9tj",
>   "status": "completed",
>   "amount": 1842000,
>   "term": 15,
>   "per_diem_amount": 312,
>   "error": null,
>   "created_at": "2026-04-09T14:12:04.210Z",
>   "updated_at": "2026-04-09T14:12:38.655Z"
> }
> ```

### Handling the completion webhook

When the institution responds (typically seconds to a few minutes depending on the issuer), Method delivers the matching `.update` webhook (`update.update`, `balance.update`, or `payoff.update`):

```json theme={null}
{
  "webhook_id": "whk_cSGjA6d9N8y8R",
  "id": "upt_NYV5kfjskTTCJ",
  "type": "update.update",
  "op": "update",
  "path": "/accounts/acc_aEBDiLxiR8bqc/updates/upt_NYV5kfjskTTCJ",
  "event": "evt_7Kp2mNxQr9WvL",
  "refs": {
    "account": "acc_aEBDiLxiR8bqc",
    "entity": "ent_qKNBB68bfHGNA"
  }
}
```

Fetch `path` to read the completed payload and `data_as_of` timestamp. Deduplicate deliveries with `method-webhook-delivery-id`, and verify the HMAC-SHA256 signature (`method-webhook-timestamp` and `method-webhook-signature`) if you registered an `hmac_secret`. See [Webhooks](https://docs.methodfi.com/reference/webhooks/overview.md).

## Production patterns

### Confirm balances before funding (lending and Direct Pay)

Disbursing a debt consolidation loan or refinance payoff against a stale bureau balance causes short-pays, overpayments, and reissued checks.

* **Accounts without a payoff quote (credit cards, personal loans, student loans):** Trigger `POST /accounts/{acc_id}/updates` right before final offer lock or funding, then initiate `POST /payments` against the confirmed `balance`.
* **Auto loans and mortgages:** Trigger `POST /accounts/{acc_id}/payoffs` to pull the payoff `amount`, validity window (`term`), and `per_diem_amount` so disbursement accounts for daily interest through settlement.

### Pair background subscriptions with selective on-demand pulls

Refreshing every account on every page load is slow and costs more. Most debt dashboards combine scheduled freshness with targeted on-demand requests:

1. **Enroll eligible accounts in subscriptions:** Pass `"subscriptions": ["update"]` on `POST /entities/{ent_id}/connect` for automatic direct refreshes. For accounts where `update` is absent from `available_subscriptions` and `update.snapshot` is listed, enroll `update.snapshot` individually via `POST /accounts/{acc_id}/subscriptions`.
2. **Refresh on demand only when current data matters:** Call `POST /accounts/{acc_id}/updates` when the user taps **Refresh** or starts a payment, or when `data_as_of` is older than your freshness threshold (for example, 24 hours).

### Never block your UI on a direct pull

* Render the last stored balance alongside its `data_as_of` timestamp (for example, "Balance as of Apr 9").
* Show a non-blocking loading indicator while `status` is `pending` or `in_progress`.
* If a direct Update fails (`error.code: 21001`), keep the latest `source=snapshot` record on screen and inspect the account's `data_status_error` to decide whether to retry, stop, or fall back to `update.snapshot`. See [Handling Update Failures](https://docs.methodfi.com/guides/updates/failures.md) for error codes (`15001` to `15011`), retry backoff, and snapshot fallback queries.

## Next Steps

> [card] [Updates Overview](https://docs.methodfi.com/guides/updates/overview.md)
>
> Full direct vs. snapshot walkthrough and Update object fields.

> [card] [Update Subscriptions](https://docs.methodfi.com/guides/updates/subscriptions.md)
>
> Keep balances, APRs, and due dates current automatically via webhooks.

> [card] [Handling Update Failures](https://docs.methodfi.com/guides/updates/failures.md)
>
> Retry backoff, error codes (`15001` to `15011`), and snapshot fallback.

> [card] [Payoffs API Reference](https://docs.methodfi.com/reference/accounts/payoffs/overview.md)
>
> Pull auto loan and mortgage payoff quotes with per-diem interest.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.