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

# Tokens

> Compares one-time, vaulted, and network tokens and how Yuno's tokenization reduces PCI scope.

Yuno provides a fully managed, PCI DSS Level 1 tokenization service. When a customer provides their payment details, Yuno replaces the sensitive data with a token, a non-sensitive string that represents the original credentials. Your systems only ever store and transmit tokens, never raw card data.

This approach reduces your PCI compliance scope significantly. Instead of a full audit, most merchants using Yuno's SDK only need to complete a short self-assessment questionnaire (SAQ A). For more details, see [PCI Compliance](https://docs.y.uno/docs/security-and-compliance/pci-compliance.md).

## Yuno tokenization coverage

Yuno's tokenization platform is not limited to cards. Tokens are issued for any payment method flowing through Yuno, including:

* **Credit and debit cards**
* **Digital wallets** such as Apple Pay, Google Pay, and Click to Pay
* **Bank transfers and local payment methods** including ACH, PIX, and regional alternatives
* **Alternative payment methods** for buy-now-pay-later, vouchers, and more

Regardless of payment method, the token abstraction is consistent: your integration stores a single identifier and passes it to Yuno at payment time.

## Token types

Yuno issues three types of tokens, each suited to a different integration scenario.

### One-time use token

When using Yuno's SDK, all necessary payment information is gathered and stored in a one-time use token scoped to a single [checkout session](https://docs.y.uno/docs/basic-concepts/sessions.md). This token is used once when creating the payment and cannot be reused.

One-time tokens are the right choice for:

* Guest checkouts with no stored payment method
* Single-use transactions where vaulting is not required

> [!NOTE]
>
> **Vault on success**
>
> Set `vault_on_success: true` in the token request, or `payment_method.vault_on_success: true` on the payment, to automatically enroll and vault the payment method if the payment succeeds. This converts a one-time token into a persistent vaulted token without a separate enrollment step.

### Vaulted token

A vaulted token is created when a payment method is [enrolled](https://docs.y.uno/docs/payment-features/enrollment/enroll-payment-methods.md) and securely stored in Yuno's centralized vault alongside the customer's information. You can use the vaulted token to authorize future payments without the customer re-entering their details.

Vaulted tokens are the right choice for:

* Returning customers with saved payment methods
* Subscriptions and recurring billing
* One-click checkout flows

Vaulted tokens persist until the customer unenrolls the payment method or the token is explicitly removed. Because they live in a centralized vault, vaulted tokens work across all processors connected to your Yuno account. No re-tokenization is needed when switching or adding providers.

### Network token

A network token is a digitized representation of a card's Primary Account Number (PAN). It's issued directly by card networks such as Visa, Mastercard, or American Express. When network tokenization is enabled, Yuno automatically provisions and manages network tokens for all enrolled cards. These tokens replace the actual card data during authorization.

Network tokens are the right choice for:

* High-value recurring transactions where maximizing authorization rates matters
* Scenarios requiring enhanced fraud protection at the network level

Unlike vaulted tokens, network tokens are managed by the card network and **automatically updated** when a card is renewed or reissued. This reduces involuntary declines without any action required from the merchant or cardholder.

> [!NOTE]
>
> **Learn more**
>
> For a full overview of network tokens, lifecycle statuses, and integration options, see [Network Tokens](https://docs.y.uno/docs/security-and-compliance/network-tokens.md).

### Provider token

Some payment methods are authorized at the provider, such as a Pix Automático authorization with EBANX. The provider identifies that authorization with its own reference, the **provider token**. Yuno stores it inside the customer's vaulted payment method, so your integration never handles it: you charge with the `vaulted_token` and Yuno sends the provider token with the payment. Only the provider that issued it can use it, so route payments made with that `vaulted_token` to that provider; Yuno sends it to the provider your routing selects.

### Saving a payment method while paying

For Pix with EBANX, the authorization is created during the first payment: send `payment_method.vault_on_success: true` on that payment. Yuno stores the provider token and saves the payment method for the customer:

1. **First payment (customer-initiated):** create the payment with the customer (`customer_payer.id`), `payment_method.vault_on_success: true` and a `subscription` block that describes the authorization. The customer approves it outside your page.
2. **The vaulted token:** the saved payment method appears in [Retrieve Enrolled Payment Methods](https://docs.y.uno/reference/payment-methods-direct-workflow/retrieve-enrolled-payment-methods-api.md) as soon as the payment is created, and its token is in `transactions[].payment_method.vaulted_token` in [Retrieve Payment](https://docs.y.uno/reference/payments/retrieve-payment-by-id-v2.md) once the payment reaches `SUCCEEDED`. It is not in the create response. Charge it only after the customer approves: before that, charges are declined.
3. **Later payments (merchant-initiated):** send `payment_method.vaulted_token`. Yuno charges the stored authorization without a new customer approval.
4. **Checkout:** returning customers see the saved Pix in the SDK checkout and can pay with one click, when you create the checkout session with their `customer_id`.

If you already hold card provider tokens created outside Yuno, [enroll each one](https://docs.y.uno/reference/payment-methods-direct-workflow/enroll-payment-method-api.md) once with `type: "CARD"`, `provider_data.token_source: "PROVIDER_TOKEN"`, the provider in `provider_data.id`, the connection in `provider_data.connection_id` and the provider reference in `provider_data.payment_method_token`. Yuno returns a `vaulted_token` you use the same way.

For a complete example, see [Pix with vault on success](https://docs.y.uno/docs/payment-features/subscriptions/pix-automatico.md#pix-with-vault-on-success).

## Token comparison

| | One-time use token | Vaulted token | Network token |
| :- | :- | :- | :- |
| **Created by** | Yuno SDK, per checkout session | Yuno on enrollment | Card networks (Visa, Mastercard, Amex) |
| **Validity** | Single transaction | Persistent until unenrolled | Auto-renewed by card network |
| **Use case** | Guest checkout, single payments | Returning customers, subscriptions | Recurring payments, higher authorization rates |
| **Cross-processor** | No | Yes | Yes |
| **Requires enrollment** | No | Yes | Yes (applied automatically to enrolled cards) |

## Additional tokenization capabilities

### Card fingerprinting

Every card enrolled through Yuno receives a `fingerprint`, a stable, cryptographic identifier derived from the PAN. Fingerprints remain consistent across multiple enrollments of the same card. This lets you detect duplicates and deduplicate your vault without ever accessing or storing raw card numbers. See [Card Fingerprint](https://docs.y.uno/docs/security-and-compliance/fingerprint.md).

### Automatic card updates

Yuno's Card Account Updater automatically refreshes vaulted cards when issuers update card numbers or expiration dates. This keeps your vault current without any cardholder action, reducing declines caused by outdated card data. See [Card Account Updater](https://docs.y.uno/docs/additional-services/card-account-updater.md).

### Token migration

If you are moving to Yuno from another provider, Yuno supports importing your existing tokenized cards directly into the Yuno vault. Your customers keep their saved payment methods, and you keep their full history, with no re-enrollment required. See [Token Migration Process](https://docs.y.uno/docs/security-and-compliance/data-migration-processes/token-migration-process.md).

Yuno also supports exporting tokens if you ever need to move your vault data to another provider. See [Exporting Tokens from Yuno](https://docs.y.uno/docs/security-and-compliance/data-migration-processes/exporting-tokens-from-yuno.md).


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