[#1453] API Request – /admin/clients/{id} returning 403 Access Denied

Migrated from Redmine #1453 | Author: dtech dtech
Status: Feedback | Priority: High, I’m very impatient | Created: 2025-08-05


Hello SimplyBook Support,

I am integrating the SimplyBook.me Admin API into my Laravel application.
I am successfully authenticating using the /admin/auth endpoint, and I receive a token.

$payload = [
‘company’ => ‘company_hidden’,
‘login’ => ‘login_hidden’,
‘password’ => ‘password_hidden’,
];

$response = Http::withHeaders([
‘Content-Type’ => ‘application/json’,
])->post(‘https://user-api-v2.simplybook.me/admin/auth’, $payload);

{
“token”: “hidden_token”,
“company”: “company_hidden”,
“login”: “login_hidden”,
“refresh_token”: “hidden_refresh_token”,
“domain”: “simplybook.me”,
“require2fa”: false,
“allowed2fa_providers”: ,
“auth_session_id”: “”,
“id”: null
}

After authentication, I try to get a client by ID:

$id = 19;
$response = Http::withHeaders([
‘Content-Type’ => ‘application/json’,
‘X-Company-Login’ => ‘company_hidden’,
‘X-Token’ => ‘hidden_token’,
])->get(“https://user-api-v2.simplybook.me/admin/clients/{$id}”);

{
“code”: 403,
“message”: “Access denied”,
“data”: ,
“message_data”:
}

My Question:

Why am I receiving a 403 Access denied when trying to retrieve a client?

Is the id in /admin/clients/{id} the same as the customer_id I get in my payment callback, or is it a different internal SimplyBook client ID?

Do I need to enable specific permissions or features in my SimplyBook account to access client details via the Admin API?

Thank you,

Dmytro Bondarev wrote:

Hi,
please provide company login and client id.