Forum

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

New Discussion

Documents API Access Restricted?

Josias Ribi   ( User )

Commented 2 years ago

I'd like to access "/api/documents" route, but am getting a 403 Error: "User does not have any of the necessary access rights." even though I'm using the correct Basic Auth Headers as described in your docs.

What am I doing wrong?

Josias Ribi   ( User )

Commented 2 years ago

Adding /{id}?company_id=1&search=type:customer resolved the issue. Not documented anywhere, found out about this after a lot of digging :)

Denis Dulici   ( Admin )

Commented 2 years ago

Hello,

For contacts, documents, and transactions you should put the type into the search string:

api/documents?search=type:invoice

Regards

Josias Ribi   ( User )

Commented 2 years ago

Ah, I guess the type:invoice makes more sense. Thanks!

Please login or register to leave a response.

Showing 1 to 4 of 4 discussions