Forum Discussion

The_Doc's avatar
The_Doc
Ultimate Cover User
6 months ago
Solved

Send an invoice from MYOB from API Posted Invoice

Hi Folks   Is it possible via the API to POST a new invoice - but have MYOB then send it to the client?   Reason - we are automating the process of web integration where an order from the web...
  • The_Doc's avatar
    6 months ago

    Hi Folks

     

    The answer appears to be 'yes' - there is a specific endpoint for email sending from the api - it has been there since 2019 - fiddly no less - you need the UID of the invoice - so if you first POST a Sales Order - and that needs converting to a Sales Invoice - you have to DELETE this via the API - which is easy and works well - you then have to reconstruct the Order into an Invoice - (by checking the Order hasn't changed) - if it has you need the changed info from the order to then POST the new invoice - then you need to get the UID for that Invoice ( which will be different from the order) to then send the email POST to the email endpoint - easy eh !!! Right!

     

    The Doc

Looking for something else?

Search the Community Forum for answers or find your topic and get the conversation started!

Community home

Level up your skills using MYOB software.

 

Find help guides and technical solutions for all MYOB products here

Explore video tutorials for our software at the MYOB Academy here

 

Dig into MYOB Academy for free courses, learning paths and live events to help build your business with MYOB.