When i tried to render pdf from myob api then it is not returning any pdf or any link. Can you please assist me how to render pdf from this link?
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
@SangamKalra,
Thanks for reaching out, This can be achieved in two different ways, you can pass an additional HEADER Accept: Application/PDF or explicitly tell the API to return the PDF format at the end of your URL request ?format=pdf
Accept: Application/PDF
?format=pdf
You can view the render to PDF documentation here: https://developer.myob.com/api/myob-business-api/v2/sale/invoice/render_as_pdf/
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"
Self-help & Learning
Level up your skills and find answers across all MYOB products
Help Guides
MYOB Academy