Skip to main content

The RampOrder object

Represents a fiat-to-crypto on-ramp order. Ramp orders track the conversion of fiat currency to cryptocurrency through a third-party on-ramp provider.

Fields

FieldTypeDescription
id
REQUIRED
stringUnique identifier for the ramp order
checkoutSessionId
REQUIRED
stringAssociated checkout session ID
paymentIntentId
REQUIRED
stringAssociated payment intent ID
provider
REQUIRED
stringOn-ramp provider handling the order
fiatAmount
REQUIRED
numberFiat amount being converted
fiatCurrency
REQUIRED
stringFiat currency code
cryptoAmount
REQUIRED
numberCryptocurrency amount to be received
cryptoCurrency
REQUIRED
stringCryptocurrency code
kycStatus
REQUIRED
KycStatusKYC verification status for this order KycStatus
paymentMethod
REQUIRED
'card'| 'bank'| 'local'Payment method used
status
REQUIRED
'pending'| 'pending_provider'| 'pending_funds'| 'confirmed'| 'matched'| 'cleared'| 'failed'Current status of the ramp order
creditSplit
OPTIONAL
{ /** Amount immediately available */ available: number /** Amount pending confirmation */ pending: number }Split of credited amounts between available and pending
reserveAmount
OPTIONAL
numberAmount reserved for this order
metadata
OPTIONAL
Record<string, unknown>Custom key-value data attached to the order
createdAt
REQUIRED
stringISO 8601 timestamp when the order was created
updatedAt
REQUIRED
stringISO 8601 timestamp when the order was last updated

Example

{
"id": "obj_1a2b3c",
"checkoutSessionId": "checkoutsession_1a2b3c",
"paymentIntentId": "paymentintent_1a2b3c",
"provider": "string",
"fiatAmount": 5000,
"fiatCurrency": "USD",
"cryptoAmount": 5000,
"cryptoCurrency": "USD",
"kycStatus": "pending",
"paymentMethod": "card",
"status": "pending",
"createdAt": "2026-01-15T09:30:00Z",
"updatedAt": "2026-01-15T09:30:00Z"
}