YouCanBookMe webhooks in production: duplicates, ordering, retries and timeouts
This guide covers the problems you meet when YouCanBookMe sends booking notifications to your endpoint, and how to handle each one. It's about the webhooks YouCanBookMe sends. Its API, which you call, and its Zapier integration are separate.
What YouCanBookMe sends is on the YouCanBookMe webhooks overview, and how to check your request header is on Verify YouCanBookMe webhooks.
At a glance
| Problem | What to do | With Event Gateway |
|---|---|---|
| Timeouts | Store the body and return 2xx, then do the work in a background job | Answers YouCanBookMe at once, then queues the request for your service |
| Duplicates | Send {BOOKING-ID} and an event value, and skip pairs you've processed | Drops repeats before they reach your handler |
| Ordering | Compare {RESCHEDULED-AT} and {CANCELLED-AT} with what you've stored | Logs when each request arrived |
| Retries | Check the notifications timeline and resend failures by hand | Accepts requests while your service is down and retries on your schedule |
| Choosing events | Name the trigger in each payload, and cover both reschedule and cancel triggers | Routes on your event field or URL path |
| Testing | Make a test booking through a URL that forwards to localhost | Forwards to localhost and replays past requests |
| Other limits | Encode special characters and use a long random header over HTTPS | Compares the header you name with the value you enter |
YouCanBookMe timeouts and slow handlers
YouCanBookMe doesn't publish a timeout, so store the body, return 2xx and do the work in a background job.
Why it happens: The help articles give no time limit and don't say which responses count as success. The resend article shows that notifications can be marked as failed, but not what marks them. A slow handler might fail with nothing in the docs to warn you.
YouCanBookMe doesn't use what you send back, either. A staff reply on its forum in 2022 said its system can't parse a reply to a POST, so a response body can't feed data into a booking.
Fix it in your handler:
- Check the header, store the body and return
200. See why to process webhooks asynchronously. - Do the work in a worker, outside the request.
- To write something back to the booking, call YouCanBookMe's API from that worker.
With Event Gateway: Hookdeck answers YouCanBookMe as soon as a request arrives, then delivers it to your service with a delivery timeout you choose.
Duplicate YouCanBookMe notifications
The same notification can reach your endpoint twice, because people can resend it. Send a booking reference and your own event value in every payload, and skip pairs you've processed.
Why it happens: Account owners, administrators and editors can resend a notification that was marked as failed or that was sent successfully. A resend sends the same content, and nothing marks it as a resend. YouCanBookMe's example payload has no booking reference, so copying it gives you nothing to match on. YouCanBookMe doesn't say whether it can ever send a request twice by itself.
Fix it in your handler:
- Add
{BOOKING-ID}or{REF}from the shorthand glossary to every payload. - Track that value and your
eventvalue in a table with a unique constraint. - Allow for more than one event of the same kind. A booking can be rescheduled twice and can have several reminders, so include
{RESCHEDULED-AT}in the key for reschedules and a reminder's owneventvalue for reminders. - Make every handler idempotent.
The glossary doesn't say whether these codes keep their value after a reschedule, so check that on a test booking if you match on them.
With Event Gateway: Hookdeck deduplicates requests before they reach your endpoint, using the fields you choose.
YouCanBookMe event ordering
YouCanBookMe doesn't document delivery order, so don't assume requests arrive in the order things happened.
Why it happens: Each webhook action has its own delay, and reminders and follow-ups are scheduled around the booking. A delayed action can go out after a later change to the same booking. A resend can arrive much later again. The docs also don't say whether an action that's still scheduled is sent once a booking has been cancelled.
Fix it in your handler:
- Leave the delay at
0on any action that updates your records. - Send
{RESCHEDULED-AT}on reschedules and{CANCELLED-AT}on cancellations, and ignore a change older than the one you've stored. - Before a reminder or follow-up triggers work, check that your record of the booking isn't cancelled.
With Event Gateway: Hookdeck records when each request arrived, so you can see the sequence for a booking and replay requests in the order you need.
YouCanBookMe retries and failed notifications
Assume a failed request won't come back by itself. The help articles describe no automatic retry, and a staff reply on the forum said in 2021 that YouCanBookMe had no webhook retry policy. That reply is old and we found nothing newer, so test it if you depend on it.
Why it happens: The documented recovery is manual. The notifications timeline on a booking lists sent and scheduled notifications, and it names a server failure on a webhook as a reason to resend. It has limits:
- Each notification can be resent 2 times, and a resend fires immediately.
- Notifications more than 2 weeks old can't be resent.
- After a booking ends, only follow-up actions can be resent, for up to 2 weeks.
- For a cancelled booking, only notifications about the cancellation can be resent.
- The content can't be edited first, so a broken template sends the same broken body.
The help articles describe no alert when a webhook fails, so plan to check the timeline yourself.
Fix it in your handler and account:
- Keep the endpoint simple, and return
2xxfor anything you've stored. - After an outage, compare your records with the bookings dashboard or the API to see what you missed.
- Open Details on each affected booking, then Notifications timeline, then Resend. Do this soon: a confirmation can't be resent once the booking has ended.
- Process anything past those limits from the data you pulled.
With Event Gateway: Hookdeck accepts each request as it arrives and stores it, so an outage on your side doesn't depend on a resend. It delivers to your service with retries on a schedule you control, and you can replay anything that failed.
Choosing events: telling YouCanBookMe triggers apart
YouCanBookMe has no event names. You pick the trigger for each webhook action, and you have to write the trigger into the payload if your handler needs it. For most integrations that means one action on each trigger you care about, with its own event value.
Why it happens: The body is your own JSON template, and no field or header names the trigger unless you add one. A webhook from a cancellation looks just like one from a new booking.
The triggers are a booking made, rescheduled or cancelled, reminders before the booking, follow-ups after it, and a booking marked as a no-show. The notifications overview splits rescheduling and cancelling into two triggers each, by who initiates, so an action on one misses the other. Some changes fire nothing: a staff reply in 2023 said transferring a booking to another team member doesn't trigger a notification.
Fix it in your handler:
- Add an
eventfield to each action, such as"event": "booking_. The value is your own convention, and YouCanBookMe sends the text you type. A separate URL path per trigger works too.cancelled" - Add an action to both the booker and owner triggers for rescheduling and cancelling. Send
{RESCHEDULED-BY}or{CANCELLED-BY}to see who it was. - Send
{START-ISO}and{END-ISO}for times you'll parse. Many other date codes in the glossary are display text. - Pass custom booking form answers through the shorthand code you set on each question.
- Keep a checklist of your actions. Each has its own URL, header and template, so a change has to be made on all of them.
With Event Gateway: Hookdeck filters can route on your event field or the URL path, and every request is stored with its full body, so you can see what each action sends.
Testing YouCanBookMe webhooks locally
Point a webhook action at a public URL that forwards to your machine, then make a test booking.
Why it matters: YouCanBookMe sends from its own servers, so it needs a public URL. A real delivery is also the only way to see what your template produces, because the docs don't state the Content-Type or which other headers it sends.
How to test it:
- Run
hookdeck listen 3000 youcanbookmeand use the URL it prints as the webhook URL. - Make a test booking, then reschedule and cancel it to fire those triggers.
- Use a name with an accent and a quote mark, to test your encoding.
- Read the body as raw bytes until you've seen a delivery, and parse JSON after the header check.
- Make new bookings for further tests, because each notification can only be resent 2 times.
With Event Gateway: The Hookdeck CLI forwards requests to localhost, and you can replay past requests without making another booking.
Other YouCanBookMe limits
Special characters need encoding tags. Shorthand codes insert what the booker typed. YouCanBookMe provides two tags so special characters arrive correctly: {ENCODE-FOR-JSON} for the payload and {ENCODE-FOR-URL} for the URL. The payload must also be valid JSON, or the editor shows an error.
A request header isn't a signature. YouCanBookMe sends no signature and no timestamp. Your header proves the sender knows the secret, but it doesn't cover the body, and a captured request can be replayed. Use a long random value over HTTPS. For anything consequential, check the booking against the API before acting.
The docs describe methods in two ways. One article says POST changes an existing resource and PUT creates one, and the other says POST creates and PUT is a full update. Neither says whether a GET carries the payload. Use POST unless the receiving system requires something else.
Webhooks may depend on your plan. One help article says webhooks are on all plans, and another says Professional and Teams. Check that your plan has the webhook action before you build on it.
No source IPs are published. The webhook articles name no addresses to allow, so authenticate with the header rather than a firewall rule.
With Event Gateway: Create a source with the YouCanBookMe type, then enter your header's name as API Key Header and its whole value as API Key, including any prefix. A request that fails the check is recorded as failed verification and creates no event. Hookdeck doesn't accept GET on a source by default, so if your action doesn't use POST, check that the source's allowed HTTP methods include it.
Get started with Hookdeck for free and receive YouCanBookMe bookings reliably in minutes.
Keep an outage on your side from losing a booking.
YouCanBookMe's docs describe no automatic retries. Event Gateway checks your header, accepts each request as it arrives, queues it and retries to your service on your schedule.