Hi Nikolai Not 100% sure if this solution meets your requirements or fits in your context, but to get a copy of an order document and its' attachments, you could do something like this:
The result will contain both the order document and attachment as base64 encoded text, so you would have to convert to see the actual pdfs. In this case I split the document and the attachment, if you want it all in one, you can easily omit the "splitAttachments"-argument. Quite similar to get an invoice-pdf:
Content is still base64, as above. Useful examples can be found in this section in the API-doc. Let's hear from the community if anyone has other suggestions or improvements! Øyvind
... View more