ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • GET /api/edi/documents/purchase-orders Récupère les Purchase Orders filtrés par fournisseur

      Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  documents: {
                      createdAt: Date;
                      currency: { code: string; id: string; symbol: string }
                      | null;
                      expectedDate: Date | null;
                      id: string;
                      lines: {
                          id: string;
                          quantity: number;
                          rawMaterial: { code: string; id: string; name: string };
                          totalPrice: number;
                          unitPrice: number;
                      }[];
                      number: string;
                      orderDate: Date;
                      status: string;
                      supplier: { code: string; id: string; name: string };
                      supplierId: string;
                      totalAmount: number;
                  }[];
                  count: number;
              },
          >,
      >