[#1262] Can't create clients from admin API

Migrated from Redmine #1262 | Author: Alan Miranda
Status: New | Priority: High, I’m very impatient | Created: 2024-08-16


I’m using the admin API to integrate SimplyBook into my website’s API.
So far, all the endpoints are working well, except for the Create Client endpoint, which returns a 403 error.

I’m using this endpoint:
POST https://user-api-v2.simplybook.me/admin/clients

In my headers, I’m including the company login (X-Company-Login) and token (X-Token).
This is the body of my request:
{
“name”: “Client name”,
“email”: “client_email@test.com”,
“phone”: “+123456789987”
}

I have read the API documentation and searched the admin panel, but I haven’t found anything to resolve this issue.

Dmytro Bondarev wrote:

Hi, please make sure you logged in with user that has access to make clients.
If you still think that it is correct, please provide request with company login and token and then change password for this user.

Alan Miranda wrote:

Dmytro Bondarev wrote:

Hi, please make sure you logged in with user that has access to make clients.
If you still think that it is correct, please provide request with company login and token and then change password for this user.

I’m sorry, I realized that I was attaching the company login and token to the headers in the Create Client request, even though the previous Login request already did that.
My headers were duplicated. My bad! :slight_smile:

Thanks for the reply.