Hello Tengler,
actually we bought a module that does so , but only via the BackOffice. When I access to the BackOffice order page I can upload a pdf that is automatically linked to the order and customer can download it without problems.
When from the dasboard I upload the file I see the following request is done:
https://myurl/admin-dev/index.php?controller=AdminHsCustomInvoice&token=07059546d79997cfxxxxxxxxxxxxx&action=uploadInvoice&ajax=1&id_order=30&qqfile=LI000002.pdf
I tried to make a test with Postman calling the same url but , as expected, it did not work. So I was wondering if there is a way to create a custom endpoint accepting a form data from where I can then call th eAdminHsCustomInvoice controller.
Do yo think would it be possible?
Unfortunately I do not find doc on how to create custom endpoints.
Thank you