Loading the Checkout via Firehose
Guest Checkout Route - ScheduledSessions
- First and foremost, please check that the following criteria (detailed more thoroughly here) are met:
- The
ScheduledSessionis bookable; - The
SessionSeriesis bookable; and - The
startDateof theScheduledSessionis within the window specified by theSessionSeries.
- The
- Once you are satisfied that the
ScheduledSessionis booklable, URI encode thedata.identiferfound in thescheduled-sessionsfeed and append it tohttps://{checkoutBaseUrl}/v1/scheduled-sessions/. - This will load the Checkout with the details of the chosen
ScheduledSession, in which the booker can enter their name, email address, and card details to complete the booking.
Guest Checkout Route - Slots
Authenticated Checkout Route - ScheduledSessions
- First and foremost, please check that the following criteria (detailed more thoroughly here) are met:
- The
ScheduledSessionis bookable; - The
SessionSeriesis bookable; and - The
startDateof theScheduledSessionis within the window specified by theSessionSeries.
- The
POSTtohttps://{checkoutBaseUrl}/api/checkout-sessions/to make the Webhook Request, being sure to include all the relevant information detailed here, includingdata.identiferfrom theScheduledSession(NB this does not need to be URL encoded).- Take the URL from
potentialAction[].targetin the Response Webhook, which will load a Checkout page. - The booker can then complete the booking without having to enter their name and email address (this is because this information was included in the Request Webhook). They only need to enter their card details where it is a paid-for (i.e. not free) session.
- On completion of the booking, imin will send a confirmation email and also fire off a Success Webhook, which will include relevant information for you to present to the booker in whatever way you see fit.