onramp
Create Onramp Session
Changed onCreate a headless Stripe embedded onramp session from a server-held onramp intent using the server-held Link OAuth access token. If Stripe identity or KYC action is required, this endpoint returns 422 with action fields in error.details, including status, reason, kyc_next_step, kyc_status, kyc_required, identity_verification_required, and identity_verification_status.
post/onramp/intents/{intent_id}/session
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.
Path parameters
intent_idstring required
Headers
X-API-KEYstring required
API key for authentication
Request body
Example request
{
"auth_intent_id": "lai_test_123",
"crypto_customer_id": "ccus_test_123",
"payment_token": "cpt_test_123"
}Response
Headless onramp session created
Example response
{
"quote": {
"network_fee_amount": "0.07",
"source_amount": "100.00",
"source_currency": "usd",
"source_total_amount": "104.11",
"transaction_fee_amount": "4.04"
}
}Changes
- info
added the optional property
to the response with the status
- info