> ## Documentation Index
> Fetch the complete documentation index at: https://docs.inflowafrica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Attribuer un compte virtuel à un client

> Provisionne un compte bancaire virtuel pour le client à l'aide du prestataire configuré. Renvoie le compte existant s'il est déjà attribué. Monnify par défaut.



## OpenAPI

````yaml openapi.fr.json post /v1/customers/{id}/virtual-account
openapi: 3.0.0
info:
  title: Inflow API
  version: 1.0.0
  description: Service d'API pour la gestion des cartes clients
  contact:
    name: API Support
servers:
  - url: https://sandbox.inflowafrica.com/api
    description: Bac à sable
  - url: https://app.inflowpay.net/api
    description: Production
  - url: http://localhost:3000/api
    description: Local
security:
  - bearerAuthFr: []
tags: []
paths:
  /v1/customers/{id}/virtual-account:
    post:
      tags:
        - External API - Customers
      summary: Attribuer un compte virtuel à un client
      description: >-
        Provisionne un compte bancaire virtuel pour le client à l'aide du
        prestataire configuré. Renvoie le compte existant s'il est déjà
        attribué. Monnify par défaut.
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
            format: uuid
          description: Identifiant du client
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                provider:
                  type: string
                  enum:
                    - monnify
                  default: monnify
                  description: Le prestataire de compte virtuel à utiliser.
      responses:
        '201':
          description: Compte virtuel attribué
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      provider:
                        type: string
                      accounts:
                        type: array
                        items:
                          type: object
                          properties:
                            bankCode:
                              type: string
                            bankName:
                              type: string
                            accountNumber:
                              type: string
                            accountName:
                              type: string
        '404':
          description: Client introuvable
      security:
        - apiKeyAuthFr: []
components:
  securitySchemes:
    bearerAuthFr:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Saisissez le jeton JWT
    apiKeyAuthFr:
      type: http
      scheme: bearer
      description: Saisissez votre clé API commençant par gtw_sk_

````