Vacation
These are the endpoints that are available under the /vacation path, which shows what hours your locations have been closed down for a vacation.
Endpoint | Description |
---|---|
GET /vacation/{vacationId} | Returns a JSON object for the specified vacation. |
POST /vacation | Creates a new vacation object on an account. Request body/payload: Must pass a vacation object. For these calls, you need to pass a vacation 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 vacation object in the responses section below and have indicated the required fields in the object values table at the bottom of this page. |
PUT /vacation/{vacationId} | Updates an existing vacation object. Request body/payload: Must pass a vacation object with the desired changes made. For these calls, you need to pass a vacation object with all required fields and any fields you want to update filled in the body of the payload. We have an example of a vacation object in the responses section below and have indicated the required fields in the object values table at the bottom of this page. |
DELETE /vacation/{vacationId} | Removes a vacation object from view by setting its active property to false |
There are no parameters included with vacation calls.
The objects below represent the minimum viable objects to pass that are needed to create or update a vacation 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.
Property name | Type | Required | Writable | Description |
---|---|---|---|---|
businessId | integer | Yes | Provides unique numeric ID of the business offering the specified vacation. | |
color | string | Yes | Displays any color chosen to override the specified vacation on the backoffice calendar. | |
createdDate | string | Displays as the date the specified vacation was created as YYYY-MM-DD with time after. | ||
createdUser | string | Displays the username of the user who created the specified vacation. | ||
description | string | Yes | Displays any description that was added to the specified vacation. | |
endDate | string | Yes | Yes | Provides the date that the specified vacation is set to end as YYYY-MM-DD. |
endTime | integer | Yes | Yes | Provides the time that the specified vacation is set to end displayed in military format. Automatically gets set to 2400. |
modifiedDate | string | Displays as the date the specified vacation was last modified as YYYY-MM-DD with time after. | ||
modifiedUser | string | Displays the username of the user who last modified the specified vacation. | ||
reason | object | Yes | Yes | Displays the reason object connected to the specified vacation - for more info, see Services API page. |
staff | object | Yes | Displays the staff object connected to the specified vacation - for more info, see Staff API page. | |
startDate | string | Yes | Yes | Provides the date that the specified vacation is set to begin as YYYY-MM-DD. |
startTime | integer | Yes | Yes | Provides the time that the specified vacation is set to begin displayed in military format. Automatically gets set to 0. |
status | string | Yes | Yes | Displays the status of the specified vacation. Possible values include Open, Closed, or Cancelled. |
vacationId | integer | Yes, on PUT calls | Provides unique numeric ID of the specified vacation. |