Attributes
- idstring
Unique identifier for the object.
- objectstring
String representing the object’s type. Objects of the same type share the same value.
- client_
secretstring A client secret that can be used to drive a single session using our embedded widget.
Related guide: Set up an onramp integration
- createdtimestamp
Time at which the object was created. Measured in seconds since the Unix epoch.
- kyc_
details_ providedboolean Has the value
true
if any user kyc details were provided during the creation of the onramp session. Otherwise, has the valuefalse
. - livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - metadatanullable object
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- redirect_
urlnullable string Redirect your users to the URL for a prebuilt frontend integration of the crypto onramp on the standalone hosted onramp.
Related guide: Mint a session with a redirect url
- statusstring
The status of the Onramp Session. One of =
{initialized, rejected, requires_
payment, fulfillment_ processing, fulfillment_ complete} - transaction_
detailsobject A hash representing monetary details of the transaction this session represents.
- transaction_details.
destination_ amountnullable string The amount of crypto the customer will get deposited into their wallet
- transaction_details.
destination_ currenciesnullable array of enums If a platform wants to lock the currencies an session will support, they can add supported currencies to this array. If left null, the experience will allow selection of all supported destination currencies.
- transaction_details.
destination_ currencynullable enum The selected
destination_
to convert thecurrency source
to. This should be a crypto currency code. Ifsupported_
is set, it must be a value in that array.destination_ currencies - transaction_details.
destination_ networknullable enum The specific crypto network the
destination_
is settled on. Ifcurrency supported_
is set, it must be a value in that array.destination_ networks - transaction_details.
destination_ networksnullable array of enums If a platform wants to lock the supported networks, they can do so through this array. If left null, the experience will allow selection of all supported networks.
- transaction_details.
feesnullable object Details about the fees associated with this transaction
- transaction_details.
fees. network_ fee_ amountnullable string The cost associated with moving crypto from Stripe to the end consumer’s wallet. e.g: for ETH, this is called ‘gas fee’, for BTC this is a ‘miner’s fee’.
- transaction_details.
fees. transaction_ fee_ amountnullable string Fee for processing the transaction.
- transaction_details.
lock_ wallet_ addressnullable boolean Whether or not to lock the suggested wallet address.
- transaction_details.
source_ amountnullable string The amount of fiat we intend to onramp - excluding fees
- transaction_details.
source_ currencynullable enum A fiat currency code
- transaction_details.
transaction_ idnullable string The transaction id of the transaction that was sent to the customer’s wallet. This will only be set if the sessions hits the
status=fulfillment_
and we’ve transferred the crypto successfully to the external wallet. e.g: https://etherscan.io/tx/0xc2573af6b3a18e6f7c0e1cccc187a483f61d72cbb421f7166970d3ab45731a95complete - transaction_details.
wallet_ addressnullable string The consumer’s wallet address (where crypto will be sent to)
- transaction_details.
wallet_ addressesnullable object The end customer’s crypto wallet address (for each network) to use for this transaction.
- transaction_details.
wallet_addresses. base_ networknullable stringPreview feature A base address
- transaction_details.
wallet_addresses. bitcoinnullable string A bitcoin address
- transaction_details.
wallet_addresses. nullable object The end customer’s crypto wallet destination tag (for each network) to use for this transaction.
- transaction_details.
wallet_addresses. destination_tags. nullable stringPreview feature A stellar destination tag
- transaction_details.
wallet_addresses. ethereumnullable string An ethereum address
- transaction_details.
wallet_addresses. optimismnullable stringPreview feature An optimism address
- transaction_details.
wallet_addresses. polygonnullable string A polygon address
- transaction_details.
wallet_addresses. solananullable string A solana address
- transaction_details.
wallet_addresses. stellarnullable stringPreview feature A stellar address
- transaction_details.
wallet_addresses. worldchainnullable stringPreview feature A worldchain address
{ "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": "initialized", "transaction_details": { "destination_amount": null, "destination_currencies": [ "btc", "eth", "matic", "sol", "xlm", "avax", "usdc" ], "destination_currency": null, "destination_network": null, "destination_networks": [ "bitcoin", "ethereum", "base", "polygon", "solana", "stellar", "avalanche" ], "fees": null, "lock_wallet_address": false, "source_amount": null, "source_currency": null, "transaction_id": null, "wallet_address": null, "wallet_addresses": null }}