Notify about booking deletion

POST /booking-event/delete/{secret}

Notify about booking deletion

Path parameters

  • secret string Required

    Security secret received from Holibob

    Minimum length is 5.

Body Required

Body Required

Responses

  • 200 application/json

    Success

    Hide response attribute Show response attribute object
    • success boolean

      Indicates if the operation was successful

  • 403 application/json

    Returned when provided secret is invalid

    Hide response attribute Show response attribute object
    • message string Required

      Minimum length is 1.

  • 422 application/json

    Returned when one of validation rules has been violated

    Hide response attributes Show response attributes object
    • message string Required

      Minimum length is 1.

    • violationList array[object] Required

      At least 1 element.

      Hide violationList attributes Show violationList attributes object
POST /booking-event/delete/{secret}
curl \
 -X POST https://webhook.production.holibob.tech/booking-event/delete/{secret} \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'consumerTripPartnerExternalReference=y8c6OBIEZmKXeD6Vbg78'
curl \
 -X POST https://webhook.production.holibob.tech/booking-event/delete/{secret} \
 -H "Content-Type: application/json" \
 -d '{"consumerTripPartnerExternalReference":"y8c6OBIEZmKXeD6Vbg78"}'
Request example
{"consumerTripPartnerExternalReference"=>"y8c6OBIEZmKXeD6Vbg78"}
Request example
{
  "consumerTripPartnerExternalReference": "y8c6OBIEZmKXeD6Vbg78"
}
Response examples (200)
{
  "success": true
}
Response examples (403)
{
  "message": "Invalid secret"
}
Response examples (422)
{
  "message": "Invalid data",
  "violationList": [
    {
      "message": "String must contain at least 10 character(s)",
      "propertyPath": [
        "consumerPhone"
      ]
    }
  ]
}