sdk_token scoped to a specific customer, enabling client-side operations like payment method enrollment (vaulting), listing saved methods, and one-click checkout. Unlike a Checkout Session, a Customer Session does not involve a payment amount. It is purely for credential management.
Enrollment flow. To vault a payment method for future use, create a Customer Session first, then use the returned
sdk_token to initialize the enrollment SDK on the client side. See Enrollment Guide.Object Fields
The unique identifier for this customer session (UUID).Example:
cs_7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2dThe ID of the Customer Object this session belongs to. The customer must exist before creating a session.Example:
c9d0e1f2-3a4b-5c6d-7e8f-9a0b1c2d3e4fCurrent status of the customer session.Values:
ACTIVE, EXPIREDExample: ACTIVEToken used to initialize the Yuno SDK for enrollment flows on the client side. Returned only in the create response. Scoped to the customer and short-lived.Example:
cstok_live_xyz789abc012def345ghi678ISO 8601 timestamp of when this session expires. After expiration, the
sdk_token is no longer valid and a new session must be created.Example: 2026-03-10T19:00:00.000ZISO 8601 timestamp of when the customer session was created.Example:
2026-03-10T18:00:00.000ZExample
Session Lifecycle
Customer sessions follow a simple lifecycle:| Status | Description |
|---|---|
ACTIVE | Session is valid. The sdk_token can be used to initialize the enrollment SDK. |
EXPIRED | Session has passed its expires_at time. Create a new session to continue. |
Checkout Session vs. Customer Session
These two session types serve different purposes:| Checkout Session | Customer Session | |
|---|---|---|
| Purpose | Collect a payment | Enroll a payment method |
| Requires amount | Yes | No |
| Creates a payment | Yes | No |
| Vaults a method | Only if vault_on_success: true | Always (that is the purpose) |
| SDK flow | Checkout SDK | Enrollment SDK |
| Endpoint | POST /v1/checkout/sessions | POST /v1/customers/{id}/sessions |
Common Integration Pattern
A typical enrollment flow using Customer Sessions:- Create the customer via
POST /v1/customersif they do not already exist. - Create a Customer Session via
POST /v1/customers/{customer_id}/sessions. - Initialize the SDK on the client side using the returned
sdk_token. - Customer completes enrollment. The SDK handles the card form, tokenization, and verification.
- Receive webhook confirming the payment method was enrolled.
- Use the vaulted token in future Checkout Sessions for one-click payments.
Sandbox testing. In sandbox, use Yuno’s test card numbers to simulate enrollment. The session behaves identically to production, but no real card verification occurs.
Related Endpoints
- Create Customer Session.
POST /v1/customers/{customer_id}/sessions
Related Concepts
- Enrollment Guide. Step-by-step guide to vaulting payment methods
- Customer Object. The customer record this session is scoped to
- Payment Method Object. Payment methods enrolled through this session
- Checkout Session Object. The session type used for collecting payments
- One-Click Checkout. Using vaulted methods for returning customers