> ## Documentation Index
> Fetch the complete documentation index at: https://docs.y.uno/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# The Customer Session Object

> Describes the customer session object and its attributes used for payment method enrollment

## Attributes

This object represents a customer session that can be created to enroll a customer's payment methods.

**customer\_session** `string`

The customer session that has been created for the enrollment (MAX 64; MIN 36).

Example: fe50d39a-5a1c-11ed-9b6a-0242ac120002

**customer\_id** `string`

The unique identifier of the customer (MAX 64; MIN 36).

Example: 3956053c-5a1d-11ed-9b6a-0242ac120002

**country** `enum`

The customer's country (MAX 2; MIN 2; [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) ).

Possible enum values: Check the [Country reference](https://docs.y.uno/reference/country-reference.md).

**callback\_url** `string`

The URL to redirect your customer after the enrollment is made in the provider's environment (MAX 526; MIN 3).

Example: [www.your-url.com](http://www.your-url.com)

**created\_at** `timestamp`

Customer Session creation date and time (MAX 27; MIN 27; [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) ).

Example: 2022-05-09T20:46:54.786342Z

**checkout\_id** `string`

The unique identifier of the Custom Checkout used for this enrollment session.

Example: 6822f80c-684e-41a3-8628-78963d3d60f7


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.