[#1279] Failed legacy api authentication

Migrated from Redmine #1279 | Author: Matteo Frigerio
Status: New | Priority: Immediate, there is BUG! | Created: 2024-09-12


When I perform


curl --location 'https://user-api.simplybook.me/login' \
--header 'Content-Type: application/json' \
--data '{
    "jsonrpc": "2.0",
    "method": "getUserToken",
    "params": [
        "mycompany",
        "myuser",
        "mypassword"
    ],
    "id": 1
}'

I obtain either


{
    "error": {
        "code": -32000,
        "message": "Company does not exist",
        "data": []
    },
    "id": "1",
    "jsonrpc": "2.0"
}

or


{
    "error": {
        "code": -32000,
        "message": "Unexpected error",
        "data": null
    },
    "id": "1",
    "jsonrpc": "2.0"
}

What am I doing wrong?

Redmine Admin wrote:

hi, what is your company booking site url?

Matteo Frigerio wrote:

Redmine Admin wrote:

hi, what is your company booking site url?

We have few of them: unibocconi.secure.simplybook.pro, provaub.secure.simplybook.pro, bbooking.secure.simplybook.pro (the firs element is the one I use as company during the api requests).

Redmine Admin wrote:

you need to use https://user-api.simplybook.pro API endpoint then

Matteo Frigerio wrote:

Redmine Admin wrote:

you need to use https://user-api.simplybook.pro API endpoint then

Thabk you very much; what about the ticket I opened at Bug #1276: Detailed report not working in new version of the APIs - API - Simplybook.me support for developers ? any progress on that?