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

# Exporter les paiements

> Exporte les paiements filtrés au format **PDF**, **Excel** ou **CSV**.
La réponse est un fichier binaire (`Content-Disposition: attachment`).




## OpenAPI

````yaml /openapi.yaml get /web-merchant/payments/export
openapi: 3.1.0
info:
  title: Djonanko Pay API
  version: 1.0.0
  description: >
    API de la passerelle de paiement mobile money **Djonanko Pay**.


    Deux modes d'authentification coexistent :


    - **Clé API** (`x-api-key` + `x-api-secret`) — pour l'intégration serveur à
    serveur :
      création de liens de paiement et de QR codes.
    - **Jeton marchand** (`authenticationtoken`) — un JWT obtenu via `POST
    /user/login-merchant`,
      utilisé par le dashboard marchand pour tout le reste (statut, solde, reversements, rapports…).

    Toutes les réponses sont en JSON. Les montants sont exprimés en **FCFA (XOF
    / XAF)** sans décimales.
  contact:
    name: Support Djonanko
    url: https://www.djonanko.ci/#contact
servers:
  - url: https://apidjonanko.tech
    description: Production
security: []
tags:
  - name: Authentification
  - name: Paiements
  - name: Solde & statistiques
  - name: Webhooks
  - name: Reversements
  - name: Sécurité
  - name: Rapports
  - name: Compte marchand
paths:
  /web-merchant/payments/export:
    get:
      tags:
        - Paiements
      summary: Exporter les paiements
      description: |
        Exporte les paiements filtrés au format **PDF**, **Excel** ou **CSV**.
        La réponse est un fichier binaire (`Content-Disposition: attachment`).
      operationId: exportPayments
      parameters:
        - $ref: '#/components/parameters/MerchantReference'
        - name: format
          in: query
          schema:
            type: string
            enum:
              - xlsx
              - pdf
              - csv
            default: xlsx
        - name: date_min
          in: query
          schema:
            type: string
            format: date
        - name: date_max
          in: query
          schema:
            type: string
            format: date
        - name: reference
          in: query
          schema:
            type: string
        - name: status
          in: query
          schema:
            $ref: '#/components/schemas/PaymentStatus'
        - name: operator
          in: query
          schema:
            type: string
            enum:
              - orange
              - mtn
              - moov
              - wave
              - visa
        - name: country
          in: query
          schema:
            type: string
            enum:
              - CI
              - BF
              - ML
              - CM
      responses:
        '200':
          description: Fichier exporté.
          content:
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: string
                format: binary
            application/pdf:
              schema:
                type: string
                format: binary
            text/csv:
              schema:
                type: string
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
        - MerchantToken: []
components:
  parameters:
    MerchantReference:
      name: merchant_reference
      in: query
      required: true
      description: >-
        Référence de votre compte marchand (celle choisie à l'inscription, ex.
        `beautyshop`).
      schema:
        type: string
        example: beautyshop
  schemas:
    PaymentStatus:
      type: string
      enum:
        - PENDING
        - SUCCESS
        - FAILED
      description: |
        - `PENDING` — lien créé, en attente de paiement (expire après 24 h).
        - `SUCCESS` — paiement confirmé par l'opérateur.
        - `FAILED` — paiement refusé, annulé ou lien expiré.
    Error:
      type: object
      properties:
        statusCode:
          type: integer
          example: 401
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          example: Invalid API credentials
        error:
          type: string
          example: Unauthorized
  responses:
    Unauthorized:
      description: Identifiants manquants ou invalides.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 401
            message: Invalid API credentials
            error: Unauthorized
  securitySchemes:
    MerchantToken:
      type: apiKey
      in: header
      name: authenticationtoken
      description: >-
        JWT obtenu via `POST /user/login-merchant`. À passer tel quel, **sans**
        préfixe `Bearer`.

````