Forum Discussion

SangamKalra's avatar
4 years ago

Render as pdf api not working

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?

3 Replies

Replies have been turned off for this discussion
  • JeremyF's avatar
    JeremyF
    Trusted User
    4 years ago

    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"

     

     

  • 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