Migrated from Redmine #1250 | Author: Y R
Status: Feedback | Priority: Immediate, there is BUG! | Created: 2024-07-04
Hi,
We’re able to create bookings with the /admin/bookings endpoint, but with the same Token, we can’t create clients at the /admin/clients endpoint; we get “access denied.”
Thank you.
Y R wrote:
Endpoint is actually, https://user-api-v2.simplybook.me/admin/clients, we get 404 page, not access denied.
Dmytro Bondarev wrote:
Hi, please provide more details.
We need http request and response.
Company login and user login (that you use to login).
Y R wrote:
Company login is: neuroprp
User to log in is: simplybook-dev@inneranchor.ca
Rquest:
curl --location ‘https://user-api-v2.simplybook.me/admin/clients’
–header ‘X-Token: add-token-here’
–header ‘X-Company-Login: neuroprp’
–header ‘Content-Type: application/json’
–data-raw ‘{
“email”: “yr-test@gmail.com”,
“name”: “YR”
}’
Response:
SimplyBook.me — Free Online Appointment Scheduling Service
Ouch!
ERROR
I'm sorry, that page is in another universe!
Back home
⏎
Y R wrote:
Hi, is that sufficient information?
Dmytro Bondarev wrote:
Hi,
It seems it is not Access denied error.
Please try to add phone parameter for client.
curl --location ‘https://user-api-v2.simplybook.me/admin/clients’
–header ‘X-Token: add-token-here’
–header ‘X-Company-Login: neuroprp’
–header ‘Content-Type: application/json’
–data-raw ‘{
“email”: “yr-test@gmail.com”,
“phone”: “”,
“name”: “YR”
}’
Y R wrote:
Hi, that worked thanks. Worth updating the API documentation to indicate it’s mandatory as we had removed it as a mandatory field in the UI.
Dmytro Bondarev wrote:
Hi, yes.
Sorry for inconvenient we will fix that.