Reservation webhook events now include four segmentation fields in the data object: booking_origin_code, segment_code, source_code, and market_segment_code. These fields allow webhook subscribers to filter and identify reservations by origin, segment, source, and market segment without making additional API calls.
Fields return the configured code name, or an empty string if not set on the reservation or not configured for the property.
Affected events: create_reservation, edit_reservation, cancel_reservation, reinstate, noshow_reservation, card_replaced
Example payload:
{
"id": 4442149,
"object": "event",
"event": "create_reservation",
"created_at": "2024-02-10T16:36:37Z",
"data": {
"id": 2903780,
"object": "reservation",
"hotel_id": 123,
"confirmation_number": "104185",
"arrival_date": "2024-02-04",
"arrival_time": "2024-02-04T20:00:00.000Z",
"departure_date": "2024-02-05",
"departure_time": "2024-02-05T16:00:00.000Z",
"status": "reserved",
"booking_origin_code": "WEB",
"segment_code": "GROUP",
"source_code": "CVENT",
"market_segment_code": "CORPORATE"
}
}




