I’m trying to find a way to update a booking after it’s created by adding calculated information—specifically, a value based on the client’s entered address (e.g. travel cost). Since scripting inside the booking form isn’t supported, I want to run this calculation externally after the booking is made and then store the result within the booking.
According to the API docs, the PATCH /bookings/{id} endpoint seems to be intended only for rescheduling. Is that correct, or is it also possible to update other fields such as custom questions or notes?
I’ve tried using the booking intent flow to recreate the booking with the calculated data, but since I only allow one booking per timeslot, I run into a conflict and can’t overwrite the existing slot—nor do I want to enable double-booking.
Questions:
Is there a way to update an existing booking with additional data (like a calculated field)?
If not, is there a recommended way to store post-processed data linked to a booking?
Are notes, tags, or any hidden fields writable via API after booking?
Thanks in advance for any insights—happy to adjust my approach if there’s a better way.
Hi @Quiwie your post was trapped in Spam, my apologies. One quick think you can test out is PATCH to v1/{bookingId}:
{
“notes” : “{yourcalculation information}”
}
This will overwrite whatever you may have in the Notes field for the booking, but it may get you close to what you need. If not, let me know.
Thanks so much for your help — the PATCH v1/{bookingId} solution worked perfectly! I’m now calculating travel costs based on the client’s address right after the booking is created, and injecting the result into the notes field as a JSON string. It’s a clean and reliable workaround for adding post-processed data to a booking without needing to reschedule or recreate anything.
Also… I have to admit I was slightly surprised to find my original post caught by the spam filter — I promise I wasn’t trying to sell sunglasses or crypto.
Thanks again for the quick support — really appreciate it!
@Quiwie if you had it copied and pasted the bot flags it because you “typed your response suspiciously fast”. Forgot to add v1/bookings/{bookingId}, but I am glad you got it sorted out. We are exploring address auto complete which in the future may allow us to factor in drive time and other things like you are trying to do. Still early days.