User Tools

Site Tools


sales

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sales [2025/05/23 09:39]
clubadmin
sales [2025/11/19 14:19] (current)
clubadmin
Line 8: Line 8:
         /// <param name="id"></param>          /// <param name="id"></param> 
                
-Example’s:+Example:
 https://demo.clubplanner.be/api/Sales/GetProspect?token=DEMOTOKEN&id=64 https://demo.clubplanner.be/api/Sales/GetProspect?token=DEMOTOKEN&id=64
  
Line 22: Line 22:
 Get list of sale prospect  Get list of sale prospect 
  
-        /// <param name="token"></param>        +        /// <param name="token"></param>   
 +        /// <param name="fromdate">optional</param>   
 +        /// <param name="todate">optional</param>  
                
-Example’s:+Example:
 https://demo.clubplanner.be/api/Sales/GetProspects?token=DEMOTOKEN https://demo.clubplanner.be/api/Sales/GetProspects?token=DEMOTOKEN
  
Line 108: Line 110:
  
 Example: https://demo.clubplanner.be/api/Sales/DeleteProspect?token=DEMOTOKEN&id=66 Example: https://demo.clubplanner.be/api/Sales/DeleteProspect?token=DEMOTOKEN&id=66
- 
-===== Sales.AddCalendarItem===== 
-Method: Sales/AddCalendarItem 
- 
-Add an item to a given calendar 
-  /// <param name="token"></param> 
-      /// <param name="employeeid">id of the employee</param> 
-      /// <param name="calendarid">id of the sales calendar</param> 
-      /// <param name="fromdate"></param> 
-      /// <param name="todate"></param> 
-      /// <param name="description">description of the event</param> 
-      /// <param name="color">optional, color in HEX</param> 
-      /// <param name="note">optional</param> 
-      /// <param name="saleid">optional</param> 
-      /// <param name="from">optional</param>     
- 
-Example: https://demo.clubplanner.be/api/sales/AddCalendarItem?token=DEMOTOKEN&description=test&employeeid=1&calendarid=1&fromdate=10/02/2025%2010:00&todate=10/02/2025%2011:00&color=%23FFCC66 
  
 ===== Sales.DeleteCalendarItem===== ===== Sales.DeleteCalendarItem=====
Line 134: Line 119:
       /// <param name="from">optional</param>           /// <param name="from">optional</param>    
  
-Example: https://demo.clubplanner.be/api/sales/DeleteCalendarItem?token=DEMOTOKEN&id=1+Example:  
 +https://demo.clubplanner.be/api/sales/DeleteCalendarItem?token=DEMOTOKEN&id=1
  
 ===== Sales.GetFreeTimeslots===== ===== Sales.GetFreeTimeslots=====
Line 144: Line 130:
       /// <param name="duration">duration in minutes</param>       /// <param name="duration">duration in minutes</param>
       /// <param name="empid">id of the employee, optional, default 0 (=all)</param>       /// <param name="empid">id of the employee, optional, default 0 (=all)</param>
-       
-https://demo.clubplanner.be/api/sales/GetFreeTimeslots?token=DEMOTOKEN&date=2025-03-01&calendarid=1&duration=60 
  
 +Example: 
 +https://demo.clubplanner.be/api/sales/GetFreeTimeslots?token=DEMOTOKEN&date=2025-03-01&calendarid=1&duration=60
 https://demo.clubplanner.be/api/sales/GetFreeTimeslots?token=DEMOTOKEN&date=2025-03-01&calendarid=1&duration=60&empid=5 https://demo.clubplanner.be/api/sales/GetFreeTimeslots?token=DEMOTOKEN&date=2025-03-01&calendarid=1&duration=60&empid=5
          
 +    
 +===== Sales.SetStepResult=====
 +
 +Method: sales/SetStepResult
 +
 +Set the result of the current step and inserts the next step
 +
 +        /// <param name="token"></param>
 +        /// <param name="id">id of prospect</param> 
 +        /// <param name="stepresultid">id of stepresult</param> 
 +        /// <param name="employeeid">id of the employee</param> 
 +        /// <param name="plannedemployeeid">optional, id of the employee that will be used for the appointment</param> 
 +        /// <param name="fromdate">optional</param> 
 +        /// <param name="todate">optional</param> 
 +        /// <param name="note">optional</param> 
 +        /// <param name="color">optional</param> 
 +       
 +Examples:
 +https://demo.clubplanner.be/api/Sales/SetStepResult?token=DEMOTOKEN&id=64&stepresultid=1&employeeid=1
 +
 +Set result + appointment:
 +https://demo.clubplanner.be/api/Sales/SetStepResult?token=DEMOTOKEN&fromdate=2023-01-01T12:30:00&todate=2023-01-01T13:00:00&description=testdescription&calendarid=46&roomid=1
 +
 +Result:
 +
 +{
 +  "CurrentStepId": 1091,
 +  "Description": "",
 +  "Results": [
 +    {
 +      "ResultId": 27,
 +      "Description": "Afspraak maken voor rondleiding "
 +    },
 +    {
 +      "ResultId": 28,
 +      "Description": "Afspraak maken voor proefles "
 +    },
 +    {
 +      "ResultId": 29,
 +      "Description": "Geen gehoor "
 +    },
 +    {
 +      "ResultId": 30,
 +      "Description": "Klant later terugbellen "
 +    },
 +    {
 +      "ResultId": 31,
 +      "Description": "Belmoment verplaatsen "
 +    },
 +    {
 +      "ResultId": 32,
 +      "Description": "Klant heeft geen interesse"
 +    },
 +    {
 +      "ResultId": 33,
 +      "Description": "Klant niet te bereiken, verkoopproces afronden"
 +    }
 +  ]
 +}
 +
 +
 +===== Sales.GetCurrentStep=====
 +
 +Method: sales/GetCurrentStep
 +
 +Get the current step and possible results
 +
 +        /// <param name="token"></param>
 +        /// <param name="id">id of prospect</param> 
 +
 +       
 +Example:
 +https://demo.clubplanner.be/api/sales/GetCurrentStep?token=DEMOTOKEN&id=1
 +
 +
 +Result:
 +
 +{
 +  "CurrentStepId": 1091,
 +  "Description": "",
 +  "Results": [
 +    {
 +      "ResultId": 27,
 +      "Description": "Afspraak maken voor rondleiding "
 +    },
 +    {
 +      "ResultId": 28,
 +      "Description": "Afspraak maken voor proefles "
 +    },
 +    {
 +      "ResultId": 29,
 +      "Description": "Geen gehoor "
 +    },
 +    {
 +      "ResultId": 30,
 +      "Description": "Klant later terugbellen "
 +    },
 +    {
 +      "ResultId": 31,
 +      "Description": "Belmoment verplaatsen "
 +    },
 +    {
 +      "ResultId": 32,
 +      "Description": "Klant heeft geen interesse"
 +    },
 +    {
 +      "ResultId": 33,
 +      "Description": "Klant niet te bereiken, verkoopproces afronden"
 +    }
 +  ]
 +}
 +
 +===== Sales.GetCalendarItems =====
 +
 +Sales.GetCalendarItems
 +Returns a list with all items in the given calendar
 +
 +    /// <param name="token"></param>
 +    /// <param name="id">id of the calendar</param>
 +    /// <param name="date">date of the selected day</param>
 +    /// <param name="empid">id of the employee, optional, default 0 (=all)</param>
 +
 +Example: https://demo.clubplanner.be/api/sales/getcalendarItems?token=DEMOTOKEN&id=1&date=19-NOV-2025
sales.1747985953.txt.gz · Last modified: 2025/05/23 09:39 (external edit)