[#1278] Using clientID when creating booking with "Company Public Service"

Migrated from Redmine #1278 | Author: jan nguyen
Status: New | Priority: Immediate, there is BUG! | Created: 2024-09-11


Hi,

When I use this API to book a booking: API documentation | SimplyBook.me Online Scheduling

book ($eventId, $unitId, $date, $time, $clientData, $additional, $count, $batchId, $recurringData)

I need to input the $clientData, Ex: {name: ‘Name’, email: ‘test@gmail.com’, phone: ‘+38099999999’}

Then a new client will be created.

If I already have the client id, how can I create a booking using that API with client id instead of using name, email, etc …

Thanks.

Dmytro Bondarev wrote:

Hi, you can pass
client_id, client_sign to clientData in this case.
Where client_sign = md5(clilentId + clientHash + yourSecretKey)