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.eyJzdWIiOiJjYTBjZTY2YS00MDhjLTRiM2EtYWE3My0xMTliNDkyMzQ2YmMiLCJjbGllbnRJZCI6InBvcnRhbC1hcGkiLCJjbGllbnRIb3N0IjoibG9jYWxob3N0IiwiaXNzIjoiaHR0cDpcL1wvbG9jYWxob3N0OjEwMDM3XC9hdXRoXC9yZWFsbXNcL3N1cGVybG9vcCIsInR5cCI6IkJlYXJlciIsInVzZXJJZCI6IjExMDAxIiwiY2xpZW50QWRkcmVzcyI6IjEyNy4wLjAuMSIsImF6cCI6InBvcnRhbC1hcGkiLCJleHAiOjE3NTc3MjI2MzQsImlhdCI6MTc1NzcxOTAzNCwianRpIjoiNWIwNzRlYTItNzgyMC00NDQwLWJjNzItMjA5ZDJiZTgzOTE3IiwiYXBwcyI6InBvcnRhbC1hcGkifQ.DvgcbfliEr-uN02YC4vNYszbfUz6cwRKjt8de8f5aVTPurTHOr_2WJBrNzSBs1k0qrtVyhUrMlK8ykgpSQBondTPv1H6S0TNE7Lr1-r8x7e_sM-FFPXGo2IOrE__96lMwVUC9P9JmvKtiFwk-SKSTFY4qTDXitw5AnocWGpcNJIYoIUuIJ8EfR2IilBDFfhC5A2zdhTe3V7zIHtehdAVpKD_Fb2F_RVt0r80j5uzxYVrlaaVb9P3AAZwHQMPx-pFXQHOm9Ero5q-BcdqIGszh7oP2JJcNktqqJLHkLU-jT_b1n8iMfqYlMK2QlOvK2gM08iKRp6wS1YlxBexVW__JA
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