Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Contacts and Documents API returning 403

Leonardo Gomes   ( User )

Commented 3 years ago

Hello Again,

I am trying to request the api's on postman, and for some reason contacts, documents, transactions are returning 403 " User does not have any of the necessary access rights."

User is Admin group and has all permissions.

Is there any missing parameters for those specifics endpoints?

GET /api/contacts?company_id=1 HTTP/1.1
Content-Type: application/json
Authorization: Basic YWRtaW5AY29tcGFueS5jb206MTIzNDU2
User-Agent: PostmanRuntime/7.26.10
Accept: */*
Postman-Token: 6df5fb98-2521-4a72-8416-1144f846a045
Host: akaunting-dev.test
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Cookie: XSRF-TOKEN=eyJpdiI6Im16ODcxdTlYeEtOWkdKeEEzR0hjZ1E9PSIsInZhbHVlIjoiZS84b3ROYUxEQ3pwcStMZmpVd3U2bWxsZU16dGpkNmJzSDVOUy94Z1RwMDBEUUU4cnNqdUFUNElFUC8yYmJsL28rdndkRUEwZzNkbmFaU1EyaHA0SzVuN01yUkoxcG1GRGJFSUkzSGN4cjRuQlRJcWFWakpkTFZMbE5ab0FFSmkiLCJtYWMiOiIyYmJmOTlmMjQ2ZWEyYjA2MzNhOTRlZjJiOGUwMzg4ZDZmMDdhYTQzM2E4ZDU2YTIzMWYwNmVmOGJkY2NhZTVlIn0%3D; akaunting_session=eyJpdiI6IlY1K0NxOXBWZHFWZ2N5TENQQmhLZVE9PSIsInZhbHVlIjoiTXQ1Z0xpWUpJRVM3b0hLNzB3bzdlRk9VMUNJU21YMHZWdHFqRXZUN1ZYOTdZcldwV3k0ZTJ6M3hRVEI5eW1xQW5OUzFZcnYzWlRPOFFTbXh2ajNQZ3BZcklyTXI4enBKK2tVRzNzYlpiZXhMd2toTjhwK1J2azZ0L3hRRzlLaHciLCJtYWMiOiI3N2NkZDQyYTQ5Nzc3ZDhiOWYzNGFlZjBiMTJlOGJjMjA5Zjk3NWQ1YTMwZDkyZDc2YzBkNmQwNjM4Yzk3YTAxIn0%3D
HTTP/1.0 403 Forbidden
Date: Fri, 26 Mar 2021 00:44:52 GMT
Server: Apache/2.4.35 (Win64) OpenSSL/1.1.1i PHP/7.4.15
Vary: Authorization
X-Powered-By: PHP/7.4.15
Cache-Control: no-cache, private
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59
Access-Control-Allow-Origin: *
Connection: close
Content-Type: application/json



"message": "User does not have any of the necessary access rights.",
"status_code": 403,

Please login or register to leave a response.

Showing 1 to 1 of 1 discussions