Introduction
Cancelling an appointment-request means it can no longer be converted to a booking. Before cancelling an appointment-request you must have created one.
Note: this is NOT cancelling an appointment. It is cancelling the appointment-request.
Request Lifecycle
To cancel the appointment-request, you must send a POST request to /api/connect/orders/appointment-requests/cancel
with the body of the request
containing the appointment-request id (appointmentRequestId).
Request Specifications
Version | Header | Changes |
---|---|---|
1 (Deprecated) |
X-API-VERSION=1 |
Initial Version |
2 (Deprecated) |
X-API-VERSION=2 |
No Change |
3 |
X-API-VERSION=3 |
No Change |
4 |
X-API-VERSION=4 |
No Change |
5 |
X-API-VERSION=5 |
No Change |
6 |
X-API-VERSION=6 |
No Change |
7 |
X-API-VERSION=7 |
No Change |
API Version 1, 2, 3, 4, 5, 6 and 7 - POST
POST Request
Verb |
POST |
URI |
/api/connect/orders/appointment-requests/cancel |
Name | Description |
---|---|
|
The OAuth bearer access token |
|
The version of the endpoint you are accessing |
Path | Type | Description | Required |
---|---|---|---|
|
|
The id of the appointment-request to cancel |
Required |
POST Response
Status Code | Meaning |
---|---|
204 |
The request was completed successfully |
401 |
Bearer Token missing or invalid |
404 |
You are not authorised or The id (of the appointment-request) provided does not exist |
500 |
There was an unexpected error processing the request |
API Version 1, 2, 3, 4, 5, 6 and 7 - Examples
Appointment Cancelled
A request to cancel an appointment-request is created by sending a request JSON object as a POST request to
/api/connect/orders/appointment-requests/cancel
.
POST /api/connect/orders/appointment-requests/cancel HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer eyJraWQiOiJ1X25vaWhzY21YU2Jja1hBeHVvcEM0U2VENWxGNjhOb1dxTnMwWlVUV2RBIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJjYTBjZTY2YS00MDhjLTRiM2EtYWE3My0xMTliNDkyMzQ2YmMiLCJjbGllbnRJZCI6InBvcnRhbC1hcGkiLCJjbGllbnRIb3N0IjoibG9jYWxob3N0IiwiaXNzIjoiaHR0cDpcL1wvbG9jYWxob3N0OjEwMzcyXC9hdXRoXC9yZWFsbXNcL3N1cGVybG9vcCIsInR5cCI6IkJlYXJlciIsInVzZXJJZCI6IjExMDAxIiwiY2xpZW50QWRkcmVzcyI6IjEyNy4wLjAuMSIsImF6cCI6InBvcnRhbC1hcGkiLCJleHAiOjE3NDgyNDE5ODIsImlhdCI6MTc0ODIzODM4MiwianRpIjoiNWIwNzRlYTItNzgyMC00NDQwLWJjNzItMjA5ZDJiZTgzOTE3IiwiYXBwcyI6InBvcnRhbC1hcGkifQ.BZuj6Y1QggQ0dWPfESF-kfME8xF3vt6rr-VLQp-bZPCXJ9m04XHWFBnMWrFIjhVDO5cOS2B7fzfWisLjZPt-pxqAVudaamJOMWKQ7JCKlu2C4jcg1pjaJdfxQJfszmc-umZ6AXE0IhGPhgkciadodpPtWMM4-Rx5du9oY56zqvCdbX9G18QXbU3AhaqeHO9yMfaJC4SPanWmj5c1-BenozQvo0e31d8osYc-ep-pae0wcQ5F0t8o-NpOVAg29gbzUHR72C42QqrQ9WSeKeYEcWXgOArqy3OYO3vMY8MqxxRJ2nlL-7kZ1wRCh_Zb1zRmR_RgBaPqjmpRIueE-iyPVQ
X-API-VERSION: 7
Content-Length: 28
Host: localhost:8080
{"appointmentRequestId":300}
If all required fields were given, then the response to the request will have:
-
a http status of 204
HTTP/1.1 204 No Content
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY