SOAP and JSON Payload Formatting

When working with API’s you may come across multiple different posting types, some of which require a specific format or “schema” for the body of the record for them to properly deliver. These posting types require the use of the “SOAP/HTML Payload” located at the bottom of the campaign. Depending on the documentation the campaigns will utilize primarily an XML or JSON format when posting the leads and require the data fields to be mapped within the payload section for the data to be drawn dynamically from the leads within your system.

Our system utilizes a double bracket method that tells the code which Parameter Name to draw data from in the data mapping section.


Here are some examples of what a payload may look like:

Example JSON Payload


Example XML/SOAP Payload

<?xml version=”1.0″ encoding=”utf-8″?>
<soap:Envelope xmlns:xsi=”” xmlns:xsd=”” xmlns:soap=””>

Typically, API documentation will provide examples of the format which you may copy and replace your respective Parameter Name values with for the leads to pass properly. Additionally there are many great resources out there to help check and ensure that your JSON or XML is in the proper format.

For additional JSON and XML formatting help visit one of the website below: