ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • POST(
          req: NextRequest,
      ): Promise<
          | NextResponse<{ success: boolean; error: string; message: string }>
          | NextResponse<
              { success: boolean; message: string; data: any; timestamp: string },
          >,
      >

      POST /api/mobile/contacts/new

      Crée un nouveau contact (Lead, Client ou Fournisseur)

      Body: { type: "LEAD" | "CLIENT" | "SUPPLIER" name: string (requis) email?: string phone?: string website?: string companyName?: string (pour Lead) notes?: string }

      Parameters

      • req: NextRequest

      Returns Promise<
          | NextResponse<{ success: boolean; error: string; message: string }>
          | NextResponse<
              { success: boolean; message: string; data: any; timestamp: string },
          >,
      >