ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  suppliers: (
                      {
                          _count: {
                              childSuppliers: number;
                              files: number;
                              purchaseOrders: number;
                              rawMaterials: number;
                              supplierInvoices: number;
                          };
                          addresses: {
                              city: string
                              | null;
                              country: string | null;
                              id: string;
                              isDefault: boolean;
                              name: string | null;
                              postalCode: string | null;
                              state: string | null;
                              street: string | null;
                              type: string;
                          }[];
                          buyer: { email: string; id: string; name: string | null }
                          | null;
                          contacts: {
                              email: string | null;
                              firstName: string;
                              id: string;
                              isDefault: boolean;
                              lastName: string;
                              mobile: string | null;
                              phone: string | null;
                              position: string | null;
                          }[];
                          currency: | { code: string; id: string; name: string; symbol: string }
                          | null;
                          legalIdentifiers: {
                              country: string | null;
                              id: string;
                              isActive: boolean;
                              type: string;
                              value: string;
                          }[];
                          parentSupplier: { code: string; id: string; name: string }
                          | null;
                      } & {}
                  )[];
                  total: number;
                  page: number;
                  limit: number;
                  totalPages: number;
              },
          >,
      >