HomeAPI DocumentationBooking Processapi/Booking

6.1. api/Booking

This API call is the primary call for creating bookings in the CRM.

You must provide the uid of the user logged in and making the booking, the eid of the event being booked, and the number of bookings being made (bookingplaces). The uid and eid cannot be empty strings and the bookingplaces must be greater than 0.

Before calling this method, api/CalendarDetail should be checked for if BookOnline is true, the number of remaining places is greater than or equal to the number of intended bookings being made, and if the user should be able to make the booking (is the event a member-only event where they are a non member).

Parameters To Submit

All parameters are required and cannot be empty.

Parameter Parameter Help Parameter Data Type
uid Logged in user’s uid. String – Max 50 chars
eid The event eid being booked onto. String – Max 50 chars
BookingPlaces The number of places to be booked. String – Max 50 chars

 

Return Response

The API call ResponseMessage will return a JSON stringified array containing arrays of the bookings created, provided the number of places submitted. The following fields of data will be returned in the arrays.

Field Field Help
BookingGUID The bid of the booking to be used in subsequent calls.
BookingStatus The booking status as it currently appears in Rubi.
SavingApplied Whether the inserted booking received a discount such as the user being a member.
PotentialSaving The saving applied to the booking.

 

This page was: Helpful | Not Helpful