Skip to main content
POST
Create a quote

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.

Body

application/json
amount
integer
required

Amount in cents, above zero.

Required range: x >= 1
source
string
required

The source account id (acct_).

currency
string
default:usd

The send currency.

Required string length: 3 - 5
receive_currency
string

The currency the destination receives. Defaults to the send currency.

Required string length: 3 - 5
destination
string

The destination id (dest_), optional.

application_fee
object

Your own fee on this quote (Developer mode). Each field replaces your saved default for this quote, within the limits Easner set for your business: a fee above them is refused with application_fee_over_cap.

Response

The quote.

The price of a send. send is before the fee, fee is on top, total is what the customer pays, receive is what the destination gets.

id
string
required
Pattern: ^qt_
source
string | null
required
destination
string | null
required
fee
object
required
total
object
required
rate
number | null
required

The customer rate: receive units per send unit.

send
object
required
receive
object
required
expires_at
string<date-time>
required
status
enum<string>
required
Available options:
open,
used,
expired
livemode
boolean
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.