[#921] Getting Access Denied for getBookingDetails JSONRPC

Migrated from Redmine #921 | Author: Tushar Singla
Status: Closed | Priority: Immediate, there is BUG! | Created: 2022-08-22


Hi,

I am getting an Access Denied code for getBookingDetails. I am submitting the following request:


{"jsonrpc": "2.0", "method": "getBookingDetails", "params": {"id": 10753}, "id": 6}

to the https://user-api.simplybook.me/admin endpoint.

Following headers are included:

X-Company-Login: readyedgego
X-Token:

I get the following response


{
	"error": {
		"code": -32600,
		"message": "Access denied",
		"data": []
	},
	"id": "6",
	"jsonrpc": "2.0"
}

I am also having issues with getBookingDetails from client perspective as well.

Tushar Singla wrote:

Nevermind, sorry. The token was cached on the server and was making requests with an expired token which was giving “Access Denied”.

Tushar Singla wrote:

This ticket can be closed. Sorry for the inconvenience.