Checkout Sessions
Create One Time Use Token (SDK Checkout)
Generate a one-time-use token within a checkout session for SDK-based payment flows.
POST
Creates a one-time-use token within an existing checkout session. This is used in the
SDK_CHECKOUT workflow where card data is collected securely on the client side via the Yuno SDK, then tokenized before being sent to your server for payment creation.
Unlike the Direct token endpoint, this endpoint does not require PCI certification because the Yuno SDK handles card data collection in a secure iframe.
Path Parameters
The checkout session identifier (UUID) returned from Create Checkout Session.Example:
a1b2c3d4-e5f6-7890-abcd-ef1234567890Request Body
The unique identifier of the account. Found in Yuno’s Dashboard.Constraints: MAX 64; MIN 36
Card details to tokenize.
Response Fields
The one-time-use token. Use this in the Create Payment request as
payment_method.token.Stored payment method token, returned when the card was previously enrolled.
Whether the card will be vaulted upon successful payment. Default:
true.Payment method type.Example:
CARDTokenized card metadata (no sensitive data).
ISO 3166-1 alpha-2 country code.
Error Responses
| Status | Description |
|---|---|
400 | Invalid request parameters. Check card_data fields |
401 | Invalid credentials. Verify API keys |
403 | Merchant not authorized for this API |
Related Pages
- Create One Time Use Token (Direct). Token generation for PCI-compliant merchants
- Create Checkout Session. Create the session first
- Create Payment. Use the token to create a payment
- SDK Full Checkout. End-to-end SDK checkout guide