Webhook
Webhooks allow RentalCover to push booking events to your server in real time, so you don't need to poll Notifications/list. When a booking is created, updated, or cancelled, RentalCover sends an HTTP POST to a URL you configure.
Setup
Expose an HTTPS endpoint on your server that accepts HTTP POST requests.
Contact your Cover Genius CSE with your endpoint URL and the events you want to subscribe to. Your CSE configures the webhook in the RentalCover backend.
Verify HMAC signatures on all incoming requests (see HMAC Verification below).
Return an HTTP 2xx status code to acknowledge each event.
Available events
booking.created
A new booking has been confirmed.
booking.updated
A booking has been modified (dates, cover, or customer details changed).
booking.cancelled
A booking has been cancelled.
Acknowledging events
Your endpoint must return HTTP 2xx to confirm receipt. If your server returns a non-2xx response, RentalCover considers delivery failed. Contact your CSE for retry behaviour details.
HMAC verification
Each webhook request includes an HMAC-SHA256 signature in the X-Signature header. Verify this signature before processing the payload. It confirms the request originated from RentalCover and was not altered in transit.
Reject requests with an invalid signature without acknowledging them.
Your HMAC secret key is provided when your webhook is configured by your CSE.
Cancellation event
Payload
Fields
Event
string
Event type identifier. Example: BOOKING_CANCELLED.
Bookings
array
Array of affected bookings. Contains multiple entries for bundled bookings.
Bookings[].BookingId
string
Internal booking ID.
Bookings[].Reference
string
Booking reference (ends in -INS). Use this for all claims and support.
Bookings[].Type
string
Policy type.
Bookings[].Code
string
Policy code.
Bookings[].SupplierReference
string
Insurer's policy reference.
Bookings[].MetaData
string
JSON string of the MetaData passed in the original quote or purchase request.
Status
string
Booking status at the time of the event.
Currency
string
Three-letter ISO 4217 currency code.
TotalAmount
float
Original total protection amount.
TotalAmountFormatted
string
Formatted total amount.
PartnerReference
string
Your booking reference, if provided.
PartnerCollectingPayment
boolean
Whether the partner was collecting payment.
FromDate
datetime
Protection start date.
ToDate
datetime
Protection end date.
CancelledOn
datetime
Date and time the booking was cancelled.
Source
string
Where the cancellation originated: Frontend, Backend, or API.
CancelReason
string
Reason provided for the cancellation.
Last updated
Was this helpful?

