Complete booking object to save. Must include the booking ID, UserID, and all details to be updated. The endpoint will validate ownership, ensure ProductID hasn't changed, clean invalid items (quantity < 1, price <= 0, or type 'trip'), and process voucher validation.
{
"ID": "A1B2C3D4",
"UserID": "user_abc123xyz",
"ProductID": 12345,
"Status": "open",
"Details": {
"Trip": {
"ProductID": 12345
},
"Items": [],
"Travellers": [],
"FirstName": "John",
"LastName": "Smith",
"Email": "john.smith@example.com",
"Phone": "+44 7700 900123",
"Street": "123 Main Street",
"ZipCode": "10001",
"City": "New York",
"CountryCode": "US",
"Voucher": {
"Code": "SUMMER2025"
},
"TotalPrice": {
"Amount": 850,
"Currency": "EUR"
},
"Locale": "en"
}
}