Skip to main content

Delete appointment

DELETE{{server}}/api/v1/appointment/booking

This request deletes the reservation by the booking code.

Request

  • branch (string, required): Branch key

  • bookingCode (string, required): Booking code

  • verification (string, required): Verification code

Response

If the deletion was successful, it returns status 204.

Request​

Authorization​

HeaderValue
AuthorizationSmartToken {{smartToken}}

Headers​

KeyValue
Acceptapplication/json

Body (json)​

{
"branch": "{{branch}}",
"bookingCode": "918369",
"verification": "1967c573-89d7-6f2e-bbcd-0fe2f7117e7b"
}

Code snippets​

curl -X DELETE '{{server}}/api/v1/appointment/booking' \
-H 'Accept: application/json' \
-H 'Authorization: SmartToken {{smartToken}}' \
-H 'Content-Type: application/json' \
-d '{
"branch": "{{branch}}",
"bookingCode": "918369",
"verification": "1967c573-89d7-6f2e-bbcd-0fe2f7117e7b"
}'

Example​

Example request
DELETE{{server}}/api/v1/appointment/booking
Headers (1)
KeyValue
Acceptapplication/json
Body
{
"branch": "{{branch}}",
"bookingCode": "918369",
"verification": "1967c573-89d7-6f2e-bbcd-0fe2f7117e7b"
}
Example response 204 No Content
No response body