I am going to receive invoice PDF via API from Business Central, but BC returns the error message.
I use the cloud version of Business Central.
Example of the request:
https:/api.businesscentral.dynamics.com/api/v2.0/companies(111e9e8a-5177-ee11-817e-6045bdc893e2)/salesInvoices(f57ff210-c5af-ee11-a568-000d3a0b28bf)/pdfDocument/pdfDocumentContent
Response:
What is the reason of this issue and how to fix it?
Also, I added web services: