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

# Types de moyen de paiement

> Détail de la structure polymorphe payment_method pour les vendeurs.

Chaque entrée du tableau `payment_method` associe un type de moyen de paiement à un prestataire donné et à ses identifiants de commerçant.

## Structure

Le tableau `payment_method` utilise une structure `detail` polymorphe. La forme de l'objet detail dépend du champ `payment_method_type`.

| Champ | Type | Obligatoire | Description |
| :- | :- | :- | :- |
| `payment_method_type` | string (enum) | Oui | Le type de moyen de paiement : `CARD`, `APPLE_PAY`, `GOOGLE_PAY`, etc. |
| `detail` | object | Oui | Objet de détail propre au type. Contient la clé `card` ou la clé `wallet`. |

### Type CARD

**Chemin :** `detail.card.provider`

| Champ | Type | Obligatoire | Description |
| :- | :- | :- | :- |
| `id` | string | Oui | L'identifiant du prestataire de paiement (par ex. `CIELO`, `ADYEN`, `STRIPE`). |
| `merchant_id` | string | Oui | L'identifiant de commerçant attribué par ce prestataire pour ce vendeur (MAX 255). |

### Type APPLE\_PAY

**Chemin :** `detail.wallet.provider`

| Champ | Type | Obligatoire | Description |
| :- | :- | :- | :- |
| `id` | string | Oui | L'identifiant du prestataire de portefeuille (par ex. `APPLE_PAY`). |
| `merchant_id` | string | Oui | L'identifiant de commerçant attribué par le prestataire de portefeuille (MAX 255). |
| `payment_processing_key` | string | Oui | Contenu .pem encodé en Base64 de la clé privée de traitement des paiements. |
| `payment_processing_certificate` | string | Oui | Contenu .pem encodé en Base64 du certificat de traitement des paiements. |
| `merchant_identity_key` | string | Oui | Contenu .pem encodé en Base64 de la clé privée d'identité du commerçant. |
| `merchant_identity_certificate` | string | Oui | Contenu .pem encodé en Base64 du certificat d'identité du commerçant. |
| `merchant_identity_password` | string | Oui | Mot de passe du certificat d'identité du commerçant (MAX 255). |


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