Skip to main content

Aggregation

Aggregation webhooks notify you when any new data is available after a successful aggregation. The webhook will include a count of new transactions and updated transactions.

These webhooks fire only after a completed aggregation, including background aggregations. Actions performed on the member through other endpoints will not trigger the webhook.

FieldData typeDescription
actionStringThe action that triggered the webhook, e.g., member_data_updated.
completed_atIntegerThe date and time at which the process that triggered the webhook was finished. Given in Unix time.
completed_onStringThe date on which the process that triggered the webhook was finished.
is_backgroundBooleanThis indicates whether the aggregation was performed manually in the foreground or automatically in the background.
job_guidStringThe unique identifier for MX's internal aggregation process. Defined by MX.

This field is not relevant for partners using the Platform API and should be ignored.
member_guidStringThe unique identifier for the member which has new or updated transaction data. Defined by MX.
transactions_created_countIntegerThe number of newly created transactions.
transactions_updated_countIntegerThe number of newly updated transactions.
typeStringThe type of webhook being delivered. Current possible values are AGGREGATION, BALANCE, HISTORY, and STATEMENT; however, additional values may be added at any time.
user_guidStringThe unique identifier for the user with which the data is associated. Defined by MX.
user_idStringThe unique partner-defined identifier for the user associated with the aggregation.

Example Payload


_13
{
_13
"action": "member_data_updated",
_13
"completed_at": 1531947410,
_13
"completed_on": "2018-07-18",
_13
"is_background": true,
_13
"job_guid": "JOB-823ab268-5107-4a67-97c8-60292572ac2e",
_13
"member_guid": "MBR-48d9a481-f2a2-7e13-2685-62869cf0d33a",
_13
"transactions_created_count": 3,
_13
"transactions_updated_count": 2,
_13
"type": "AGGREGATION",
_13
"user_guid": "USR-eaf4ac68-d17d-5e9b-7b46-959a5b315a9e",
_13
"user_id": "partner-defined-id"
_13
}

Analytics Events

FieldData TypeDefinition
actionStringA description of the type of action that was taken by the user.
app_nameStringThe name of the user's application.
app_versionStringThe version of the user's application.
categoryStringA description of the feature the user interacted with.
client_idStringThe unique partner-defined identifier for the client.
created_atIntegerThe date and time at which the event occurred.
data_sourceStringWhere the event originated from: web for a web application or app for a mobile application.
durationIntegerDuration of the event in milliseconds.
hostStringThe host name of the server.
intervalIntegerLength of time of a timed event in milliseconds.
nameStringThe name of the page in the case of a pageview, or in the case of an analytics_event, a description of the action taken.
pathStringThe relative URL path of the event.
screen_resolutionStringThe resolution of screen size in pixels, for example, 1200x1600.
session_idStringThe unique identifier of the session.
typeStringThe type of analytics event. One of four values: "analyticsevent", "pageview", "screenview", and "timedevent".
user_agent_string (deprecated)StringText identifying the user's browser and operating system. Deprecated in favor of user_agent.
user_agentStringText identifying the user's browser and operating system.
user_guidStringThe unique identifier for the member. Defined by MX.
user_idStringThe unique partner-defined identifier for the user.
user_ip_addressStringThe IP address of the user.
valueStringThe value used by the user, if applicable.
client_guidStringThe unique identifier of the client. Defined by MX.

Example Payload


_28
{
_28
"_json": [
_28
{
_28
"action": "click",
_28
"app_name": nil,
_28
"app_version": "widgets-v2",
_28
"category": "MX - Connect Credentials",
_28
"client_id": "C-1234",
_28
"client_guid": "CLT-71f54gf5-2f89-bbc6-de7d-a31ef8c6abd6",
_28
"created_at": 1523397481,
_28
"data_source": "web",
_28
"duration": 0,
_28
"host": nil,
_28
"interval": nil,
_28
"name": "Submit Credentials",
_28
"path": nil,
_28
"screen_resolution": nil,
_28
"session_id": "ANS-66ea8d88-0606-9e61-1036-399f6cf301c3",
_28
"type": "analyticsevent",
_28
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36",
_28
"user_agent_string": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36",
_28
"user_id": "U-1234",
_28
"user_guid": "USR-4758d481-3e0a-aefd-5f09-03aaam347317a",
_28
"user_ip_address": "127.0.0.1",
_28
"value": null
_28
}
_28
]
_28
}

On this page