Send form data to API within a custom JSON template
-
Hello, I’d like to know if it would be possible to setup a connection to a third-party API (for example with your webhooks add-on), but have the form data sent in a specific manner in JSON to the server? Because in your docs the example is quite simple, however we need to send data in a specific way:
{
"extId": "",
"brokerCode": "......",
"comment": "",
"client": {
"nip": "5320256703",
"naturalPerson": false,
"contact": {
"firstname": "test",
"lastname": "testowy",
"email": "[email protected]",
"mobilePrefix": "+48",
"mobileNo": "+48500333666",
"consents": [
{
"consent": "marketing",
"timestamp": "2023-08-30 13:29:01"
},
{
"consent": "telefon",
"timestamp": "2023-08-30 13:29:01"
},
{
"consent": "email",
"timestamp": "2023-08-30 13:29:01"
}
]
}
}
}As you can see, the form data is contained in the “contact” section. How can we send the WPForms submitted data to a third-party API in such a way?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.