Initiate Order
Creates a new payment order.
- Offramp (stablecoin → fiat): set
source.type = "crypto"anddestination.type = "fiat". The responseproviderAccountcontains areceiveAddressto send tokens to. - Onramp (fiat → stablecoin): set
source.type = "fiat"anddestination.type = "crypto". The responseproviderAccountcontains a virtual bank account for the user to deposit fiat into.
Authorizations
Body
Payment amount. Denomination is determined by amountIn (defaults to crypto units).
"100"
Polymorphic source — set type: "crypto" for offramp or type: "fiat" for onramp.
- Option 1
- Option 2
Polymorphic destination — set type: "fiat" for offramp or type: "crypto" for onramp.
- Option 1
- Option 2
Specifies whether amount is denominated in crypto or fiat. Defaults to crypto.
crypto, fiat Quoted exchange rate (fiat per crypto unit). Optional — protocol uses best available rate if omitted.
Fixed sender fee in crypto units. Mutually exclusive with senderFeePercent. When the effective sender fee is greater than zero, senderFeeAddress (or a fee address configured on the sender profile) is required.
"0.5"
Sender fee as a percentage of the order amount (alternative to senderFee). Mutually exclusive with senderFee. When the effective sender fee is greater than zero, senderFeeAddress (or a fee address configured on the sender profile) is required.
"1"
Optional fee recipient address for this order. Required when the effective sender fee is greater than zero
(from senderFee, senderFeePercent, or a profile-configured fee) and no fee address is configured on the
sender profile for the token. Not required when the effective fee is zero. Must be a valid address for the
order's crypto network (EVM, Tron, or Starknet).
"0xYourFeeRecipientAddress"
Your internal reference ID for this order.