[#600] REST API - Unable to Authorise

Migrated from Redmine #600 | Author: Simon Turk
Status: New | Priority: High, I’m very impatient | Created: 2020-11-04


Hi there,

I am unable to authorise using the Rest API
I have tried company: manlysurfnslide and manlysurfnslide.enterpriseappointments.com and in each case I am getting an “Invalid company” response.

+REQUEST+
URL: https://user-api-v2.simplybook.me/admin/auth
Method: Post
JSON Body: {
“company”: “manlysurfnslide”,
“login”: “”,
“password”: “”
}

+RESPONSE+
{
“code”: 400,
“message”: “Invalid company”,
“data”: ,
“message_data”:
}

Redmine Admin wrote:

hi, you need to use enterprise endpoint: https://user-api-v2.enterpriseappointments.com

Simon Turk wrote:

THanks, sorted. I must have missed that in the docs!