v3/Booking API's

Delete Booking

This API endpoint allows you to delete a booking and freeze associated Ekeys.

Method

DELETE

URL

https://api.mosler.in/api/v3/booking/delete/:referenceId

Headers

NameTypeRequiredDescription
apikeystringYesAPI Key

Request Parameters

NameTypeRequiredDescription
referenceIdstringYesThe unique identifier for the booking.

Response Parameters

NameTypeDescription
messagestringThe message returned by the API.
codenumberThe status code returned by the API.
errorbooleanIndicates if an error occurred during the API call.
dataobjectThe data returned by the API.

Response Example

{
    "message": "Successfully deleted Booking.",
    "code": 7002,
    "error": false,
    "data": 1
}