- 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. 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_secretso you can build and test the authorize step without email or a code. Test confirms only move the test book.
Scope:
POST create and cancel need transfers.write. GET needs accounts.read. Confirm uses the customer’s authorize secret, never a merchant key.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. 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.Scope:
transfers.writeHow to read a quote
The fields are on Create a quote. 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
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. Sendapplication_fee with a quote to replace your saved fee for that quote:
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:
sourceanddestinationare not looked up. A made-up id still returns a quote. They are checked when you create the transfer, which then answers400transfer_failed.currencyis not matched to the source account here. The check iscurrency_mismatchon the transfer.statusin the response is derived when the quote is returned:usedonce a transfer that is notfailedreferences it,expiredafterexpires_at, otherwiseopen. A new quote is alwaysopen, 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_usedon the next transfer) and the clock.- The price is for this
sourceanddestinationonly. A transfer for a different pair is refused withquote_mismatch.
recipientId or formSessionId.
Expected
- Show
sendandreceiveto 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-Keyis not applied here. - There is no
GET /v1/quotes/:id— store the id from create. - Then create a transfer below with
{ "quote": "qt_…" }. The customer confirms before anything leaves the vault.
Fields
Every field is on Create a transfer and Retrieve a transfer. 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. 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:
client_secret, and next_action.url has no secret. The customer gets the link by email:
available into pending. Confirm clears pending and sends. Expire, fail, or cancel releases the hold.
Create from a quote
Always sendIdempotency-Key.
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.
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). Leave it out, or send "email", and Easner emails the link.
Create without a quote
You may passsource, 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) 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 quotedreceive 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 show the send and the fee as two lines.
Confirm
After201 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 test mode you can also use the in-app path with the test client_secret and no code.
In-app (test mode)
Pass the testclient_secret to your user session. Show amount, currency, and a masked destination. Review:
destination_summary.label is masked (last four of account / IBAN / phone / wallet). No client_secret on this response.
Then confirm — no easner_sk_*:
-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:
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:
POST /v1/transfers/:id/codewith theclient_secret. Easner emails the customer a code. The call returns where it went (email_masked), never the code.POST /v1/transfers/:id/confirmwith theclient_secretand thecodethe customer typed.
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: opennext_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.
Cancel
Secret key, only whilerequires_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).
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
Events
Transactions
Reconcile sends and receives against
GET /v1/transactions.