[#289] AddClient creates new client for same data

Migrated from Redmine #289 | Author: Mateusz Przybylek (DIABDIS)
Status: Closed | Priority: Normal | Created: 2018-11-20


Hello,
According to documentation: API documentation | SimplyBook.me Online Scheduling
addClient should create new Client or return existing Client Id when Client with same data already exists:

“If client record with specified data exists method will return an id of this record. Otherwise data
will be stored to database and method will return an id of newly created record.”
Unfortunatly, it allways creates a new Client.

I run this json multiple times:
{
“jsonrpc”:“2.0”,
“method”:“addClient”,
“params”:[
{
“name”:“My Name”,
email":"myname@gmail.com”,
“phone”:“123456789”
}
],
“id”:11
}
A new Client is allways created.

Redmine Admin wrote:

sorry for inconvenience. It is outdated documentation.
This function will always add client. To check if client exists please call API documentation | SimplyBook.me Online Scheduling with his email as searchString

Mateusz Przybylek (DIABDIS) wrote:

Ok, thank you for your help. Issue can be closed.