Forum Discussion

myronator's avatar
5 years ago

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

3 Replies

Replies have been turned off for this discussion
  • Han-Solo's avatar
    Han-Solo
    MYOB Moderator
    5 years ago

    Hi myronator , 

     

    Thank you for reaching out, I can see you have also sent us a direct message to our developer inbox. I will reply directly to thiss

  • Haydes's avatar
    Haydes
    MYOB Product Team
    5 years ago

    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