> ## 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.

# Receive money

> Fund a customer vault — virtual account, wallet address, card onramp.

Receive credits your customer’s **stablecoin vault**. The `acct_` `available` balance is that vault.

It is not Checkout. Checkout is online payments on your website; those funds land on **your** business balance.

```mermaid theme={null}
flowchart LR
  payer[Payer]
  va[Virtual account]
  addr[Wallet address]
  onramp[Card onramp]
  convert[Fiat to stablecoin]
  vault[Customer vault]
  acct["acct_ available"]
  payer --> va --> convert --> vault
  payer --> addr --> vault
  payer --> onramp --> vault
  vault --> acct
```

Live virtual accounts, live wallet addresses, and onramp require hosted [verification](https://docs.easner.com/customers.md#start-verification) on that `cus_` — KYC for a person, KYB for a business, on **your** app. Your KYB in Settings, Verification tab, is access to Easner. It does not approve the customer. A `cus_` with only email and name cannot be issued a **named** virtual account. Test skips customer verification.

> [!NOTE]
>
> **Scope:** `GET` needs `accounts.read`. Verification and onramp need `accounts.write`.

## Path

**1. Create the customer**

`POST /v1/customers` issues the USD vault and `acct_`. Save both ids.

**2. Start verification**

`POST /v1/customers/:id/verification` with `{ "return_url": "https://…" }`. Test returns `{ "status": "approved", "url": null }`. Live returns a hosted KYC or KYB `url` for them to complete on your app. See [Customers](https://docs.easner.com/customers.md).

**3. Wait for approved**

Poll `GET /v1/customers/:id` or handle `customer.updated`. Live Receive returns `403` `verification_required` until `approved`.

**4. Publish one rail**

Virtual account, wallet address, or card onramp.

## Virtual account

A virtual account is **bank details that settle into the vault**. The payer uses ACH (USD) or SEPA (EUR). They never see a chain address. Easner converts the fiat to USDC or EURC and credits the same `acct_`.

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

USD:

```json theme={null}
{
  "type": "bank",
  "currency": "USD",
  "account_holder": "Ada",
  "account_number": "000123456789",
  "routing_number": "110000000",
  "bank_name": "Easner Test Bank",
  "country": "US"
}
```

EUR uses `iban` and `bic` instead of account and routing numbers.

| Mode | Result |
| - | - |
| Test | Sandbox numbers. No customer verification. Nothing moves on a real bank |
| Live | Named details after `approved`. Destination is this customer’s vault, not yours. `409` `not_available` if provisioning is not ready |

Show these details in your app. When the bank deposit settles:

1. Fiat arrives on the virtual account.
2. It converts to the vault stablecoin (USDC or EURC).
3. That stablecoin lands in the customer vault.
4. `available` rises. You get `account.updated` and `transaction.created` with `type: "deposit"`.

Do not credit your own product from the HTTP GET. Fulfil from the webhooks.

## Wallet address

A wallet address is the vault’s **token account** on Solana. Someone who already holds USDC or EURC sends it on-chain. No conversion. The same `acct_` credits.

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

```json theme={null}
{
  "data": [
    {
      "currency": "USD",
      "network": "solana",
      "address": "…",
      "asset": "USDC"
    }
  ]
}
```

| Field | Meaning |
| - | - |
| `currency` | The `acct_` ledger (`USD` or `EUR`) |
| `asset` | `USDC` for USD, `EURC` for EUR |
| `network` | `solana` |
| `address` | Token account to send to |

Live requires `approved`. An inbound transfer to that address credits the account (`type: "chain"`).

Publish `address` + `asset` + `network`. Do not ask the payer to send to a bank routing number on this rail.

## Card onramp (Express Deposit)

Card onramp funds the **same vault** from a card (and, when available, digital wallets). Destination is the issued `acct_`, not your Banking user.

You create a session with **v1**. The customer completes **Easner’s** Express Deposit UI — quote → optional identity steps → pay. Easner chooses the card processor; you never embed third-party onramp credentials. Vault KYC/KYB via `POST /v1/customers/:id/verification` stays separate (`verification_required` on live create).

```bash theme={null}
curl https://api.easner.com/v1/accounts/acct_…/onramp_sessions \
  -H "Authorization: Bearer $EASNER_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 2500,
    "currency": "usd",
    "return_url": "https://yoursite.com/funded"
  }'
```

```json theme={null}
{
  "id": "ors_…",
  "status": "open",
  "amount": 2500,
  "currency": "USD",
  "livemode": false,
  "client_secret": "easner_os_test_…",
  "url": "https://business.easner.com/receive/onramp/ors_…?client_secret=easner_os_test_…",
  "express_deposit_session_id": "…",
  "provider": "…",
  "stage": "quote"
}
```

**Hosted:** send your customer to `url`. The link carries `client_secret`; treat the full URL as private. The session id alone opens nothing.

**Inline / embed:** mount Easner’s Express Deposit embed with your publishable key + this session’s `client_secret` (same funnel as hosted; any extra identity steps stay on Easner surfaces).

| Mode | Result |
| - | - |
| Test | The hosted page completes and credits the account (`type: "onramp"`) |
| Live | Session after `approved`. Hosted or embed runs Express Deposit onto this vault. `account.updated` and `transaction.created` (`type: "onramp"`) fire when it settles |

`400` `invalid_amount` if `amount` is missing. Optional response fields `provider` (informational; do not branch on it), `stage`, and `express_deposit_session_id` are additive for support and webhooks.

## What this is not

| Product | Lands on |
| - | - |
| Receive (`deposit` / `chain` / `onramp`) | Customer vault (`acct_` with `customer`) |
| Checkout | **Your** business balance (website payments) |

Do not send your customer to first-party Banking screens or unpublished `/api` paths. In **test**, Console Accounts → **Simulate test deposit** credits the vault without `/v1` (not available in live).

## Errors

| Code | HTTP | When |
| - | - | - |
| `verification_required` | 403 | Live call before `approved` |
| `not_available` | 409 / 400 | Live details or card session not ready. `409` on `GET .../deposit_instructions`. `400` on `POST .../onramp_sessions` and `GET .../deposit_addresses` |
| `not_found` | 404 | Unknown `acct_` (or customer on verification) |
| `create_failed` | 400 | The account's customer could not be found. On these three routes that is `400`, not `404` |
| `ACCOUNT_RESTRICTED` | 403 | The business is restricted for deposits. See [API keys and scopes](https://docs.easner.com/api-keys.md#restrictions) |
| `invalid_amount` | 400 | Onramp amount missing or not a positive integer |

## Events

| Event | When |
| - | - |
| `customer.updated` | `verification_status` changed |
| `account.updated` | Vault `available` changed |
| `transaction.created` | `deposit`, `onramp`, or `chain` credit |

> [card] [Send money](https://docs.easner.com/send.md)
>
> Pay out from the same vault.


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