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 eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJ1X25vaWhzY21YU2Jja1hBeHVvcEM0U2VENWxGNjhOb1dxTnMwWlVUV2RBIn0.eyJleHAiOjE3NDE3MzQ4MTcsImlhdCI6MTc0MTczMTgxNywiYXV0aF90aW1lIjowLCJqdGkiOiI1YjA3NGVhMi03ODIwLTQ0NDAtYmM3Mi0yMDlkMmJlODM5MTciLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjEwMzQyL2F1dGgvcmVhbG1zL3N1cGVybG9vcCIsInN1YiI6ImNhMGNlNjZhLTQwOGMtNGIzYS1hYTczLTExOWI0OTIzNDZiYyIsInR5cCI6IkJlYXJlciIsImF6cCI6InBvcnRhbC1hcGkiLCJzZXNzaW9uX3N0YXRlIjoiNTEwMTJhZDEtZmUzOS00MjY5LWIyNTAtOTIxYmIxYzljODlhIiwiYWNyIjoiMSIsInNjb3BlIjoiIiwic2lkIjoiNTEwMTJhZDEtZmUzOS00MjY5LWIyNTAtOTIxYmIxYzljODlhIiwiY2xpZW50SWQiOiJwb3J0YWwtYXBpIiwiY2xpZW50SG9zdCI6ImxvY2FsaG9zdCIsInVzZXJJZCI6IjExMDAxIiwiY2xpZW50QWRkcmVzcyI6IjEyNy4wLjAuMSIsImFwcHMiOiJwb3J0YWwtYXBpIn0.N3hTfna3CX5yiU9_py51NnrB0uB7D0jcFrjA-Iw6Pe4EaheIt0xt--fsJW3tn9QtZnoGgozk7RLJEi0uCyULjalmGCEFiCeMLy6srP3bOyllnuHzkCJNrjO3kt05wamo2sPCXhrxc3x_n64yL3-khH1IQzri6EJmBDUkWTeobiI4kdQY8kfsYL9SXjLOuDQ6pWWLp1KHoeM0yGeuOal7rYcEk0heBie5mTEYzXROaPv3HhPcyGIKaUOHiULCq6iJksQFsq2kOCLBF563Yc6WVopTKkS79QAbDN6hwa5oZm-FAgtMPdlcc5o--1YVpQ6JRUvrqinrV8LVWRFfbGR_iQ
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