Sessions documentation doesn't say it needs a payload

The docs on /sessions (https://www.paybook.com/sync/docs#en&sessions
) say that in order to create a session you need to POST to /v1/sessions, this doesn’t seem to work:

{"rid":"XXX","code":401,"errors":null,"status":false,"message":"Invalid User Id","response":null}

However, sending a valid JSON payload with a valid id_user makes it work:

{"rid":"XXX","code":200,"errors":null,"status":true,"message":null,"response":{"token":"XXX","key":"XXX","iv":"XXX"}}
1 Like