The router endpoint on the organization scope will receive any event happening within an organization and will then route it to the appropriate questionaire and trigger the distribution flow.
This is the on to use for any back-end integration with e-Satisfaction
Type: Post
endpoint: https://toolkit.e-satisfaction.com/api/organizations/route-item/{organization_id}.json
The organization_id is the unique identifier of your organization within e-Satisfaction. You can find it within the organization page of the e-Satisfaction application.
The endpoint upon success will create the appropriate questionnaire distribution item, based on the type and details of the event providedIf none of the rules we have set match the other pipelines, you have the option to specify the default questionnaire and/or pipeline_id where the events will be forwarded to.
If no rules are matching the given event, nor any default route is specified, the event will be dropped
Within the body of the call you may provide any information regarding the event or the responder. This can be done through the metadata sections respectively. The metadata given should be defined in the e-Satisfaction application prior use or they will be discarded.
{
"responder_channel_identifier": "example@gmail.com",
"metadata": {
"questionnaire": {
"product_category": "a category"
},
"responder": {
"phone_number": "123456"
}
}
}
The authetication for the endpoints is bearer token which is provided by the e-Satisfaction customer success team.