Skip to main content
POST
/
virtual-wallets
/
ramps
/
{walletId}
/
credit-card
/
on
curl -X POST "https://api.cryptomate.me/virtual-wallets/ramps/vw_a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/credit-card/on" \
  -H "X-API-KEY: $CRYPTOMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": "client_xyz789",
    "amount": 250.00,
    "asset": "USD"
  }'
{
  "session_id": "cs_live_a1b2c3d4e5f6",
  "session_url": "https://checkout.cryptomate.me/session/cs_live_a1b2c3d4e5f6",
  "bootstrap_token": "bt_9f8e7d6c5b4a"
}
Initiates a credit card deposit to a virtual wallet. Supported currencies are determined by the Ramps service based on the wallet’s blockchain. Requires an API key with access level 2 or higher.

Path parameters

walletId
string
required
Unique identifier of the virtual wallet.

Body

client_id
string
Identifier of the client making the deposit.
amount
number
Deposit amount (maximum 2 decimal places).
asset
string
Fiat asset code (for example, USD).

Response

session_id
string
Checkout session identifier.
session_url
string
URL for the hosted checkout session.
bootstrap_token
string
Bootstrap token for embedding the checkout widget.
curl -X POST "https://api.cryptomate.me/virtual-wallets/ramps/vw_a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/credit-card/on" \
  -H "X-API-KEY: $CRYPTOMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": "client_xyz789",
    "amount": 250.00,
    "asset": "USD"
  }'
{
  "session_id": "cs_live_a1b2c3d4e5f6",
  "session_url": "https://checkout.cryptomate.me/session/cs_live_a1b2c3d4e5f6",
  "bootstrap_token": "bt_9f8e7d6c5b4a"
}