Skip to main content
POST

Authorizations

API-Key
string
header
required

Body

application/json
amount
string
required

Payment amount. Denomination is determined by amountIn (defaults to crypto units).

Example:

"100"

source
object
required

Polymorphic source — set type: "crypto" for offramp or type: "fiat" for onramp.

destination
object
required

Polymorphic destination — set type: "fiat" for offramp or type: "crypto" for onramp.

amountIn
enum<string>

Specifies whether amount is denominated in crypto or fiat. Defaults to crypto.

Available options:
crypto,
fiat
rate
string

Quoted exchange rate (fiat per crypto unit). Optional — protocol uses best available rate if omitted.

senderFee
string

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.

Example:

"0.5"

senderFeePercent
string

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.

Example:

"1"

senderFeeAddress
string

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 source or destination network (a Solana address for Solana orders). Fees on some networks are collected and paid out to it in batches rather than per order.

Example:

"0xYourFeeRecipientAddress"

transactionFeePayer
enum<string>

Who pays the order's transaction fee (its network cost). Overrides the token's setting in your dashboard, which defaults to sender.

  • sender: the transaction fee comes out of your sender fee first; your customer only pays the difference when your fee is smaller. You earn max(0, fee − transactionFee), and the customer sends amount + max(fee, transactionFee).
  • customer: your customer pays the transaction fee on top of your full sender fee.

With no sender fee, both modes are the same.

Available options:
sender,
customer
Example:

"sender"

reference
string

Your internal reference ID for this order.

Response

Order created

status
string
Example:

"success"

message
string
Example:

"Payment order created successfully"

data
object

Response returned when creating an order