Community
Formatting Your Request Body
When interacting with TabaPay's API, it's important to ensure that the JSON format is optimized for performance. To achieve this, TabaPay requires all whitespace to be removed from the JSON request body parameters and response data. This is sometimes referred to as "packing", or "condensing" your JSON, or "minification" and it helps streamline communication between systems.
Example Pull Transaction for Your Request Body
The following example shows a request body parameters ready to be sent in a Sandbox environment.
{"accounts":{"sourceAccountID":"zxc4123412341234123412","desthttps://developers.tabapay.com/reference/data#format-of-the-json-request-and-response-datainationAccountID":"1234123412341234abc412"},"referenceID":"abc123","type":"pull","amount":"100.00"}
Many of the examples in the API Reference and Recipes are formatted in a spaced out pretty print to help readability by humans.
Example Pull Transaction in Docs for Your Readability
The following example represents request body parameters displayed in the docs, making them easier to read.
{
"accounts": {
"sourceAccountID": "zxc4123412341234123412",
"destinationAccountID": "1234123412341234abc412"
},
"referenceID": "abc123",
"type": "pull",
"amount": "100.00"
}
You can learn more about formatting examples at TabaPays Unified API, or Format of the JSON Response Data.