[#566] Additional information

Migrated from Redmine #566 | Author: Dhanushka Krishnajith
Status: New | Priority: High, I’m very impatient | Created: 2020-09-06


When booking an appointment, I would like to collect additional information from the client such as whether they would like to receive promotions (checkbox), and age group (dropdown). I tried to pass this information using the additional fields in book method. But when retrieving booking using admin method getBookingDetails, additional_fields return empty array. Ideally, I would like to retrieve these information in bulk (example: getBooking()). What’s the best way to achieve this?

Redmine Admin wrote:

Hi, please provide RAW HTTP requests for this calls

Dhanushka Krishnajith wrote:

Redmine Admin wrote:

Hi, please provide RAW HTTP requests for this calls

ageRange and subscribe are the additional fields I would like to be stored.

{"jsonrpc":"2.0","method":"book","params":["16",10,"2020-09-17","10:00:00",{"name":"D K","email":"test@gmail.com"},{"ageRange":"18-25","subscribe":true},null,"21"],"id":5}

Redmine Admin wrote:

you have to pass field id (it looks like a hash) not its name. You can get this by calling this method API documentation | SimplyBook.me Online Scheduling

here is ticket with example Support #266: Intake forms - API - Simplybook.me support for developers

Dhanushka Krishnajith wrote:

Redmine Admin wrote:

you have to pass field id (it looks like a hash) not its name. You can get this by calling this method API documentation | SimplyBook.me Online Scheduling

here is ticket with example Support #266: Intake forms - API - Simplybook.me support for developers

Thank you, that worked.