It is possible to connect a reward to an external API. When in your reward, go to the tab 'Integrations'. In this tab, under the section 'Webhook', it is possible to add a URL that connects to your own external API. Simply place your URL into the textbox and save by pressing the 'Save' button at the bottom of the screen.

The Reward Hook is pushed every time the Respondents' credit is altered. For example when they answer a question or redeem a voucher. In case of the Love Reward the Reward Hook is triggered when a question is answered.

Method

POST

Content-Type

application/json

Parameters

For more detailed information regarding the parameters of the webhook, click here.


Example
Example of POST request sent to external server.

{
  "id": "123_2323423",
  "event": "answer_given",
  "data": {
    "email": "tommy@example.com",
    "pincode": "2343AB"
  }
}

When a hook is triggered the Upinion Webservice sends the request to the given url. The Webservice does not wait for any response and assumes the request was successful.

Did this answer your question?