POST
/
onramp
curl --request POST \
  --url https://api.sandbox.sardine.ai/v1/onramp \
  --header 'Content-Type: application/json' \
  --data '{
  "userId": "abc123",
  "fromCurrency": "USD",
  "toCurrency": "ETH",
  "amount": 100,
  "chain": "ethereum",
  "paymentMethodId": "pay-987654321",
  "depositAddress": "0xabc123def456ghi789jkl000mno111pqrs222tuv"
}'
{
  "orderId": "ONR-20250417-001",
  "status": "pending",
  "estimatedDelivery": "2025-04-17T15:45:00Z"
}

Body

application/json
userId
string
required

ID of the user placing the onramp order

fromCurrency
string
required

The fiat currency the user is paying with (e.g., USD)

toCurrency
string
required

The cryptocurrency to be delivered (e.g., ETH)

amount
number
required

Amount in fiat currency to convert

chain
string
required

Blockchain network to use (e.g., ethereum, polygon)

paymentMethodId
string
required

ID of the user's selected payment method

depositAddress
string
required

Wallet address where the crypto will be delivered

Response

200 - application/json
Onramp order successfully created
orderId
string

Unique identifier for the onramp order

status
string

Current status of the order (e.g., pending, completed)

estimatedDelivery
string

Estimated delivery time for crypto