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

      • request: NextRequest
      • __namedParameters: { params: Promise<{ id: string }> }

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  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;
                  }[];
                  businessOpportunities?: {
                      createdAt: Date;
                      expectedRevenue: number
                      | null;
                      id: string;
                      name: string;
                      number: string;
                      stage: BusinessOpportunityStage;
                      status: OpportunityStatus;
                  }[];
                  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;
                  }[];
                  parentClient?: { code: string; id: string; name: string }
                  | null;
                  salesperson?: { email: string; id: string; name: string | null } | null;
                  createdAt: string;
                  updatedAt: string;
              },
          >,
      >