SAP Open Connectors currently supports events via polling or webhooks depending on the endpoint.
- Polling is a mechanism where SAP Open Connectors executes the configured query every
n
minutes and captures the changed information. - Webhooks are when the provider lets SAP Open Connectors know what information has changed. Note that additional endpoint setup may be required prior to creating your Connector Instance.
Note: SAP Open Connectors normalizes only the objectId, objectType, and eventType event data. Event data also contains raw data, which the provider returns. The raw data varies based on the endpoint.
If you would like to see more information on our Events framework, please see the Events Overview.
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>"
eCommerce
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>"
}