Skip to main content
POST
Create Ramp checkout session

Authorizations

API-Key
string
header
required

Your public API key. Identifies the partner making the request.

API-Nonce
string
header
required

Monotonically increasing nonce included in the request signature.

API-Sign
string
header
required

HMAC signature over the request, computed with your private key.

Headers

Idempotency-Key
string

Client-generated key for safe retries. Sent as the Idempotency-Key HTTP header.

Required string length: 1 - 128

Path Parameters

user_id
string
required

ID of the user the checkout acts on behalf of. This is the user's IIBAN-derived public identifier.

Required string length: 14 - 42

Body

application/json

Request to create a token-bound Ramp checkout session.

The from/to pairing determines the Ramp direction. Only on-ramp (from fiat, to crypto or stablecoin) is currently supported; other pairings are rejected with 400 BadRequest.

from
object
required

Source side of the checkout — the asset the user pays with.

to
object
required

Destination side of the checkout — the asset the user receives.

affiliate_fee_bps
string

Affiliate fee in basis points to attribute to the partner (0-10000 where 100 = 1%).

Required string length: 1 - 5
Pattern: ^(10000|[0-9]{1,4})$
country
string

ISO 3166-1 alpha-2 country code. Use GET /v1/ramp/countries to discover supported values.

Required string length: 2
Pattern: ^[A-Za-z]{2}$
subdivision
string

ISO 3166-2 subdivision code suffix (e.g., CA for California when country is US). Use GET /v1/ramp/countries to discover supported values.

Required string length: 1 - 64
Pattern: ^[A-Za-z0-9-]+$
redirect_url
string

URL to redirect the user after completing checkout successfully.

Required string length: 1 - 255
failure_url
string

URL to redirect the user after a failed checkout.

Required string length: 1 - 255
external_user_id
string

Optional partner-supplied user identifier.

Required string length: 1 - 64
external_partner_id
string

Optional partner-supplied partner identifier.

Required string length: 1 - 64
external_transaction_id
string

Optional partner transaction identifier.

Required string length: 1 - 64
external_metadata
string

Optional metadata to store alongside the checkout.

Required string length: 1 - 1000

Response

Successful response

data
object
required

Created checkout session details.