myronator
5 years agoMember
PDF document
Hi, Just wondering if it is possible to get the actual (source) PDF document from either the "In Tray" or one that is "linked" to a bill - via an API method. thanks John
I just spotted this thread and thought to post an answer here for anyone else looking for this:
While there is currently no exposed endpoint to GET the unlinked documents in a company's In Tray, there are some Attachment endpoints for Bills & Spend Money that you can use to GET the Attachments linked to those transactions.
Here are some links:
Hope this helps others!
The 'Bill Attachment' endpoint returns all attachments associated with the bill in an array.
The items in this (Attachments) array have a URI property - e.g. "URI" : "{cf_uri}/Purchase/Bill/Item/4e03c8..../Attachment/ac7f6c..."
When calling the API at this uri i get a 405 response.
My question, is the a way to get just a single attachment record via an API call ? What is the purpose of exposing this URI?
Also, how does one add more than attachement to a Bill item?
I am using Essentials and can simply link or unlink a single source document but cant see a way to associate multiple attachments to a bill.
thanks
John
Search the Community Forum for answers or find your topic and get the conversation started!
Level up your skills and find answers across all MYOB products