Going live
Before you ask for live use
Section titled “Before you ask for live use”- Your integration handles every outcome in the sandbox: a booking, both kinds of failure, a reschedule, a cancellation and a stop.
- Your webhook endpoint verifies signatures, answers within 10 seconds and deduplicates on
webhook-id. - You send
Idempotency-Keyon everyPOST. - You read
failure.detailandfailure.next_stepsand have somewhere to show them to the member. - You tell the member what was booked. Sunny never contacts the member.
Turning live use on
Section titled “Turning live use on”Sunny turns on live use for your account. After that, any user of your account can create live keys in the dashboard, and add a live webhook endpoint.
What changes with a live key
Section titled “What changes with a live key”- Swap the sandbox key for the live key. The API is the same.
- Real offices are contacted, by phone, in their opening hours. A request sent in the evening waits for the next working morning.
- A request takes as long as the offices take: minutes when the first office books, longer when several must be tried.
- A person at Sunny reviews a failure before you are told, and a booking that does not match what was asked for, such as a date outside the window.
simulateis refused.
In staging, a live key still cannot reach a real office: every call goes to a Sunny test number.
Consent
Section titled “Consent”The patient must have agreed to Sunny contacting offices on their behalf before you send a request. consent.obtained_at is when they did.
Patients under 18
Section titled “Patients under 18”Requests for minors are not supported yet and answer 422 minor_not_supported.