Skip to content

Going live

  • 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-Key on every POST.
  • You read failure.detail and failure.next_steps and have somewhere to show them to the member.
  • You tell the member what was booked. Sunny never contacts the member.

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.

  • 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.
  • simulate is refused.

In staging, a live key still cannot reach a real office: every call goes to a Sunny test number.

The patient must have agreed to Sunny contacting offices on their behalf before you send a request. consent.obtained_at is when they did.

Requests for minors are not supported yet and answer 422 minor_not_supported.