Skip to main content
POST
/
ramp
/
order
Create a new order
curl --request POST \
  --url https://api.etherfuse.com/ramp/order \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "orderId": "123e4567-e89b-12d3-a456-426614174000",
  "bankAccountId": "123e4567-e89b-12d3-a456-426614174001",
  "publicKey": "9Qx7r...",
  "blockchain": "solana",
  "fiatAmount": 100,
  "tokenAmount": 100,
  "direction": "onramp",
  "memo": "Test order",
  "optionalPayerAccount": "GbeZPbC8CjHfNb1my4ka8oUJCBZFasCoT422JKztJEWB"
}'
{
  "orderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "depositClabe": "<string>",
  "depositAmount": 123
}

Authorizations

Authorization
string
header
required

API key for authentication

Body

application/json
orderId
string<uuid>

Order ID

bankAccountId
string<uuid>

Bank account ID

publicKey
string

Public key

blockchain
enum<string>

Blockchain type

Available options:
solana
fiatAmount
number

Amount in fiat currency (required for onramp)

tokenAmount
number

Total tokens to offramp (required for offramp)

direction
enum<string>

Transaction direction

Available options:
onramp,
offramp
memo
string | null

Optional memo for the transaction

optionalPayerAccount
string | null

Optional payer account for the order fees

Response

Order created successfully

orderId
string<uuid>

Unique identifier for the order

depositClabe
string

Deposit CLABE number

depositAmount
number

Amount in fiat currency