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

# Transfers

> Create a send from a customer account. The customer authorizes it.

A transfer sends from a customer **vault** to a [payment method](https://docs.easner.com/corridors.md). Your secret key creates the transfer. It does not move the vault. Only the customer can authorize it.

* **Live:** the customer reviews the send and enters a 6-digit code Easner emails them. Two ways to get them there: Easner emails a link (the default), or you open the authorize page from your own app with an [authorization session](#in-your-own-app). Either way the code goes to the customer's email only, so your server, or anyone holding your key, cannot approve a send on the customer's behalf.
* **Test:** the create response includes a `client_secret` so you can build and test the authorize step without email or a code. Test confirms only move the test book.

> [!NOTE]
>
> **Scope:** `POST` create and cancel need `transfers.write`. `GET` needs `accounts.read`. Confirm uses the customer's authorize secret, never a merchant key.

Live transfers need a customer with an email. A source account without one returns `403` `customer_action_required`. If the authorization email cannot be sent, the transfer fails, the hold is released and the call returns `409` `not_available`.

Send restrictions apply. A restricted business cannot create transfers.

A single transfer can be at most 50,000 in the account currency (USD or EUR). A larger amount returns `400` `amount_too_large` when you create the quote or the transfer, and nothing is held. Split it into smaller transfers.

Live customers also have daily and monthly [send limits](https://docs.easner.com/customers.md#send-limits). A quote, transfer or confirm that would go past what is left returns `400` `limit_exceeded`; `GET /v1/customers/:id` shows what is left.

## Quotes

Prefer quote-then-transfer so amounts are locked before you create the transfer below.

A quote locks the price of a send: what leaves the customer, the fee on top, the rate, and what the destination receives. Create a quote, then execute it with a transfer before it expires.

Quotes expire **15 minutes** after create. Expired quotes cannot be transferred.

> [!NOTE]
>
> **Scope:** `transfers.write`

### How to read a quote

The fields are on [Create a quote](https://docs.easner.com/api-reference/quotes/create-a-quote.md). That page is the contract.

`send` is the amount you asked to send, before the fee. `fee` sits on top of `send` and is the one number the customer sees. It covers what Easner charges and your own `application_fee` when you set one. `total` is `send` plus `fee`: what the customer authorizes and what is debited. `receive` is what the destination gets. `rate` is receive units per send unit, `1` for a same-currency send.

`fee_details` is for you only. `easner` is Easner's price, `application` is your fee inside `fee`, and `application_fx_margin` is your FX margin inside `rate`, not inside `fee`. `easner.amount + application.amount = fee.amount`. The customer sees one fee.

Every quote is priced the way Easner prices the same send in the Business app: the same fee, the same rate, in test and in live. The fee is added on top of `send`, so the customer pays `total`. Show your user `fee`, `rate`, `total` and `receive` before you transfer. Bank and mobile-money corridors are listed on `GET /v1/payment_methods`.

A quote needs a `destination`: the corridor sets the price. There is no one-for-one quote.

### Create

```bash theme={null}
curl https://api.easner.com/v1/quotes \
  -H "Authorization: Bearer $EASNER_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 4900,
    "currency": "usd",
    "receive_currency": "usd",
    "source": "acct_…",
    "destination": "dest_…"
  }'
```

| Field | Required | Notes |
| - | - | - |
| `amount` | yes | Positive integer cents |
| `source` | yes | Customer vault (`acct_`) to debit |
| `currency` | no | Defaults to `USD` |
| `receive_currency` | no | Defaults to send currency |
| `destination` | no | Destination to credit |
| `application_fee` | no | `{ bps, fixed }`, both optional. Your own fee on this quote, in Developer mode. See [Charge your own fee](#charge-your-own-fee) |

`201`. `400` `invalid_application_fee` if `application_fee` is not `{ bps, fixed }` with whole, non-negative numbers. `400` `application_fee_over_cap` if it is above the limits Easner set for your business. `403` `application_fee_unavailable` if your business is not in Developer mode. `400` `invalid_amount` if `amount` is not a positive integer (it is rounded to a whole cent first). `400` `invalid_source` if `source` is missing. `400` `invalid_currency` if `currency` or `receive_currency` is not a 3 to 5 letter code. `400` `amount_too_large` if the amount is above the per-transfer limit of 50,000. `400` `invalid_destination` if `destination` is missing or cannot be priced. `503` `pricing_unavailable` if the price cannot be worked out right now: nothing is quoted, retry shortly. `400` `create_failed` if the quote cannot be stored.

### Charge your own fee

In Developer mode your business can charge your customers a fee and an FX margin on top of Easner's price. Save your defaults in Console, Platform fees (fee %, fixed fee and FX margin, by product and by customer type). Every quote uses them. Send `application_fee` with a quote to replace your saved fee for that quote:

```json theme={null}
{ "application_fee": { "bps": 120, "fixed": 150 } }
```

| Field | Notes |
| - | - |
| `bps` | Your fee, in basis points of `amount`. `120` is 1.20% |
| `fixed` | A per-send fee in **USD cents**. `150` is \$1.50 |

Each field replaces its own saved value: send only `bps` and your saved fixed fee still applies. Your saved FX margin always applies; it cannot be set per quote. The fee is checked against the limits Easner set for your business when the quote is made, and a fee above them is refused, never reduced. A quote keeps its price: changing your saved fees applies to new quotes only.

Your fee is added to `fee` (the customer pays one fee), your FX margin is taken from `rate`, and `send` stays what you asked for. Read your own split in `fee_details`. Your customer approves one processing fee and one rate on Easner's authorization screen. Easner's price does not change.

You earn on completed live transfers, weekly, into your own balance: see Platform, Earnings in Console. Test transfers move and earn nothing. Nothing is charged until Easner turns platform fees on for your account.

What the API does **not** check at quote time:

* `source` and `destination` are not looked up. A made-up id still returns a quote. They are checked when you create the transfer, which then answers `400` `transfer_failed`.
* `currency` is not matched to the source account here. The check is `currency_mismatch` on the transfer.
* `status` in the response is derived when the quote is returned: `used` once a transfer that is not `failed` references it, `expired` after `expires_at`, otherwise `open`. A new quote is always `open`, and there is no endpoint to read a quote again, so a quote you hold can be used up or expired without you being told. Track that from your transfers (`quote_used` on the next transfer) and the clock.
* The price is for this `source` and `destination` only. A transfer for a different pair is refused with `quote_mismatch`.

The body has no `recipientId` or `formSessionId`.

### Expected

* Show `send` and `receive` to your user before you transfer.
* If the quote is expired, create a new one. Do not reuse the id.
* Creating a quote twice creates two quotes. `Idempotency-Key` is not applied here.
* There is no `GET /v1/quotes/:id` — store the id from create.
* Then create a [transfer](#fields) below with `{ "quote": "qt_…" }`. The customer confirms before anything leaves the vault.

## Fields

Every field is on [Create a transfer](https://docs.easner.com/api-reference/transfers/create-a-transfer.md) and [Retrieve a transfer](https://docs.easner.com/api-reference/transfers/retrieve-a-transfer.md). Those pages are the contract.

`amount` is the principal, before the fee. `fee` sits on top. `total` is `amount` plus `fee`: held on create, authorized by the customer, debited on confirm, released if the transfer fails. `fee_details` is for you only, the same split as on the [quote](#how-to-read-a-quote). The customer's authorize screen never includes it. `client_secret` (`easner_ta_test_…`) is returned once, on create, in test. Live never returns it.

While `status` is `requires_action`, `next_action` is `{ "type": "authorize", "url", "delivery" }`. `delivery` is `customer_email`, `client_secret` or `authorization_session`. In live, `url` is null when you created the transfer with `authorization: "session"`.

Test mode:

```json theme={null}
{
  "id": "tr_…",
  "quote": "qt_…",
  "source": "acct_…",
  "destination": "dest_…",
  "amount": 4900,
  "currency": "USD",
  "status": "requires_action",
  "expires_at": "2026-09-20T00:15:00.000Z",
  "next_action": {
    "type": "authorize",
    "url": "https://business.easner.com/send/authorize/tr_…?client_secret=easner_ta_test_…",
    "delivery": "client_secret"
  },
  "client_secret": "easner_ta_test_…",
  "livemode": false,
  "created": "2026-09-20T00:00:00.000Z"
}
```

Live mode has no `client_secret`, and `next_action.url` has no secret. The customer gets the link by email:

```json theme={null}
{
  "id": "tr_…",
  "status": "requires_action",
  "next_action": {
    "type": "authorize",
    "url": "https://business.easner.com/send/authorize/tr_…",
    "delivery": "customer_email"
  },
  "livemode": true
}
```

Create locks `available` into `pending`. Confirm clears pending and sends. Expire, fail, or cancel releases the hold.

## Create from a quote

Always send `Idempotency-Key`.

```bash theme={null}
curl https://api.easner.com/v1/transfers \
  -H "Authorization: Bearer $EASNER_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"quote":"qt_…"}'
```

`201` `requires_action`. In live mode, tell your user to check their email. In test mode, pass `client_secret` to your test user session. Never confirm with the secret key.

A replay with the same idempotency key returns the original transfer in its current state with `201`, never creates a second one and never emails the customer again. In test mode the replay carries the same `client_secret` as the first response. A live transfer never shows one. The body is compared: the same key with a different `quote`, `source`, `destination`, `amount` or `currency` is `409` `idempotency_mismatch`. Fields you leave out of the replay are not compared, and with a `quote` the amount and currency come from the quote. Keys are scoped to your business and mode.

Not-found style inputs on create (an unknown or expired `quote`, an unknown `source` account, an unknown `destination`, a missing or non-positive `amount`) all answer `400` `transfer_failed` with a message that says which one. They are not `404`. See [Errors](https://docs.easner.com/errors.md#banking).

### Choose how the customer authorizes

Add `"authorization": "session"` to the create call to show the authorize step in your own app. Easner then sends no link email, and you ask for the page when the customer is ready (see [In your own app](#in-your-own-app)). Leave it out, or send `"email"`, and Easner emails the link.

## Create without a quote

You may pass `source`, `destination`, `amount`, and `currency` instead of `quote`. The server then makes a quote inside the call and prices the transfer exactly as a quote would, and the response carries the header `Easner-Deprecation: quote-required`. `quote` becomes required in a later release, so create a quote first and show your user the fee before you transfer.

With no `quote`, you may also send `application_fee` (`{ bps, fixed }`, see [Charge your own fee](#charge-your-own-fee)) and it prices the quote the server makes here. Sending it together with `quote` is `400` `invalid_application_fee`: the fee is already fixed on the quote.

A transfer to a destination always has a price: `amount` is the principal and the fee is added on top. If the price cannot be worked out, the call answers `503` `pricing_unavailable` and nothing is held.

## What the customer pays

The customer authorizes the **total**: the amount, the processing fee, the rate and what the destination receives are shown on the authorize page and in the email. The recipient always gets the quoted `receive` amount. If the cost of the send moves after the quote by more than Easner can absorb, confirm fails with `409` `price_changed`, the hold is released and the customer is not charged. Create a new quote and try again.

When a transfer completes, the customer's [transactions](https://docs.easner.com/receive.md) show the send and the fee as two lines.

## Confirm

After `201` `requires_action`, the customer must authorize. In live mode they need the authorize secret and the emailed code, reached through the emailed link or [your own app](#in-your-own-app). In test mode you can also use the in-app path with the test `client_secret` and no code.

```mermaid theme={null}
flowchart LR
  create[POST transfers]
  action[requires_action]
  inApp[In-app client_secret]
  hosted[next_action.url]
  done[completed]
  create --> action
  action --> inApp --> done
  action --> hosted --> done
```

### In-app (test mode)

Pass the test `client_secret` to your user session. Show `amount`, `currency`, and a masked destination. Review:

```bash theme={null}
curl https://api.easner.com/v1/transfers/tr_… \
  -H "Authorization: Bearer easner_ta_…"
```

```json theme={null}
{
  "id": "tr_…",
  "quote": "qt_…",
  "source": "acct_…",
  "destination": "dest_…",
  "amount": 4900,
  "currency": "USD",
  "status": "requires_action",
  "livemode": false,
  "created": "2026-09-20T00:00:00.000Z",
  "expires_at": "2026-09-20T00:15:00.000Z",
  "next_action": {
    "type": "authorize",
    "url": "https://business.easner.com/send/authorize/tr_…"
  },
  "destination_summary": { "type": "bank", "label": "Bank ···6789" }
}
```

`destination_summary.label` is masked (last four of account / IBAN / phone / wallet). No `client_secret` on this response.

Then confirm — **no** `easner_sk_*`:

```bash theme={null}
curl https://api.easner.com/v1/transfers/tr_…/confirm \
  -H "Content-Type: application/json" \
  -d '{"client_secret":"easner_ta_…"}'
```

In live, add the emailed code: `-d '{"client_secret":"easner_ta_…","code":"123456"}'`. You can also send `Authorization: Bearer easner_ta_…` with an empty or omitted body secret. A merchant key returns `403` `customer_action_required`. Replay after `completed` returns the same transfer.

### In your own app

For a transfer created with `"authorization": "session"` (or any open transfer), your server asks for a session when the customer taps send:

```bash theme={null}
curl https://api.easner.com/v1/transfers/tr_…/authorization_sessions \
  -H "Authorization: Bearer $EASNER_SECRET_KEY" \
  -X POST
```

```json theme={null}
{
  "object": "authorization_session",
  "transfer": "tr_…",
  "client_secret": "easner_ta_live_…",
  "url": "https://business.easner.com/send/authorize/tr_…?client_secret=easner_ta_live_…",
  "expires_at": "2026-09-20T00:15:00.000Z",
  "livemode": true
}
```

Open `url` for the customer in a popup, a browser tab or a web view. The page shows the amount, destination and status, emails the customer a 6-digit code when they select **Authorize**, and confirms once they enter it. When it finishes it posts `{ "type": "easner.transfer.authorization", "transfer": "tr_…", "status": "completed" }` to the window that opened it (`window.opener`), so your app can move on; still fulfil from the `transfer.completed` webhook.

The `client_secret` alone cannot approve a live send. The code goes to the customer's email, not to you, and works once, expires after 10 minutes and allows 5 wrong tries. Asking again, or opening an earlier email link, replaces the earlier secret. The page refuses to be framed, by design: a money-authorization screen that another site can overlay invites clickjacking. Use a popup, a browser tab or a web view; the popup reports the result to your page as above.

Building your own screen instead? Call the same endpoints with the customer's secret, never your key:

1. `POST /v1/transfers/:id/code` with the `client_secret`. Easner emails the customer a code. The call returns where it went (`email_masked`), never the code.
2. `POST /v1/transfers/:id/confirm` with the `client_secret` and the `code` the customer typed.

A wrong code is `400` `invalid_code`. A missing, expired or used code is `403` `code_required`: send a new one. Codes are limited to 3 per transfer, 30 seconds apart (`429` `code_rate_limited`).

### Hosted URL

Live: the customer opens the link in the authorization email (it carries the secret), selects **Authorize**, and enters the code Easner emails them. Test: open `next_action.url`, which includes the test secret, and authorize with no code. Same review and confirm, hosted.

Test confirm debits the test book. Live confirm sends from the customer vault.

Fulfil from `transfer.completed`, not from create `201`. Tick `transfer.failed` if you handle expiry or rail failure. Full payloads: [Webhook events](https://docs.easner.com/webhook-events.md#banking).

## Cancel

Secret key, only while `requires_action`. Releases the hold. Already `canceled` returns the same transfer. Any other status is `400` `transfer_failed`. Cancel sends no webhook (there is no `transfer.canceled` event).

```bash theme={null}
curl https://api.easner.com/v1/transfers/tr_…/cancel \
  -H "Authorization: Bearer $EASNER_SECRET_KEY" \
  -X POST
```

## Retrieve and list

`GET /v1/transfers/:id` → Transfer. `404` `not_found` if the id does not exist for your business in the key's mode: a test key never reads a live transfer and a live key never reads a test one (the same rule as list and cancel). Merchant GET never returns `client_secret`. Review (`destination_summary`) needs Bearer `easner_ta_…`, which finds the transfer by its secret.

`GET /v1/transfers` → `{ "data": [ Transfer, … ] }` newest first, up to 100. There is no next page and no filter.

## Status

| Status | Expected |
| - | - |
| `requires_action` | Created and locked. Webhook `transfer.created`. Customer must confirm |
| `processing` | The customer confirmed and Easner is sending from the vault. Usually brief. It stays here when the outcome of the send is unknown, with the funds held, until Easner reconciles it. No webhook until it resolves. Do not retry or create a second send |
| `completed` | Vault sent. Webhook `transfer.completed` |
| `failed` | Hold released, or send rolled back. Webhook `transfer.failed` |
| `canceled` | You canceled before confirm. Hold released. No webhook is sent for cancel: read the status from the cancel response or `GET /v1/transfers/:id` |

## Events

| Event | `data` |
| - | - |
| `transfer.created` | The transfer (no `client_secret`), with `next_action` set |
| `transfer.completed` | The transfer |
| `transfer.failed` | Transfer plus `error` |
| `transaction.created` | The ledger row |
| `account.updated` | New available / pending |

> [!WARNING]
>
> Fulfil on `transfer.completed`, not on the HTTP `201` from create.

> [card] [Transactions](https://docs.easner.com/transactions.md)
>
> Reconcile sends and receives against `GET /v1/transactions`.


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