Ask the Community
Groups
BMS API : Error 500 when calling get attachments from invoice - Connect IT Community | Kaseya
<main> <article class="userContent"> <p><strong>Question : </strong></p> <p>I get an error 500 when I am trying to get attachments from invoices.</p> <p>API call used is : </p> <p>GET <a href="/home/leaving?allowTrusted=1&target=https%3A%2F%2Fserver_name%2Fapi%2Fsystem%2Fattachments%2F%257BmoduleId%257D%2F%257BobjectId%257D" rel="noreferrer nofollow">https://server_name/api/system/attachments/{moduleId}/{objectId}</a> </p> <p><strong>Answer: </strong></p> <p> An invoice with no pdf generated will give you these issues. </p> <p><img src="https://us.v-cdn.net/6032361/uploads/migrated/3O7ZK9LEYI1N/mceclip0.png" alt="mceclip0.png" class="embedImage-img importedEmbed-img"></img></p> <p> </p> <p>Regenerate the invoice to recreate the pdf. </p> <p><img src="https://us.v-cdn.net/6032361/uploads/migrated/BGT5P2U2T0MI/mceclip1.png" alt="mceclip1.png" class="embedImage-img importedEmbed-img"></img></p> <p> Please contact <a href="https://kaseya.vanillacommunities.com/kb/articles/aliases/kaseya/hc/en-gb/requests/new" rel="noopener nofollow">Kaseya Support</a> if you continue to receive this error</p> </article> </main>