AppointmentKing Integration
Overview
Integrating your member management system with AppointmentKing is usually a two part process. The first part of the process involves getting the data out of the member management software. The second part involves sending the data to AppointmentKing. The first part—extracting data from the member management software—will depend on the specific software being used. AppointmentKing cannot provide specific instructions on this step because we do not have access to (or experience with) all varieties of management software. However, after the data have been extracted in a suitable format, sending the data to AppointmentKing is easily accomplished with the tools provided below.
Extraction From Member Management
Most member management software provides a way to export member records as as CSV file. (CSV stands for Comma Separated Values. A CSV file is like a very simple spreadsheet that can be edited in a text editor, and the columns are separated by commas.) You will need to figure out how to save member data as as CSV, with the following columns (in the specified order):
- First Name
- Last Name
- Home Phone
- Date of Birth
- Facility Name
- Facility Phone Number
- Membership ID
- Join Date
- Email Address
- Mobile Phone Number
The individual fields in the CSV file should not have quotes around them (often, there is an option to surround each field with quotes---do not choose that option), and the file name should include no spaces. The first export should include all current members. Subsequent exports should occur daily, and should only include members that joined in the previous day. To ensure that the exports occur, your member management software should be configured to perform the daily export automatically.
Sending Data To AppointmentKing
You can use a simple program called cURL, along with a short batch script (both are provided below) to send your CSV data to AppointmentKing. To do send the data, find the directory where your CSV file is saved (you might want to create a new directory for this). Download the following two files by right-clicking on them and selecting Save Target As... Save both files in the same directory as your CSV file.
After you have downloaded the files above, find the directory where you saved them. Right click on "akenroll.bat" and choose Edit. Find the line with set FILE=filename.csv and change filename.csv to the name of your CSV file. You will also need to set the KEY with the integration key supplied by AppointmentKing. Save the file. You can now test the upload by double-clicking on akenroll.bat.
Cancellation
When a member cancels his or her membership, the associated AppointmentKing account should be cancelled. The process for cancellation is very similar to enrollment. The first step is creating a CSV export from your member management system with the following fields:
- Facility Phone Number
- Membership ID
Again, the file name should include no spaces. Save that export in the same directory as the other files you saved. Also, download the following batch script (right click on the link, and select "Save Target As..."), and save it in the same directory:
You will need to edit that file (right click on it, and select "Edit") to insert the name of the CSV file with the cancellations. You will do that on the line that starts with set FILE=.You can then send the data to us by double clicking on the akcancel.bat file, or by setting up a Scheduled Task (see below).
Setting Up A Scheduled Task
To get the computer to run atxenroll.bat automatically daily, you can set up a Scheduled Task in Windows.
- Go to the Start menu.
- Open Control Panel.
- Choose Scheduled Tasks.
- Double click Add Scheduled Task to start the scheduled task wizard.
- In the step where you choose the application, select Browse... and find akenroll.bat (which you saved earlier).
- In the step where you enter a user name and password, make sure that you enter a valid user name and password for your computer.