[#1031] "page is in another universe" and "Wrong API key" messages

Migrated from Redmine #1031 | Author: Matteo Frigerio
Status: Feedback | Priority: High, I’m very impatient | Created: 2023-03-21


Good Morning, I encounter the following issues while interacting with simplybook and his APIs:
When I perform the following post (using the actual values instead of XXX)


POST /admin/auth HTTP/1.1
Host: user-api-v2.simplybook.me
Content-Type: application/json
{ "company": "XXX",  
"login": "XXX", 
 "password": "XXX"}

I obtain a “I’m sorry, that page is in another universe!” html page in return, which is also the same page I get from trying to log from the top of the API documentation | SimplyBook.me Online Scheduling page (always with the same company value, which does not result blocked, I checked at XXX.simplybook.pro/v2); also, in the same page, whenever I try the “Start code” button, the api key I take from the API custom features of my simplybook.pro/v2/management profile always results wrong. We have a premium account, any idea of what could be the problem?

Dmytro Bondarev wrote:

Hi,

Please use your server for API and for login. For example your public page is companypage.simplybook.it , then you should use user-api-v2.simplybook.it API endpoint. (the same for simplybook.pro, asia, me , etc.).

To login to admin API you should use user login, password, please check API documentation | SimplyBook.me Online Scheduling

Matteo Frigerio wrote:

The problem persists when I try to login via web page, and when I try to use the “Start Code” button from API documentation | SimplyBook.me Online Scheduling (“I’m sorry, that page is in another universe!” and “Wrong API key” respectively.

Dmytro Bondarev wrote:

Hi, the example page is for me server only.
for public API/JSON RPC only.

Please provide your HTTP request and response, so we can check issue (you can change auth token).

Matteo Frigerio wrote:

Dmytro Bondarev wrote:

Hi, the example page is for me server only.
for public API/JSON RPC only.

Please provide your HTTP request and response, so we can check issue (you can change auth token).

The issue persist, let me attach request and response (credentials are hidden, the rest is correct

Matteo Frigerio wrote:

Dmytro Bondarev wrote:

Hi, the example page is for me server only.
for public API/JSON RPC only.

Please provide your HTTP request and response, so we can check issue (you can change auth token).

An issue in the issue, it does not let me upload any file;

curl --location ‘https://user-api-v2.simplybook.me/admin/auth
–header ‘Content-Type: application/json’
–data ‘{
“company”: “our-domain”,
“login”: “our-user”,
“password”: “our-password”
}’


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

Dmytro Bondarev wrote:

Hi, you should use only company login, not domain.
Example: your domain is {company_login}.simplybook.me , your should pass only {company_login}

Matteo Frigerio wrote:

Dmytro Bondarev wrote:

Hi, you should use only company login, not domain.
Example: your domain is {company_login}.simplybook.me , your should pass only {company_login}

So I did, it was another mistake again (in the url), but now is resolved