Skip to content

Webhooks

Webhooks are a way for you to receive, and react to, realtime events from Wink and TripPay concerning your account.

Example

  1. A booking occurs on Wink.
  2. The Wink event booking.created is dispatched.
  3. Your system is actively listening to this event.
  4. Your system tracks your own set of analytics and uses this event to update its time-series database.
Sample webhook
Sample webhook entry

For this example, we will authenticate via Studio.

  1. Once authenticated, click your profile icon, in the top-right corner, and a menu will appear.
  2. Click the Webhooks link.
  3. You will be redirected to your webhooks page.

Create webhook

Here are the steps to creating an webhook:

  1. From the webhooks page, click the Create new webhook button.
  2. Name Give your webhook a name. e.g. Wink Stalker
  3. Enable Leave as-is to be enabled.
  4. Entity name Link your webhook with one of your existing accounts. e.g. Cool Account
  5. Events Listen to the events that interest you. e.g. booking.created
  6. Webhook URL Enter the URL where you will be listening to events from us. e.g. https://my.system.com/webhook/wink
  7. 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:

  1. Click the Actions link for the webhook you want to update.
  2. Click the Update button under Actions.
  3. Make your changes to the webhook.
  4. 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:

  1. Click the Actions link for the webhook you want to update.
  2. Click the Remove button under Actions.
  3. Click OK button to confirm deletion.

You are redirected back to your list of webhooks.