Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

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

On this page




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.

POST /appointmentIntent
{
    "businessId": 43111,
    "clientId": 4761823,
    "description": "Test Description",
    "externalReferenceNumber": "Test1234",
    "startDate": 1670524480721,
    "endDate": 1670524480721,
	"expirationDate": 1670524480721
}
PUT /appointmentIntent
{
	"appointmentIntentId": 2,
    "businessId": 43111,
    "clientId": 4761823,
    "description": "Test Description",
    "externalReferenceNumber": "Test1234",
    "startDate": 1670524480721,
    "endDate": 1670524480721,
	"expirationDate": 1670524480721
}




Appointment Intent API Responses

GET /appointmentIntentList
[{
 	"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
}]
GET /appointmentIntentList/{clientId}
[{
 	"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
}]
POST /appointmentIntent
{
    "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
}
PUT /appointmentIntent
{
    "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
}




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")
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.