# The Crypto Onramp Session object

### The Crypto Onramp Session object

```json
{
  "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
  }
}
```

## Attributes

- `id` (string)
  Unique identifier for the object.

- `object` (string)
  String representing the object’s type. Objects of the same type share the same value.

- `client_secret` (string)
  A client secret that can be used to drive a single session using our embedded widget.

  Related guide: [Set up an onramp integration](https://docs.stripe.com/crypto/integrate-the-onramp.md)

- `created` (timestamp)
  Time at which the object was created. Measured in seconds since the Unix epoch.

- `kyc_details_provided` (boolean)
  Has the value `true` if any user kyc details were provided during the creation of the onramp session. Otherwise, has the value `false`.

- `livemode` (boolean)
  If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.

- `metadata` (map, nullable)
  Set of [key-value pairs](https://docs.stripe.com/api/metadata.md) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

- `redirect_url` (string, nullable)
  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](https://docs.stripe.com/crypto/standalone-hosted-onramp.md#mint-a-session-with-a-redirect-url)

- `status` (string)
  The status of the Onramp Session. One of = `{initialized, rejected, requires_payment, fulfillment_processing, fulfillment_complete}`

- [`transaction_details`](https://docs.stripe.com/api/crypto/onramp_sessions/object.md?query=transaction_details) (object)
  A hash representing monetary details of the transaction this session represents.
