ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • GET /api/sales/invoices/payments Liste des paiements factures client, avec filtres et tri.

      Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  payments: (
                      {
                          currency: { code: string; id: string; symbol: string }
                          | null;
                          invoice:
                              | {
                                  client: { code: string; id: string; name: string };
                                  currency: { code: ...; id: ...; symbol: ... } | null;
                                  currencyId: string | null;
                                  id: string;
                                  number: string;
                                  paidAmount: number;
                                  remainingAmount: number;
                                  status: InvoiceStatus;
                                  totalAmount: number;
                              }
                              | null;
                      } & {}
                  )[];
                  pagination: {
                      page: number;
                      limit: number;
                      total: number;
                      totalPages: number;
                  };
              },
          >,
      >