Create Onramp Intent
Create a reusable onramp intent. For Orders, amount, destination currency, and wallet fields are derived server-side from the Order and cannot be overridden by the client.
Authorizations
Headers
API key for authentication
Body
CoinVoyage destination currency. Use chain_id to select the destination chain and address to select a token; omit address for native assets where supported.
{
"address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"chain_id": 30000000000001
}CoinVoyage Order ID. When set, amount, currency, and wallet fields are derived server-side and must not be included.
"cuidjkhg3e289y74u5t6v123"
Crypto destination amount for a standalone onramp intent. Mutually exclusive with source_amount.
"100.00"
Fiat source amount for a standalone onramp intent. Mutually exclusive with destination_amount.
"125.00"
Fiat source currency for Stripe embedded onramp intents
usd, eur "usd"
"0xabc123..."
Response
Onramp intent created
"oi_123456789"
requires_link_auth, requires_kyc, requires_identity_verification, requires_document_verification, identity_verification_pending, session_created "requires_link_auth"
Fiat source currency for Stripe embedded onramp intents
usd, eur "usd"
"pk_test_123"
{
"address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"chain_id": 30000000000001
}"0xabc123..."
"2024-01-01T00:00:00Z"
"cuidjkhg3e289y74u5t6v123"
"cos_test_123"
"125.00"