Webhooks
Webhooks are a way for you to receive, and react to, realtime events from Wink and TripPay concerning your account.
Example
- A booking occurs on Wink.
- The Wink event
booking.created
is dispatched. - Your system is actively listening to this event.
- Your system tracks your own set of analytics and uses this event to update its time-series database.
For this example, we will authenticate via Studio.
- Once authenticated, click your profile icon, in the top-right corner, and a menu will appear.
- Click the
Webhooks
link. - You will be redirected to your webhooks page.
Create webhook
Here are the steps to creating an webhook:
- From the webhooks page, click the
Create new webhook
button. - Name Give your webhook a name. e.g. Wink Stalker
- Enable Leave as-is to be enabled.
- Entity name Link your webhook with one of your existing accounts. e.g. Cool Account
- Events Listen to the events that interest you. e.g.
booking.created
- Webhook URL Enter the URL where you will be listening to events from us. e.g.
https://my.system.com/webhook/wink
- Click the
Save
button to continue.
You are redirected back to your list of webhooks and your new webhook is ready to go.
Update webhook
You will need to update your app if you want to:
- Disable your webhook.
- Listen to more / less events.
- Change your listening webhook URL.
To update an existing webhook, do the following:
- Click the
Actions
link for the webhook you want to update. - Click the
Update
button under Actions. - Make your changes to the webhook.
- Click the
Save
button to continue.
You are redirected back to your list of webhooks.
Remove webhook
If you have no further use for the webhook, you can go ahead and remove it.
To remove an webhook, do the following:
- Click the
Actions
link for the webhook you want to update. - Click the
Remove
button under Actions. - Click
OK
button to confirm deletion.
You are redirected back to your list of webhooks.