Forum Discussion
3 Replies
- JeremyF4 years agoTrusted User
Hi Make sure you are passing a query to the get request
You need to spedicfy an existing template and set the return format.
Also make sure you are calling the correct endpoint for the status of the order eg quote/order etc
'format' => "pdf",'templatename'=>"$templateName"
- Han-Solo4 years agoMYOB Staff
Thanks for reaching out, This can be achieved in two different ways, you can pass an additional HEADER
Accept: Application/PDFor explicitly tell the API to return the PDF format at the end of your URL request?format=pdfYou can view the render to PDF documentation here: https://developer.myob.com/api/myob-business-api/v2/sale/invoice/render_as_pdf/
- SangamKalra4 years agoMember
Yes i tried by both methods but its not returning any pdf its only returning plain data(JSON Format) instead of pdf or any link of pdf
Looking for something else?
Search the Community Forum for answers or find your topic and get the conversation started!
Find technical support and help for all MYOB products in our online help centre
Dig into MYOB Academy for free courses, learning paths and live events to help build your business with MYOB.