I'm trying to use a http call to generate the PDF and get the base64 or binary, but I get an error:
The page you were looking for could not be authorized.
Error message: Uh-oh! Looks like you have stumbled upon some top-secret records. Sorry, Administrator (id=2) doesn't have 'read' access to: - Journal Entry (account.move) If you really, really need access, perhaps you can win over your friendly administrator with a batch of freshly baked cookies. This seems to be a multi-company issue, you might be able to access the record by switching to the company: admin - company.
The problem with this, is that I got all the required access into my admin account to read the journal entry for account.mvoe and I also checked that the company is in my allowed companies.
I also tried setting the argument to allow that specific company id, but still I get the 403 forbidden.
I don't have any problems using the External JSON-2 API with user access and creating invoices just by ID, but I couldn't find a way of generating the invoice. I found only the argument download_invoice_documents, but it generates a proforma and not a real invoice.
Is there a way of downloading the invoice directly with JSON-2 API or bypassing the access privileges with the admin account?