Working with trial offers

Intro

Use case description of how trial offers are serviced via the Open API and what user flow is envisioned for partners

Relevant Endpoints

Trial offers in the PerfectGym Next

Trial offers are a central piece for enticing new leads to join up by testing a day in the gym or a specific class. Within the PerfectGym Next, operators can setup a distinct Trial Offer Configuration which details booking configurations as well as determining what information is required on enrolment.

trial-offers1.png

Besides the administrational setup, operator then configure what services and/or classes are bookable under a specific trial offer configuration.

trial-offers2.png

Display, validation and booking of trial offers

The Trial Offer collection in the Open API follows the following envisioned user flow:

Trial offer booking confirmation

Within the trial offer configuration the confirmationOfBookingTerm object defines until when a booking needs to be confirmed in order to take place, for example: Personal Training Trial Session is booked by a lead with a confirmationOfBookingTerm set to 2 days. This means that the lead needs to confirm this booking no latest than 2 days before the appointment. If no confirmation occurs, the appointment is automatically cancelled.

The actual confirmation is handled by the PerfectGym Next - the leads email (mandatory in every case) is used to send out a booking confirmation email in the name of the respective studio. This email contains a simple confirmation link that the lead needs to follow in order to confirm their trial offer booking.

To inform partners about the successful booking confirmation, a webhook of type CLASS_BOOKING_CREATED or APPOINTMENT_BOOKING_CREATED is sent.

Trial offer webhook events

For the trial offer collection, all events related to the classes and bookable appointments are relevant.

Full list of events can be found here: Event types