How can I retrieve the PDF created by a Jotform Sign enabled Jotform submission via the API?

  • resolve_advocates
    Asked on January 20, 2023 at 11:04 AM

    We are using a Jotform to collect signatures. We have enabled the Jotform Sign Automation and we're pleased with the functionality save for one notable exception:

    We cannot work out how to access the PDF programatically, neither the regular from version nor the Jotform Sign version.

    How can I retrieve the PDF created by a Jotsign-enabled Jotform submission programatically via the API or otherwise?

    Thank you!


  • Gilbert JotForm Support
    Replied on January 20, 2023 at 11:17 AM

    Hi Braden,

    Thanks for reaching out to us for help. You can generate and download the PDF document of the submission by using the link below:

    • https://www.jotform.com/pdf-submission/{submissionID}

    Just replace the {submissionID} part at the end with the actual submission ID. You can check this guide for more details on how to get the submission ID.

    Let us know if you have any other questions.

  • resolve_advocates
    Replied on January 20, 2023 at 12:52 PM

    This brings us very close!

    Our form is built from an existing PDF. Is there a way to fetch the formatted PDF version?


  • Annaliza_O Jotform Support
    Replied on January 20, 2023 at 1:33 PM

    Hello resolve_advocates,

    Thanks for reaching out to Jotform Support. To clarify, would you like to download the PDF submission data? If so, you can go to the Inbox, click the submission ID and then download the PDF file. Check out the screencast below:

    1674239566 63cade4ecaf98  Screenshot 10

    Let us know if there’s anything else we can help you with.

  • resolve_advocates
    Replied on January 20, 2023 at 1:56 PM

    For our use-case this needs to be possible **programatically**. In other words using the API or constructing a link with information that comes from the API.

  • Fahad JotForm Support
    Replied on January 20, 2023 at 2:36 PM

    Hi Braden,

    Thanks for reaching out to Jotform Support. There's no API endpoint code for PDF download or for retrieving the actual PDF file but you can construct the PDF URL manually through API so you can download the PDF file. 

    You can use the following URL to download the PDF file.

    https://www.jotform.com/server.php?action=getSubmissionPDF&sid=SubmissionID&formID=FormID

    Or

    https://www.jotform.com/pdf-submission/SubmissionID

    Just replace the bold text (SubmissionID and FormID) with the actual submission ID and form ID that you retrieved through API.

    You can get submission IDs when you call /form/{id}/submissions. you can check the Jotform API document to check the API endpoints.

    Give it a try and let us know how it goes.

  • resolve_advocates
    Replied on January 20, 2023 at 4:25 PM

    Thanks for the help!

    This appear to be two ways to accomplish what Gilbert recommended in the first reply.

    Our form is built from an existing PDF. Is there a way to fetch the formatted PDF version?

  • Fahad JotForm Support
    Replied on January 20, 2023 at 6:31 PM

    Hi Braden,

    Actually, we could not download the original PDF file using the URL. You can only download it from PDF Editor or Attach it to the Email Notification. While the feature you’re looking for isn’t currently available, rest assured we’re always working to add new services and features to Jotform. 

    I've gone ahead and escalated your request to our Developer Team. When or if it's developed depends on their workload, how viable it is, and how many other users request it. If there are any updates, we’ll circle back to this thread and let you know.

    Let us know if you need any more help.


  • resolve_advocates
    Replied on January 24, 2023 at 1:22 PM

    Thanks for looking into this.

    The formatted contract is important to us. Having it available as an attachment on the email is better than nothing but API access would improve our integration significantly. If this functionality becomes available, we will be very interested!

    Cheers.

  • Fahad JotForm Support
    Replied on January 24, 2023 at 5:22 PM

    Hi Braden,

    Thanks for waiting, I have consulted with my colleagues and you can easily download the original ODF for smart PDF form using the direct URL.

    https://api.jotform.com/pdf-converter/{formId}/fill-pdf?download=1&submissionID={sumissionID}&apikey={apiKey} 

    You can use the above URL. Replace the formId, submissionID and apikey with your details and you willlbe able to download Original PDF.

    Give it a try and let us know if you have any other questions.


  • resolve_advocates
    Replied on January 25, 2023 at 2:21 PM

    Fahad,

    Thanks for the follow up. This URL does exactly what we need!

    I note that it is an endpoint on Jotform's API but I don't see this in the documentation I've been referencing (https://api.jotform.com/docs/). Is there anywhere I can find more complete documentation that includes this and potentially other useful endpoints?

  • Fahad JotForm Support
    Replied on January 25, 2023 at 4:00 PM

    Hi Braden,

    Thanks for getting back to Jotform Support. We have already escalated this to our backend team to have this original PDF document using API. Let me update the escalated ticket with more details. We will notify you once there would be an update on this.

    We appreciate your patience and understanding.

  • brfi
    Replied on March 17, 2023 at 4:18 PM

    Can you please let me know when the API documentation has been updated with the additional information?

  • Gian JotForm Support
    Replied on March 17, 2023 at 7:13 PM

    Hi brfi,

    When or if a certain feature is developed depends on our Developer's workload, how viable it is, and how many other users request it. If there are any updates, we’ll circle back to this thread and let you know. 

    Let us know if there’s anything else we can help you with.