onramp
Create Onramp Intent
Changed onCreate 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.
post/onramp/intents
Request
- Base URLhttps://api.coinvoyage.io/v3
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-API-KEYstring required
API key for authentication
Request body
Example request
{
"destination_amount": "100.00",
"destination_currency": {
"address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"chain_id": 30000000000001
},
"order_id": "cuidjkhg3e289y74u5t6v123",
"source_amount": "125.00",
"source_currency": "usd",
"wallet_address": "0xabc123..."
}Response
Onramp intent created
Example response
{
"destination_currency": {
"address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"chain_id": 30000000000001
},
"expires_at": "2024-01-01T00:00:00Z",
"id": "oi_123456789",
"order_id": "cuidjkhg3e289y74u5t6v123",
"session_id": "cos_test_123",
"source_amount": "125.00",
"source_currency": "usd",
"status": "requires_link_auth",
"stripe_publishable_key": "pk_test_123",
"wallet_address": "0xabc123..."
}Changes
- warning
added the new
20000000000002.00enum value to the/response property for the response status - info
added the new
20000000000002.00enum value to the request property/
- warning
- warning
added the new
4663.00enum value to the/response property for the response status - info
added the new
4663.00enum value to the request property/
- warning