booking/create
A call to booking/create must pass in at least one SLIP - either directly as an array of slips, or by using a session_id from a previously created booking/session containing at least one SLIP. Additionally, the call must pass in any customer input entered to fields from booking/form, for all required fields and any optional fields.
Public API
If the Public API is enabled, unauthenticated users can make requests to the /booking/create endpoint. This is the same functionality as a customer making a booking through the UI on the Hosted Booking Page.
- POST /api/3.0/booking/create
Attempt to create a booking from an existing session, with customer form input sent in the request in the “form” parameter.
- Form Parameters:
array form – An array of fields containing customer details matching the required and optional booking fields (e.g.
form[customer_name]="John Smith"
)string session_id – The session ID containing the booking items to be committed. Can also be sent as a cookie.
string/array slip – A SLIP or array of SLIPs that can be passed directly to booking/create, bypassing the need to specify a session_id