Skip to main content
POST
Create a transfer

Authorizations

Authorization
string
header
default:easner_sk_test_…
required

A secret key, easner_sk_test_… or easner_sk_live_…, as Authorization: Bearer. Each key has one business, one mode and fixed scopes. Transfer routes also accept a transfer's easner_ta_… secret for the customer.

Headers

Idempotency-Key
string

Up to 255 characters. Keys are scoped to your business and mode. Longer is 400 invalid_idempotency_key. Honoured only on the operations marked idempotent.

Maximum string length: 255

Body

application/json
quote
string

A quote id (qt_). With a quote, the amount and currency come from it.

source
string

The source account id (acct_).

destination
string

The destination id (dest_).

amount
integer

Amount in cents. Needed without a quote.

Required range: x >= 1
currency
string
Required string length: 3 - 5
authorization
enum<string>
default:email

How the customer reaches the authorize step in live. email (default): Easner emails them a link. session: no link is emailed, and you open the step in your own app with POST /v1/transfers/:id/authorization_sessions.

Available options:
email,
session

Response

The transfer, in its current state.

A send (tr_). next_action is set while the customer must authorize. client_secret is returned once, in test only.

id
string
required
Pattern: ^tr_
quote
string | null
required
source
string | null
required
destination
string | null
required
amount
integer
required

The principal in cents, before the fee.

fee
object
required
total
object
required
rate
number | null
required
receive
object | null
required
currency
string
required
status
string
required

For example requires_action, completed, failed or canceled.

livemode
boolean
required
created
string<date-time>
required
expires_at
string<date-time> | null
required
next_action
object | null
required
fee_details
object

Your own breakdown of fee, for you only (the customer sees one fee). easner.amount + application.amount = fee.amount. application_fx_margin is inside the rate, not in fee.

client_secret
string

The one-time test-mode authorize secret. Only on create, in test.