[#95] book API call location problem

Migrated from Redmine #95 | Author: Egor Timofeev
Status: Resolved | Priority: Normal | Created: 2018-01-24


Hello,

When I’m doing book api call booking is created. Later when I request information about this booking I get it but without location details. I get it as null. In the same time when I create booking from simplybook interface location coming back to me properly.
Could you please advice how booking needs to be created through API so location details are saved there?

Thank you

Dmytro Bondarev wrote:

Hi!
Please pass @location_id@ parameter in $additional object.
For example:

$additional = [
    'location_id' => 1
];
book($serviceId, $providerId, $date, $time, $clientData, $additional, ...);

Egor Timofeev wrote:

Thank you. It works.

Can you please list all other additioanl fields I can use?
In according to the documentation API documentation | SimplyBook.me Online Scheduling I can also send [promocode].
Can I send some [comment] field?