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

# Accounts

> A currency view of your customer’s isolated stablecoin vault.

An account is not a float you invent and not money Easner takes onto its own balance. It is the **USD or EUR view** of that customer’s isolated vault.

Creating a [customer](https://docs.easner.com/customers.md) issues USD. Open EUR with `POST /v1/accounts` and the `cus_` id. Both currencies sit on the **same customer vault owner** — two ledger views, two on-chain vaults.

| `currency` | Stablecoin | Chain | What `available` means |
| - | - | - | - |
| `USD` | USDC | Solana | USDC in the USD vault, in cents |
| `EUR` | EURC | Solana | EURC in the EUR vault, in cents |

The vault is isolated to that customer. You never receive a key. Deposit addresses and bank details are issued against this vault. The customer authorizes send from their vault. `available` is that vault, in cents.

```mermaid theme={null}
flowchart TB
  cus[cus_]
  usdVault[USD vault USDC Solana]
  eurVault[EUR vault EURC Solana]
  usdAcct["acct_ USD available"]
  eurAcct["acct_ EUR available"]
  cus --> usdVault --> usdAcct
  cus --> eurVault --> eurAcct
```

Checkout does **not** credit these accounts. Checkout is online payments on your website; those funds land on your business balance. [Receive](https://docs.easner.com/receive.md) credits the `acct_` you pass.

In Console, Accounts is the vault inspector for the current Test or Live mode: `available`, deposit instructions, and the wallet QR.

> [!NOTE]
>
> **Scope:** `GET` needs `accounts.read`. `POST` needs `accounts.write`.

## Fields

Every field on the account is on [Retrieve an account](https://docs.easner.com/api-reference/accounts/retrieve-an-account.md). That page is the contract. `available: 4900` is **\$49.00 of USDC** in that customer’s USD vault.

## Show the balance

Show a customer's balance like this:

* Divide the cents by 100 and show it with the currency symbol: `$24,190.00`, `€1,250.00`. A balance always shows cents, even when it is a whole amount. Never show `USDC` or `EURC` to the customer: they see dollars and euros.
* Show `available` as the balance. When `pending` is above zero, show it as a separate line ("\$12.00 pending"), because it is on its way in or held for a send that is not complete yet. Do not add it to `available`.
* A negative amount uses a true minus (`−$5.00`), not a hyphen.
* Refresh on the `account.updated` webhook instead of polling. Read `GET /v1/accounts/:id` when the screen opens and after the customer finishes a send.

## How money gets into the vault

Three Receive rails, one balance.

| Rail | What you publish | What arrives in the vault | `transaction.type` |
| - | - | - | - |
| **Virtual account** | ACH / SEPA details | Fiat converts to USDC or EURC, then lands in the vault | `deposit` |
| **Wallet address** | Solana token account | USDC or EURC sent on-chain | `chain` |
| **Card onramp** | Hosted session URL | Card funds the same vault | `onramp` |

The virtual account is **not** a second balance. It is a bank front door onto this vault. The payer sends dollars or euros. Easner converts to the vault stablecoin and credits `available`. Same `acct_`. See [Receive](https://docs.easner.com/receive.md).

The wallet address is the vault’s **token account** for that asset (USDC for USD, EURC for EUR). A chain payment to that address is a direct credit. No conversion.

## List

```bash theme={null}
curl https://api.easner.com/v1/accounts \
  -H "Authorization: Bearer $EASNER_SECRET_KEY"
```

Issued accounts only (accounts that belong to a customer). Filter with `?customer=cus_…`. Newest first, and paged like every list: `limit` (default 20, maximum 100), `starting_after` and `ending_before`. See [v1 reference](https://docs.easner.com/reference.md#pagination-and-filtering). The `has_more` field says whether a next page exists.

## Open

`POST /v1/accounts` with `{ "currency": "USD", "customer": "cus_…" }`.

```bash theme={null}
curl https://api.easner.com/v1/accounts \
  -H "Authorization: Bearer $EASNER_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"currency":"EUR","customer":"cus_…"}'
```

`201` and the account. Opening the same currency for the same customer returns the existing account (same vault).

`400` `invalid_currency` if `currency` is missing or not 3 to 5 letters. `400` `invalid_customer` if `customer` is missing. `404` `not_found` if the customer is not on this key. A restricted business gets `403` `ACCOUNT_RESTRICTED` (see [API keys and scopes](https://docs.easner.com/api-keys.md#restrictions)).

## Retrieve

`GET /v1/accounts/:id` → Account. `404` if the id is not on this key.

## Rails on an account

| Call | Job |
| - | - |
| `GET /v1/accounts/:id/deposit_instructions` | Virtual-account bank details for this vault |
| `GET /v1/accounts/:id/deposit_addresses` | Chain token account for this vault |
| `POST /v1/accounts/:id/onramp_sessions` | Hosted card onramp onto this vault |

Live bank details, chain addresses, and onramp require the customer’s [verification](https://docs.easner.com/customers.md#start-verification) (`verification_status = approved`) — KYC or KYB on your app. Test skips that.

## Events

| Event | When |
| - | - |
| `account.updated` | `available` or `pending` changed, and once when the account is first created (for a new customer, the issued USD account) |
| `transaction.created` | A credit or debit was written |
| `payment.available` | Checkout funds became usable on **your** business balance |

## Expected

* Treat `available` as vault inventory, not a synthetic book.
* Read `available` before you quote a send.
* Pass `customer` on every create.
* Do not treat Checkout settlement as a credit to this `acct_`.


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