Cloud Elements currently supports events via polling or webhooks depending on the endpoint.
n
minutes and captures the changed information.If you would like to see more information on our Events framework, please see the Event Management Guide.
In order to enable polling, add these extra configurations to your instance JSON:
"event.notification.enabled": "true",
"event.notification.callback.url": "<INSERT_YOUR_APPS_CALLBACK_URL>",
"event.poller.configuration": "<SEE_BELOW>"
instance JSON with polling events enabled:
{
"element": {
"key": "infusionsoftecommerce"
},
"providerData": {
"code": "Code on the Return URL"
},
"configuration": {
"oauth.callback.url": "https://www.yourcallbackurl.com",
"oauth.api.key": "<INSERT_INFUSIONSOFT_CLIENT_ID>",
"oauth.api.secret": "<INSERT_INFUSIONSOFT_CLIENT_SECRET>",
"document.tagging": false,
"event.notification.enabled": "true",
"event.notification.callback.url": "<INSERT_YOUR_APPS_CALLBACK_URL>",
"event.poller.configuration": {
"orders": {
"url": "/hubs/ecommerce/orders?where=since='${date:yyyy-MM-dd'T'HH:mm:ssXXX}'",
"idField": "id",
"datesConfiguration": {
"updatedDateField": "modification_date",
"updatedDateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"createdDateField": "creation_date",
"createdDateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX"
}
}
}
},
"tags": [
"<Add_Your_Tag>"
],
"name": "<Insert_Instance_Name>"
}