The JSON format for connect writeback is available. When dealing with eventNotifications the portion that determines whether it writes back in JSON Vs. XML is the inclusion of the eventData param you sited here. If you get rid of the eventData portion, writeback will resume in XML instead of JSON.
Example for XML writeback:
"eventNotification": {
"url": "https://asdfasdf.proxy.webhookapp.com",
"requireAcknowledgment": "true",
"loggingEnabled": "true",
"includeDocuments":"true",
"envelopeEvents": [
{"envelopeEventStatusCode": "Sent"},
{"envelopeEventStatusCode": "Delivered"},
{"envelopeEventStatusCode": "Completed"},
{"envelopeEventStatusCode": "Declined"},
{"envelopeEventStatusCode": "Voided"}
],
"recipientEvents": [
{"recipientEventStatusCode": "Sent"},
{"recipientEventStatusCode": "Delivered"},
{"recipientEventStatusCode": "Completed"},
{"recipientEventStatusCode": "Declined"},
{"recipientEventStatusCode": "AuthenticationFailed"},
{"recipientEventStatusCode": "AutoResponded"}
]
}
Example for JSON writeback:
"eventNotification": {
"url": "https://asdfasdf.proxy.webhookapp.com",
"requireAcknowledgment": "true",
"loggingEnabled": "true",
"envelopeEvents": [
{"envelopeEventStatusCode": "Sent"},
{"envelopeEventStatusCode": "Delivered"},
{"envelopeEventStatusCode": "Completed"},
{"envelopeEventStatusCode": "Declined"},
{"envelopeEventStatusCode": "Voided"}
],
"recipientEvents": [
{"recipientEventStatusCode": "Sent"},
{"recipientEventStatusCode": "Delivered"},
{"recipientEventStatusCode": "Completed"},
{"recipientEventStatusCode": "Declined"},
{"recipientEventStatusCode": "AuthenticationFailed"},
{"recipientEventStatusCode": "AutoResponded"}
],
"eventData": {
"version": "restv2.1",
"format": "json",
"includeData": ["custom_fields", "extensions", "folders",
"recipients", "powerform", "tabs", "payment_tabs","documents"]
}
I understand this ticket is a little stale, if you're still having issues with this and would like some help feel free to open up a ticket with support, myself or someone on my team would be happy to walk you through getting this operational.
Regards,
Matt