Form Submission: Issue with setting up API Integration

  • infrati
    Asked on July 2, 2024 at 10:40 AM

    Hello!

    I have a couple forms that I set up a hook for my API, I used Pipedream to test the hook and get the format of the data to create my API, the thing is, when I test the API via Insomnia with the JSON that I have in pipedream, it is working and my integration is fine, but if I submit my form, either from the site or from a test inside jotform, it just dont work.

    I would like to know exctly the format of the data sent by the form, also I will provide below the current json I got from pipedream and I'm using for the tests, I will just remove the real values.

    Thanks!

    {
    "action": "",
    "appID": "",
    "customBody": "",
    "customParams": "",
    "customTitle": "",
    "documentID": "",
    "event": "",
    "formID": "123123123",
    "formTitle": "Campanha de Indicação",
    "fromTable": "",
    "ip": "",
    "isSilent": "",
    "parent": "",
    "pretty": "",
    "product": "",
    "rawRequest": "{}",
    "subject": "",
    "submissionID": "123",
    "teamID": "",
    "type": "WEB",
    "unread": "",
    "username": "infrati",
    "webhookURL": ""
    }
  • Lara JotForm Support
    Replied on July 2, 2024 at 10:50 AM

    Hello infrati,

    Thanks for reaching out to Jotform support. I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.

  • Lara JotForm Support
    Replied on July 2, 2024 at 11:09 AM

    Hello infrati,

    I suggest testing your test the webhook here to see what data will be sent from Jotform. This will let you simulate webhook requests and see what data Jotform will be sending. Since the response depends on the form question, this is the best way to get the accurate JSON script that you'll need to use.

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

  • infrati
    Replied on July 2, 2024 at 4:29 PM

    Hello Lara,


    I tried in this link, apparently the result was the same as I got from Pipedream, is the same test.

    The problem is, if this return is the correct, my API is correct, because I copy paste the body in my insomnia test and it works, I dont know what to test now.
    The format I got in the webhook.site is the same I posted in the preview ticket, that is the same structure that my API expect

    Any other idea?

  • Aries JotForm Support
    Replied on July 2, 2024 at 8:33 PM

    Hi infrati,

    I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.

  • Aries JotForm Support
    Replied on July 3, 2024 at 11:57 PM

    Hi infrati,

    Thanks for your patience. It seems the link I get from Insomnia is not accepted by Jotform. See the screenshot below:

    Form Submission: Issue with setting up API Integration Image 1 Screenshot 20

    Are you able to share a small part of the code, If there are any errors or logs that you can share, where/how the code is hosted? This will help us to narrow down the issue and do more testing.

    After we hear back from you, we’ll have a better idea of what’s going on and how to help.


 
Your Answer