===== Sales.GetProspect =====
Method: sales/GetProspect
Get a sale prospect via id
///
///
Example:
https://demo.clubplanner.be/api/Sales/GetProspect?token=DEMOTOKEN&id=64
Result:
{"Id":64,"OwnerId":1,"Name":"QSqs","Firstname":"S
/// optional
/// optional
Example:
https://demo.clubplanner.be/api/Sales/GetProspects?token=DEMOTOKEN
Result:
[{"Id":1,"OwnerId":1,"Name":"Do","Firstname":"John","Male":true,"Status":0,"TelephoneNumber":"","BirthDate":"1900-01-01T00:00:00","Age":119,"FullName":"John Do","AddressLine":"","FullAddress":"","Zip":"","City":"","MobileNumber":"","EmailAddress":"","ProspectSource":"","ProspectSubSource":""},{"Id":2,"OwnerId":1,"Name":"Peter","Firstname":"Peter","Male":true,"Status":1,"TelephoneNumber":"","BirthDate":"1900-01-01T00:00:00","Age":119,"FullName":"Peter Peter","AddressLine":"","FullAddress":"","Zip":"","City":"","MobileNumber":"","EmailAddress":"","ProspectSource":"","ProspectSubSource":""}]
===== Sales.AddProspect=====
Method: Sales/AddProspect
Adds a prospect to the sales module
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
Result:
class AddSaleResult
{
public int Id { get; set; }
public int OwnerId { get; set; }
public string OwnerName { get; set; }
public string FullName { get; set; }
}
Example:
https://demo.clubplanner.be/api/sales/AddProspect?token=DEMOTOKEN&firstname=John&lastname=Peterson
===== Sales.UpdateProspect=====
Method: Sales/UpdateProspect
Update a prospect to the sales module
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
Example:
https://demo.clubplanner.be/api/sales/UpdateProspect?token=DEMOTOKEN&id=9&firstname=John&lastname=Doe&gender=F&dayofbirth=1910-01-01
Result:{"Id":9,"OwnerId":1,"OwnerName":"Demo Brussels","FullName":"John Doe"}
===== Sales.DeleteProspect=====
Method: Sales/DeleteProspect
Delete a sale prospect
///
///
Example: https://demo.clubplanner.be/api/Sales/DeleteProspect?token=DEMOTOKEN&id=66
===== Sales.DeleteCalendarItem=====
Method: Sales/DeleteCalendarItem
Removes a Sales CalendarItem
///
/// id of the item
/// optional
Example:
https://demo.clubplanner.be/api/sales/DeleteCalendarItem?token=DEMOTOKEN&id=1
===== Sales.GetFreeTimeslots=====
Returns a list with free timeslots for a given duration
///
/// id of the calendar
/// date of the selected day
/// duration in minutes
/// id of the employee, optional, default 0 (=all)
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
===== Sales.SetStepResult=====
Method: sales/SetStepResult
Set the result of the current step and inserts the next step
///
/// id of prospect
/// id of stepresult
/// id of the employee
/// optional, id of the employee that will be used for the appointment
/// optional
/// optional
/// optional
/// optional
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
///
/// id of prospect
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
///
/// id of the calendar
/// date of the selected day
/// id of the employee, optional, default 0 (=all)
Example: https://demo.clubplanner.be/api/sales/getcalendarItems?token=DEMOTOKEN&id=1&date=19-NOV-2025