[#801] Create client don't send email

Migrated from Redmine #801 | Author: Anthony Ciceron
Status: New | Priority: High, I’m very impatient | Created: 2021-10-13


Hi everyone,

I have a problem with the client creation.

When i create a client with the API, it works fine, but it doesn’t send an email…

But when i create a client without the API, the email is sent.

Does someone have this issue ?

Also their is another solution, for example create a password for a client, that i would send by mail ?

here is my code :

  var url = 'https://user-api-v2.simplybook.me/admin/clients';

  var header = {
      "X-Company-Login":****,
      'X-Token': ****
  }; 

  var data = {
  "name": name,
  "email": email,
  "phone": phone
  };

  var options = {
  'method' : 'POST',
  'contentType': 'application/json',
  'headers': header,
  'payload' : JSON.stringify(data)
  };

  var response = UrlFetchApp.fetch(url, options);

Anthony Ciceron wrote:

So have you work on this feature please ?

thankkksss

Dmytro Bondarev wrote:

Hi! It is admin API and will not send emails.
You can try to use client JSON RPC API for this.

Sorry for delay.