Disclaimer Form
These are the endpoints that are available under the /disclaimerForm path, which lists all the different disclaimer forms and disclaimer form data you have added to your business account. The disclaimerForm objects represent the templates used for your business' disclaimer forms, whereas the disclaimerFormData objects represent the individual disclaimer forms sent to clients that are based on the disclaimerForm template.
Endpoint | Description |
---|---|
GET /disclaimerForm | Returns all disclaimerForm objects on an account in array format. |
GET /disclaimerForm/{disclaimerFormId} | Returns a JSON object form the specified disclaimer form. |
POST /disclaimerForm | Creates a new disclaimerForm object or updates an existing disclaimerForm object on an account. Request body/payload: Must pass a disclaimerForm object in the request body/payload. If the disclaimerForm object passed doesn't have the disclaimerFormId property filled, the call will create a new disclaimer form. If the disclaimerForm object passed has the disclaimerFormId property filled, the call will update the specified disclaimer form. For these calls, you need to pass a disclaimerForm object with all required fields and any fields you want to set filled in the body of the payload. We have an example of a resource object in the responses section below and have indicated the required fields in the object values table at the bottom of this page. |
POST /disclaimerForm/{disclaimerFormId}/waive/{clientId} | Marks the specified disclaimer form as waived for the specified client. |
POST /disclaimerForm/{disclaimerFormUuid}/to/{clientId} | Creates a disclaimerFormObject on a client object for the client to fill out. |
DELETE /disclaimerForm/{disclaimerFormId} | Removes a disclaimerForm object from view by setting its active property to false. |
GET /disclaimerFormData/business/{disclaimerFormId} | Returns all disclaimerFormData objects sent out by the business to clients for the disclaimerFormId passed in the URL in array format. |
GET /disclaimerFormData/client/{clientId} | Returns all disclaimerFormData objects sent out to the specified client in array format. |
GET /disclaimerFormData/client/{clientId}/form/{disclaimerFormId} | Returns all disclaimerFormData objects sent out to the specified client that use the specified disclaimer form. |
GET /disclaimerFormData/{disclaimerFormUUId} | Returns a JSON object for disclaimerFormData that uses the specified disclaimer form. |
POST /disclaimerFormData | Used by clients to submit disclaimer forms that have been sent. Request body/payload: Must pass a disclaimerFormData object in the request body/payload. For these calls, you need to pass a disclaimerFormData object with all required fields and any fields you want to set filled in the body of the payload. We have an example of a disclaimerFormData object in the responses section below and have indicated the required fields in the object values table at the bottom of this page. |
Data points passed on in the request URL portion of the API call that are used to filter the data being requested.
Parameter | Type | Endpoints to be used with | Description |
---|---|---|---|
appointmentId | integer | POST /disclaimerForm/{disclaimerFormId}/to/{clientId} | Should be set as the appointmentID of the appointment that the specified disclaimer form is being sent for. |
pageNumber | integer | GET /disclaimerFormData/business/{disclaimerFormId} | Works with the pageSize parameter to determine how data gets returned following a GET call. The pageNumber value represents the number of pages on which the clients that get returned appear. |
pageSize | integer | GET /disclaimerFormData/business/{disclaimerFormId} | Works with the pageNumber parameter to determine how data gets returned following a GET call. The pageSize value represents the number of clients appearing on each page of clients that gets returned. |
The objects below represent the minimum viable objects to pass that are needed to create or update a disclaimerForm 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.
disclaimerForm
Property name | Type | Required | Description |
---|---|---|---|
active | boolean | Yes | Indicates whether or not the specified disclaimer form should return on GET calls. |
alreadySubmittedMsg | string | Displayed as the message that gets displayed if the specified disclaimer form has already been submitted. | |
businessId | integer | Yes | Provides unique numeric ID of the business to which specified disclaimer form belongs. |
createdDate | integer | Displays as the date the specified disclaimer form was created in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. | |
createdUser | string | Displays the username of user who created the specified disclaimer form. | |
disclaimerFormId | integer | Yes | Provides unique numeric ID for the specified disclaimer form. |
emailAddress | string | Displays what is set as the Form Email Address of the specified form. | |
expiresInDays | integer | Displays as the number of days left before the the specified disclaimer form expires. | |
formCreationMode | integer | Provides the form creation mode of the specified form. | |
formFields | array | Displays the fields objects that have been added to the specified form in array format. | |
formName | string | Yes | Displays as what is set as the name of the specified disclaimer form. |
formSetupJson | string | Displays as JSON text describing the specified disclaimer form - for a list of properties listed in this object along with their descriptions, see table at the bottom of the page. | |
formType | string | Yes | Displays as form type of the specified disclaimer form. Has acceptable values "HTML". |
modifiedDate | integer | Displays as the date the specified disclaimer form was last modified in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. | |
modifiedUser | string | Displays the username of the user who last modified the specified disclaimer form. | |
reasonList | array | Provides the reason IDs of all reasons connected to the specified disclaimer form. | |
required | boolean | Yes | Indicates whether or not the specified disclaimer form is required. |
stylesheet | string | Displays as the CSS stylesheet used to format the specified disclaimer form. | |
thankYouMsg | string | Displays as the thank you message that gets sent upon completion of the specified disclaimer form. |
disclaimerFormData
Property name | Type | Required | Description |
---|---|---|---|
businessId | integer | Provides unique numeric ID for the business to which the specified disclaimer form data belongs. | |
calendar | object | Displays the calendar object for calendar of the specified disclaimer form data - for more info, see Calendar API page. | |
client | object | Displays the client object for client of the specified disclaimer form data - for more info, see Clients API page. | |
createdDate | integer | Displays as the date the specified disclaimer form data was created, in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. | |
createdUser | string | Displays the username of user who created the specified disclaimer form data. | |
dataJson | string | Displays as JSON object describing any fields on specified disclaimer form data in string form. | |
dateSent | integer | Displays as the date the specified disclaimer form data was sent in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. | |
dateSubmitted | integer | Displays as the date the specified disclaimer form data was submitted in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. | |
disclaimerFormId | integer | Yes | Provides unique numeric ID for the specified disclaimer form data. |
disclaimerFormUuid | string | Provides unique alphanumeric ID for the specified disclaimer form data. | |
expiresBy | integer | Displays as when the specified disclaimer form data is set to expire, in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. | |
formFields | array | Displays the fields objects that have been added to the specified disclaimer form data in array format. | |
ipAddress | integer | Displays as the IP address associated with the specified disclaimer form data. | |
modifiedDate | integer | Displays as the date the specified disclaimer form data was last modified, in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. | |
modifiedUser | string | Displays the username of the user who last modified the specified disclaimer form data. | |
notes | string | Displays as the text of any notes attached to the specified disclaimer form data. | |
required | boolean | Indicates whether or not the specified disclaimer form data is required. | |
status | string | Displays the status of specified disclaimer form. Has acceptable values "WAIVED", "SUBMITTED". | |
waived | boolean | Indicates whether or not the specified disclaimer form data has been waived by the business sending it. |
formSetupJson
Property name | Type | Description |
---|---|---|
fieldType | string | Displays as the field type used for the specified disclaimer form data. |
label | string | Displays as the label appearing on the specified disclaimer form data. |
value | string | Displays as the type of value to be entered on the specified disclaimer form data. |
dataType | string | Displays as the data type used for the specified disclaimer form data. |
inputType | string | Displays as what the input is to fill out the specified disclaimer form data. |
sortOrder | integer | Provides a number that is used to determine the primacy of the forms. |
required | boolean | Indicates whether or not the specified disclaimer form data is required by the business. |
formType | string | Displays as the form type of the specified disclaimer form data. |