Stripe | Financial Infrastructure to Grow Your Revenue

Stripe | Financial Infrastructure to Grow Your Revenue

4466 articles

List CryptoOnrampSessions


List CryptoOnrampSessions

GET / v1 / crypto / onramp_sessions

Returns a list of onramp sessions that match the filter criteria. The onramp sessions are returned in sorted order, with the most recent onramp sessions appearing first.

Parameters

  • created object Only return onramp sessions that were created during the given date interval.
  • destination _ currency enum The destination cryptocurrency to filter by. Possible enum values avax Avalanche (the related setting). btc Bitcoin (BTC). eth Ether (ETH). matic Polygon (the related setting). sol Solana (SOL). usdc USD Coin (the related setting). usdt Tether (the related setting). wld Worldcoin (WLD). xlm Stellar Lumen (XLM).
  • destination _ network enum The destination blockchain network to filter by. Possible enum values avalanche Avalanche network. base Base network. bitcoin Bitcoin network. celo Celo network. ethereum Ethereum network. optimism Optimism network. polygon Polygon network. solana Solana network. stellar Stellar network. sui Sui network. Show 2 more
  • ending _ before string An object ID cursor for use in pagination.
  • limit integer A limit ranging from 1 to 100 (defaults to 10).
  • starting _ after string An object ID cursor for use in pagination.
  • status enum The status of the Onramp Session. One of = {initialized, rejected, requires_payment, fulfillment_processing, fulfillment_complete} Possible enum values fulfillment_complete Cryptocurrency has been successfully delivered to the customer’s wallet. fulfillment_processing Payment has been received and cryptocurrency delivery is being processed. initialized The onramp session has been created and is awaiting user interaction. rejected The onramp session has been rejected. requires_payment The onramp session is awaiting payment from the user.

Returns

A dictionary with a data property that contains an array of up to limit onramp sessions, starting after onramp session starting_after. Each entry in the array is a separate onramp session object. If no more onramp sessions are available, the resulting array will be empty.

cURL

Response

Checkout a CryptoOnrampSession

POST / v1 / crypto / onramp_sessions /:id / checkout

Completes a headless CryptoOnrampSession.

This method will attempt to confirm the payment and execute the quote to deliver the crypto to the customer.

Parameters

  • mandate _ data object This hash contains details about the mandate to create

Returns

Returns a CryptoOnrampSession object

cURL

Response

{ "id": "cos_1NamBL2eZvKYlo2CP38sZVEW", "object": "crypto.onramp_session", "client_secret": "cos_1NamBL2eZvKYlo2CP38sZVEW_secret_B5faamUkzHbcpjy6NndGq1mMZGGCo8FhK2P", "created": 1691010131, "kyc_details_provided": false, "livemode": true, "metadata": {}, "redirect_url": null, "status": "fulfillment_processing", "transaction_details": { "destination_amount": "0.029133919178255537", "destination_currencies": [ "btc", "eth", "matic", "sol", "xlm", "avax", "usdc" ], "destination_currency": "eth", "destination_network": "base", "destination_networks": [ "bitcoin", "ethereum", "base", "polygon", "solana", "stellar", "avalanche" ], "fees": { "network_fee_monetary": "0.07", "transaction_fee_monetary": "4.04" }, "lock_wallet_address": false, "source_amount": "100.00", "source_currency": "usd", "transaction_id": "cxt_1ABC2DEF3ghi4jkl5", "wallet_address": null, "wallet_addresses": null }}

Refresh an executable quote

POST / v1 / crypto / onramp_sessions /:id / quote

Refreshes an executable quote for a CryptoOnrampSession.

Parameters

No parameters.

Returns

Returns a CryptoOnrampSession object

cURL

Response

{ "id": "cos_1NamBL2eZvKYlo2CP38sZVEW", "object": "crypto.onramp_session", "client_secret": "cos_1NamBL2eZvKYlo2CP38sZVEW_secret_B5faamUkzHbcpjy6NndGq1mMZGGCo8FhK2P", "created": 1691010131, "kyc_details_provided": false, "livemode": false, "metadata": {}, "redirect_url": null, "status": "quote_ready", "transaction_details": { "destination_amount": "0.029133919178255537", "destination_currencies": [ "btc", "eth", "matic", "sol", "xlm", "avax", "usdc" ], "destination_currency": "eth", "destination_network": "base", "destination_networks": [ "bitcoin", "ethereum", "base", "polygon", "solana", "stellar", "avalanche" ], "fees": { "network_fee_monetary": "0.07", "transaction_fee_monetary": "4.04" }, "lock_wallet_address": false, "source_amount": "100.00", "source_currency": "usd", "transaction_id": null, "wallet_address": null, "wallet_addresses": null }}
Last verified 2026-09-24

Is this helpful?