Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
topOfPage
topOfPage
The Appointment Intent API is used to access, create, and modify the different appointment intent objects on your business' account.


Info
titleOn this page

Table of Contents





Appointment Intent API Endpoints


These are the endpoints that are available under the /appointmentIntent path, which lists all the different notes you have added to clients and appointments to your business account. 

Endpoint

Description

GET /appointmentIntent/{appointmentIntentId}

Returns the Appointment Intent object for the specified Appointment Intent ID. 

GET /appointmentIntentListReturns all Appointment Intents under your business' account.
GET /appointmentIntentList/{clientId}Returns all Appointment Intents under your business' account that belong to the specified Client ID.
POST /appointmentIntent

Creates a new Appointment Intent object on your business' account.

Request body/payload:  Must pass an Appointment Intent object in the request body/payload. 

For these calls, you need to pass an Appointment Intent object with all required fields and any fields you want to set filled in the body of the payload. We have an example of an Appointment Intent object in the responses section below and have indicated the required fields in the object values table at the bottom of this page.

PUT /appointmentIntent/{appointmentIntentId}

Updates an existing Appointment Intent object on your business' account.

Request body/payload:  Must pass an Appointment Intent object in the request body/payload. 

For these calls, you need to pass an Appointment Intent object with all required fields and any fields you want to update filled in the body of the payload.  We have an example of an Appointment Intent object in the responses section below and have indicated the required fields in the object values table at the bottom of this page.

DELETE /appointmentIntent/{appointmentIntentId}Removes an Appointment Intent object from your business' account.





Appointment Intent API Parameters


Parameter

TypeEndpoints to be used with

Description

activeboolean

GET /appointmentIntentList

GET /appointmentIntentList/{clientId}


True or False value that limits the results to active appointment intents or not. If true (default), expired or inactive appointment intents will be excluded from the results.





Appointment Intent API Request Body/Payloads


The objects below represent the minimum viable objects to pass that are needed to create or update an Appointment Intent object. Check whether or not a property can be written to by looking at the Object Values table below to see if the property is writable.

Code Block
titlePOST /appointmentIntent
linenumberstrue
collapsetrue
{
    "businessId": 43111,
    "clientId": 4761823,
    "description": "Test Description",
    "externalReferenceNumber": "Test1234",
    "startDate": 1670524480721,
    "endDate": 1670524480721,
	"expirationDate": 1670524480721,
	"booked": false
}


Code Block
titlePUT /appointmentIntent
linenumberstrue
collapsetrue
{
	"appointmentIntentId": 2,
    "businessId": 43111,
    "clientId": 4761823,
    "description": "Test Description",
    "externalReferenceNumber": "Test1234",
    "startDate": 1670524480721,
    "endDate": 1670524480721,
	"expirationDate": 1670524480721,
	"booked": false
}





Appointment Intent API Responses


Code Block
languagejs
titleGET /appointmentIntentList
linenumberstrue
collapsetrue
[{
 	"appointmentIntentId": 2,
    "businessId": 43111,
    "clientId": 4761823,
    "description": "Test Description",
    "externalReferenceNumber": "Test1234",
    "startDate": 1670524480721,
    "endDate": 1670524480721,
	"expirationDate": 1670524480721,
	"active": true,
	"createdDate": 1541527537548,
    "createdUser": "JoeSchmo",
	"modifiedDate": null,
    "modifiedUser": null,
	"booked": false
}]


Code Block
languagejs
titleGET /appointmentIntentList/{clientId}
linenumberstrue
collapsetrue
[{
 	"appointmentIntentId": 2,
    "businessId": 43111,
    "clientId": 4761823,
    "description": "Test Description",
    "externalReferenceNumber": "Test1234",
    "startDate": 1670524480721,
    "endDate": 1670524480721,
	"expirationDate": 1670524480721,
	"active": true,
	"createdDate": 1541527537548,
    "createdUser": "JoeSchmo",
	"modifiedDate": null,
    "modifiedUser": null,
	"booked": false
}]


Code Block
languagejs
titlePOST /appointmentIntent
linenumberstrue
collapsetrue
{
    "appointmentIntentId": 2,
    "businessId": 43111,
    "clientId": 4761823,
    "description": "Test Description",
    "externalReferenceNumber": "Test1234",
    "startDate": 1670524480721,
    "endDate": 1670524480721,
	"expirationDate": 1670524480721,
	"active": true,
	"createdDate": 1541527537548,
    "createdUser": "JoeSchmo",
	"modifiedDate": null,
    "modifiedUser": null,
	"booked": false
}


Code Block
languagejs
titlePUT /appointmentIntent
linenumberstrue
collapsetrue
{
    "appointmentIntentId": 2,
    "businessId": 43111,
    "clientId": 4761823,
    "description": "Test Description",
    "externalReferenceNumber": "Test1234",
    "startDate": 1670524480721,
    "endDate": 1670524480721,
	"expirationDate": 1670524480721,
	"active": true,
	"createdDate": 1541527537548,
    "createdUser": "JoeSchmo",
	"modifiedDate": null,
    "modifiedUser": null,
	"booked": false
}





Appointment Intent Object Values


Property nameTypeRequiredDescription
appointmentIntentIdintegerYes, on PUT callsProvides unique numeric ID for the specified Appointment Intent.
businessIdintegerYesProvides unique numeric ID for the business the specified note belongs to.
clientIdintegerYesProvides unique numeric ID for the client that the specified Appointment Intent belongs to.
descriptionstring
Provides a description of the Appointment Intent. Does display on the Client Scheduler. 
externalReferenceNumberstringYesProvides a reference to your external system. i.e. For a technical support meeting, this may be the technical request ticket id/number. 
createdUserstring
Displays the username of user who created the specified Appointment Intent.
createdDateinteger
Displays as date the specified Appointment Intent was created in milliseconds elapsed since January 1, 1970 00:00:00 UTC form.
modifiedUserstring
Displays the username of user who last modified the specified Appointment Intent.
modifiedDateinteger
Displays as date the specified Appointment Intent was last modified in milliseconds elapsed since January 1, 1970 00:00:00 UTC form.
startDatedateYesThe date that the appointment intent can start being booked. 
endDatedateYesThe last date that the appointment intent can be booked. 
expirationDatedate
The date that the appointment intent expires and can no longer be booked.
activeboolean
Whether the appointment intent is active or not (also referred as "deleted")
bookedboolean
Whether the appointment intent has been booked or not.