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);