The Patchworks inbound API supports data within strings. This data must be passed within a payload
key.
The required data format is a JSON object with a payload key containing a string of data. For example:
Non-strings and raw payloads are not currently supported.
Here, note that the payload
key is in a JSON object, and is being used to hold different types of data as strings - text, XML and JSON.