This purpose of this page is to explain in more depth the process for configuring a postback, and what details are sent in a postback.
Postback Management is relative to REST based API that is full of great functionality. As you integrate with us, we can reciprocate by providing the data back to the user when “this” happens. A brief overview of the capability for Postbacks and its features are provided in this document.
Visit the Postbackconfigs Endpoint for information about what fields and actions are supported.
- Client subscribes to postback updates for the said resource by Creating a Postback Config.
- Execute a resource event, like creating a contact or running a transaction.
- API will send a POST request to the configured URL. The URL must respond with an HTTP status of 2xx to acknowledge the request.
- If the URL does not respond with an HTTP status 2xx, the application will try to submit the postback again. (The number of postback retries is based on the number_of_attempts and attempt_interval values as defined in the postback configuration).
Postback Data Format
The following table defines the fields that will be sent in the request to the postback URL.
|The type of event that happened, values can be CREATE, UPDATE, DELETE
|The name of the resource
|Number of times it was attempted to be posted back to the address value of url
|A JSON string containing the properties of the resource at the time of the event, the string should have
similar properties as you would get in the API responses for the said resource
Workflow Example - Contact Postbacks
Step 1) Create Postback Config
The postback configuration needs to be created in order to set the trigger that is need for the postback. Visit Postback Configs Endpoint for more information on what fields are available for use during creation.
This can also be done within the user interface as follows:
- Log into your user interface.
- Go to Locations.
- Select your desired location. If you have many locations, you may need to search for the desired location first.
- Go to settings→postback config
- Click “Add Postback” in the upper right corner.
- Add the url field and other relevant information needed for your postback.
Step 2) Create Contact
Step 3) Postback Contact Data
Confirm that the contact postback was successfully sent to your server. The postback data is defined below as to what fields will be sent and what it will look like. The body is encoded using www-urlencoded, with the “data” parameter containing the new record data as a JSON string.
The following data block is a JSON representation of what the parameters look like that are sent in the postback. The actual data packet will be sent as www-urlencoded.