ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • GET /api/mobile/contacts/leads/[id]

      Récupère tous les détails d'un lead spécifique

      Parameters

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

      Returns Promise<
          | NextResponse<{ success: boolean; error: string; message: string }>
          | NextResponse<
              {
                  success: boolean;
                  message: string;
                  data: {
                      id: string;
                      code: string;
                      name: string;
                      companyName: string
                      | null;
                      email: string | null;
                      phone: string | null;
                      website: string | null;
                      status: string;
                      source: string | null;
                      notes: string | null;
                      paymentMethod: PaymentMethod | null;
                      paymentTermsDays: number | null;
                      addresses: {
                          id: string;
                          type: string;
                          name: string | null;
                          street: string | null;
                          city: string | null;
                          postalCode: string | null;
                          state: string | null;
                          country: string | null;
                          isDefault: boolean;
                      }[];
                      contacts: {
                          id: string;
                          firstName: string;
                          lastName: string;
                          position: string
                          | null;
                          email: string | null;
                          phone: string | null;
                          mobile: string | null;
                          isDefault: boolean;
                          isActive: boolean;
                          notes: string | null;
                      }[];
                      legalIdentifiers: {
                          id: string;
                          type: string;
                          value: string;
                          country: string
                          | null;
                          isActive: boolean;
                      }[];
                      files: {
                          id: string;
                          filename: string;
                          url: string;
                          mimetype: string;
                          size: number;
                          category: string
                          | null;
                          createdAt: Date;
                      }[];
                      salesOffers: {
                          id: string;
                          number: string;
                          projectName: string
                          | null;
                          status: SalesOfferStatus;
                          annualAmount: number | null;
                          validityDate: Date | null;
                          createdAt: Date;
                      }[];
                      businessOpportunities: {
                          id: string;
                          number: string;
                          name: string;
                          stage: BusinessOpportunityStage;
                          status: OpportunityStatus;
                          expectedRevenue: number
                          | null;
                          createdAt: Date;
                      }[];
                      isActive: boolean;
                      createdAt: Date;
                      updatedAt: Date;
                  };
                  timestamp: string;
              },
          >,
      >