Authentication is done using the getUserToken function.
I get my token without any problem.
Then I run a request in this environment. But I systematically get the following response: {“error”:{“code”:-32600,“message”:“Access denied”,“data”:[]},“id”:“1”,“jsonrpc”:“2.0”} **
Whether it’s the getBookings function, or even simple functions like getStatuses or getCountryList passed without parameters.
X POST
-H “Content-Type: application/json”
-H “X-Company-Login: xxxxxxxxxxx”
-H “X-Token: xxxxxxxxxxxxxxxxxx”
–data “{ "jsonrpc":"2.0", "method":"getBookings", "params":[{"edited_date_from": "2025-06-10","edited_date_to": "2025-06-20"}],"id":1 }”
and the response is still: {“error”:{“code”:-32600,“message”:“Access denied”,“data”:[]},“id”:“1”,“jsonrpc”:“2.0”}
Also, This simple example doesn’t work either (I got the same “acces denied” message):
–data “{ "jsonrpc":"2.0", "method":" getCountryList ", "id":1 }”
Hi Val Komarov,
So, as you see in my previous message, I modified my query according to your instructions, but the same error message appears.
Do you have any idea what this could be?