RE: Downloading invoice documents (PDF) from REST or SOAP API

Is it possible to download the invoice PDF via the REST (preferred) or SOAP API?

In the interface I can find them here:

Laurens Rookie Asked on June 19, 2020 in SuiteTalk.
Add Comment
3 Answers

If you can call a Restlet (could be the name / internalid of a file), the response could be the content of a pdf in the filecabinet , yes.

Beginner Answered on June 19, 2020.

Thanks for your answer Nelliott.

We are trying to build a generic integration for multiple clients. This requires us to create a custom script for each of our clients, correct? I assume this is not possible via the default REST API? Maybe via a custom field?

on June 19, 2020.

To clarify, if you’re looking to create a RESTlet that returns a PDF from the filecabinet, this could be quite simple.

You would need to pass in something that identifies the file by name if you do not know the internal id of the file in the filecabinet.

The RESTlet would search for the file, load and return the content as base64 encoded content or a suitable message if the file is not found.
You could manage access via access tokens with one RESTlet serving all clients.

on June 22, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.