You can get your attachment with the request GET Download document attachment by ID.
The sequence of requests should be like this:
- GET the list of the documents with Idns;
Example: Get Invoices list
- Extract all the Idns from the response;
- GET every document by Idn;
Example: Get Invoice by Idn
- Extract all of the attachment Ids;
- GET attachment by Id.
Example: Download document attachment by Id
Where to find the attachment Id:
Use interface filters in your API request to GET a filtered list of documents via API:
- Apply filters in the Precoro interface;
- Copy a part of the URL;
- And paste this part in your request.