Create Transfer

Log in to see full request history

This endpoint is the starting point for initializing all Wyre transfers - moving and/or exchanging currency or tokens.

Auto Confirmation Settings

When autoConfirm is false, the returned transfer details can be used to present associated fees to the user before confirmation. The rates are locked for 15m if fiat-fiat or no exchange, 10m for crypto exchanges (including stablecoins). Unconfirmed transfers will expire after this locked period. If the transfer expires you'll have to reissue the transfer request and confirm the new transfer.

You may also instead automatically confirm the transfer by supply autoConfirm=true to skip the followup price confirmation.

Constructing the Transfer Request

The Transfer API offers flexibility in the intents that it accepts. There are three primary constructs that together create this functionality:

Source and Destination

The source of the transfer is the system from which funds are being pulled, while the dest is, somewhat unsurprisingly, the final destination of the funds. These parameters are SRNs and can be different types - accounts, payment methods, wallets, or blockchain addresses.

Eligibility varies across these types as well as between specific instances for usage as source or destination. e.g. a bitcoin address may be used (currently) only as a destination, while some payment methods may be able to be used for either source or destination.

Movement vs Exchange

The API offers two paramters, sourceCurrency and destCurrency, which collectively control the exchange behavior of the transfer.

If only sourceCurrency is supplied, or both are supplied and are identical, the transfer will perform no exchange and the currency will remain in its original form.

If the two are different, then an exchange is performed to convert the sourceCurrency taken from the source to the destCurrency.

Totals

There are three common ways to express the numeric totals involved in your Transfer:

Amount of money to process

You indicate the amount to move or convert. Fees are added on top of your indicated subtotal, and the resulting final total is withdrawn/requested from the source.

In this case, specify only sourceAmount, and amountIncludesFees will default to false.

Total to withdraw

You want to indicate the total amount that will be withdrawn/requested from the source, inclusive of fees.

In this case, specify sourceAmount and also specify amountIncludesFees=true.

Total to arrive

You want to indicate the total amount that will hit the destination. The system will compensate in fees and exchange rate to accomplish it.

In this case, specify only destAmount, and amountIncludesFees will default to false.

Transfer Fields

FieldDescription
exchangeRateThe quoted exchange rate for the transfer expressed as a multiplier, such that:

sourceAmount * exchangeRate = destAmount

This rate may vary on shallow markets
totalFeesThe total fees will always be represented in the source currency. To convert totalFees to the destination currency, multiply it by the exchange rate. Note that this object includes all Wyre fees and miner fees if applicable.
sourceAmountthe total amount of funds, incl. fees, used in processing this transfer
destAmountthe total amount of funds that should be received by the destination

🚧

Using Masquerade

If you're requesting a transfer for a sub-account because you're acting on behalf of the sub-account holder, you will need to use the masqueradeAs URL parameter.

Body Params
string

An SRN representing an account that the funds will be retrieved from

double
required

The amount to withdrawal from the source, in units of sourceCurrency. Only include sourceAmount OR destAmount, not both.

string
required

The currency (ISO 3166-1 alpha-3) to withdrawal from the source wallet

string
required

An account, wallet, or digital currency address or bank account to send the digital currency to. For bitcoin address use "bitcoin:[address]".

double
required

Specifies the total amount of currency to deposit (as defined in depositCurrency). Only include sourceAmount OR destAmount, not both.

string
required

The currency (ISO 3166-1 alpha-3) to deposit. if not provided, the deposit will be the same as the withdrawal currency (no exchange performed)

string

An optional user visible message to be sent with the transaction.

string

An optional url that Wyre will POST a status callback to (see Callbacks for more information)

boolean

An optional parameter to automatically confirm the transfer order.

string

an optional custom ID to tag the transfer

boolean

Optional. When true, the amount indicated (source or dest) will be treated as already including the fees

boolean

creates a quote transfer object, but does not execute a real transfer.

boolean

When true, disables outbound emails/messages to the destination

Responses

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json