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

# Obtenir les transferts

> Cas d'usage courants et codes d'erreur pour le suivi des transferts de bénéficiaires et d'onboardings

## Cas d'usage

### Cas d'usage 1 : vérifier la fin d'un transfert

Créez un transfert et vérifiez qu'il a réussi.

1. **Lancer le transfert**

```http theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
   POST /v1/recipients/A/onboardings/O1/transfer
```

**Réponse**

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{ "id": "T1", ... }
```

2. **Vérifier le statut**

```http theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
   GET /v1/transfers/T1
```

Réponse :

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
   {
     "id": "T1",
     "destination_onboarding": { "status": "SUCCEEDED" }
   }
```

3. **Résultat** : transfert réussi ✓

**Pour déterminer le succès :**

* Vérifiez `destination_onboarding.status`
* `SUCCEEDED` : transfert terminé avec succès
* `PENDING` : transfert encore en cours
* `FAILED` : le transfert a échoué

### Cas d'usage 2 : afficher l'historique des transferts d'un vendeur

Affichez tous les transferts d'un vendeur dans un tableau de bord de marketplace.

1. **Charger la page de profil du vendeur** : `seller_id = "770e8400-..."`
2. **Récupérer l'historique des transferts**

```http theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
GET /v1/recipients/770e8400-.../transfers
```

**Réponse**

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
[
  { "id": "T1", "created_at": "2026-01-15T16:59:22Z", ... },
  { "id": "T2", "created_at": "2026-01-10T08:30:00Z", ... }
]
```

3. **Afficher dans l'interface**

| Date | De | Vers | Statut |
| - | - | - | - |
| 2026-01-15 | seller-123 | seller-456 | Réussi |
| 2026-01-10 | seller-123 | seller-789 | Réussi |

### Cas d'usage 3 : auditer une chaîne de transferts avec annulations

Suivez un onboarding qui a été transféré, puis annulé.

1. **Transfert initial** : O1 du bénéficiaire A vers le bénéficiaire B, transfert T1 créé
2. **Annulé ensuite** : O1 du bénéficiaire B vers le bénéficiaire A, transfert T2 créé (annulation)
3. **Piste d'audit**

```http theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
GET /v1/onboardings/O1/transfers
```

Réponse :

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
[
  {
    "id": "T1",
    "origin_onboarding": { "id": "O1", "recipient": { "id": "A" } },
    "destination_onboarding": { "id": "O2", "recipient": { "id": "B" } },
    "created_at": "2026-01-15T10:00:00Z"
  },
  {
    "id": "T2",
    "origin_onboarding": { "id": "O2", "recipient": { "id": "B" } },
    "destination_onboarding": { "id": "O1", "recipient": { "id": "A" } },
    "created_at": "2026-01-16T11:00:00Z"
  }
]
```

4. **Analyse** : onboarding transféré, puis rendu à son origine

### Cas d'usage 4 : investigation d'un ticket de support

Recherchez un transfert échoué pour identifier et résoudre la cause racine.

1. **« Le transfert T1 a échoué, pouvez-vous m'aider ? »**
2. **Rechercher le transfert**

```http theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
GET /v1/transfers/T1
```

**Réponse**

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "id": "T1",
  "origin_onboarding": {
    "id": "O1",
    "status": "TRANSFERRED",
    "recipient": { "id": "A", "email": "seller@example.com" }
  },
  "destination_onboarding": {
    "id": "O2",
    "status": "FAILED",
    "response_message": "Invalid bank account",
    "recipient": { "id": "B", "email": "newseller@example.com" }
  }
}
```

3. **Cause racine identifiée** : compte bancaire non valide pour la destination
4. **Action** : demander au bénéficiaire B de mettre à jour ses coordonnées bancaires

### Cas d'usage 5 : audit de conformité

Vérifiez tous les transferts d'un bénéficiaire.

1. **Demander le rapport de transferts**

```http theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
GET /v1/recipients/770e8400-.../transfers
```

2. **Le système renvoie tous les transferts**

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
[
  { "id": "T1", "created_at": "...", ... },
  { "id": "T2", "created_at": "...", ... },
  { "id": "T3", "created_at": "...", ... }
]
```

3. **Exporter en CSV pour les registres de conformité**
4. **Le rapport inclut :**
   * Les dates des transferts
   * Les détails de l'origine et de la destination
   * Le statut actuel
   * Les informations sur le prestataire

## Référence des codes d'erreur

| Code | Statut HTTP | Description |
| :-: | :-: | :-: |
| `TRANSFER_NOT_FOUND` | 404 | Le transfert n'existe pas |
| `RECIPIENT_NOT_FOUND` | 404 | Le bénéficiaire n'existe pas |
| `ONBOARDING_NOT_FOUND` | 404 | L'onboarding n'existe pas |
| `FORBIDDEN` | 403 | La ressource appartient à une autre organisation |
| `UNAUTHORIZED` | 401 | Identifiants d'authentification non valides |


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