Webhooks
A webhook is a user-defined HTTP callback that is triggered when a particular event occurs at the source site. When the event occurs, the source site makes an HTTP request to the URL specified.
In simple words, webhook lets you to quickly find out the changes happening to your subscriptions within Zoho Subscriptions. A webhook is used to send out an event notification to your service.
Once you’ve configured the URL, Zoho Subscriptions will post the event as a JSON to your webhook URL. For example, if a “subscription_created” event occurs, then a notification is sent to the specified URL.
Creating a Webhook:
In Zoho Subscriptions, you can create webhook for any change in subscription status, transactions and when an invoice is created.
To create a webhook,
- Navigate to Gear icon > More Settings > Webhooks from the left pane and click Create Webhook.
- In the Create Webhook page next, enter the URL (URL of the external service provider’s API) and select the types of event for which the webhook has to be triggered.
- Click on Save.
You can create different webhooks for every different events. Webhooks created for particular event can be viewed by clicking on Show History against the particular event under Events tab.
Editing a Webhook:
To edit a webhook,
- Navigate to Gear icon > More Settings > Webhooks.
- Click on Edit against the webhook that you want to edit.
- Click on Save after making the changes.
Deleting a Webhook:
To delete a webhook,
- Navigate to Gear icon > More Settings > Webhooks.
- Click on Delete against the webhook that you want to delete.
Resending a Webhook:
To resend a webhook,
- Navigate to Events tab and click on the event for which the webhook has to be sent again.
- Click on Resend to resend the webhook.
Note: You can also click on Show History to see the webhook history of that particular event.