> ## 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.

# 客户会话对象

> 介绍用于支付方式注册的客户会话对象及其属性

## 属性

此对象表示一个客户会话，可创建该会话来注册客户的支付方式。

**customer\_session** `string`

为注册创建的客户会话（MAX 64; MIN 36）。

示例：fe50d39a-5a1c-11ed-9b6a-0242ac120002

**customer\_id** `string`

客户的唯一标识符（MAX 64; MIN 36）。

示例：3956053c-5a1d-11ed-9b6a-0242ac120002

**country** `enum`

客户所在的国家/地区（MAX 2; MIN 2; [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1)）。

可能的枚举值：请查看[国家/地区参考](https://docs.y.uno/zh-hans/reference/country-reference.md)。

**callback\_url** `string`

在服务提供商环境中完成注册后，用于重定向客户的 URL（MAX 526; MIN 3）。

示例：[www.your-url.com](http://www.your-url.com)

**created\_at** `timestamp`

客户会话的创建日期和时间（MAX 27; MIN 27; [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)）。

示例：2022-05-09T20:46:54.786342Z

**checkout\_id** `string`

此注册会话所使用的 Custom Checkout 的唯一标识符。

示例：6822f80c-684e-41a3-8628-78963d3d60f7


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