[#433] how to insert data to intake forms when import a book

Migrated from Redmine #433 | Author: Aaron Chen
Status: Closed | Priority: Normal | Created: 2019-10-18


we through API to import some book for a client,

  1. how can we import data into intake forms?
  2. how can we import status at the same time?
    please screenshot, thank you!

Aaron from Octave

Redmine Admin wrote:

Hi, here is API doc, hope it will help:
Company administration service methods - Company administration service methods - SimplyBook.me $additional array|Object - additional params and fields for intake forms
here is example how to save intake forms Support #367: Additional field not saved to SimplyBookMe - API - Simplybook.me support for developers

To set status you can use this method Company administration service methods - Company administration service methods - SimplyBook.me

Aaron Chen wrote:

following your information, we want to insert a book used below code, the last one descreiption,Market Plaza, is the intake form field which is created by us, field name is “Service Area”.
client.book(41, 7, 13, “2019-04-02”, “09:00”, “2019-04-02”, “11:00”,0,“”,2,“”,“”, “Market Plaza”)
but we got a error as below:
JSONRpcClientException {code: -32070, message: “Service Area - ‘’ was not found in the haystack,Value is required and can’t be empty”}
Can you tell us how can we find the sequence number of “Service Area” params in book api?
Please refer enclosed screenshot.

Aaron Chen wrote:

we solved this problem, used getAdditionalFields api
thank you!