Incoming Webhooks
Incoming webhooks is a method of bringing information from a third-party service or an API request to Zoho Billing on occurrence of an event. In Zoho Billing, you can use the action performed in the third-party service as a trigger to perform a task in Zoho Billing. Here are some scenarios to explain this better:
Create Incoming Webhooks
You can create multiple incoming webhooks based on the functions you prefer to execute in Zoho Billing.
To create an incoming webhook:
- Log in to your Zoho Billing organization.
- Go to Settings.
- Select Incoming Webhooks under Developer Data.
- Click + New Incoming webhooks on the top right corner of the page.
- Enter the Name and Description for the Incoming Webhook.
- Enter a function using Deluge in the editor below.
- Click Save.
The OAuth URL and ZAPI Key URL will be generated and displayed in a pop-up. You can copy the URL from the pop-up.
You can also copy the URLs by clicking the down arrow next to the incoming webhook name in the list page.
You can now configure the URL in the third party application to set up incoming webhooks. If you wish to add any attributes in the script, you can do so at the time of the API call.
Attributes | Description |
---|---|
Header | The header of the API request. |
Params | Parameters are the variable parts of the script given by the third-party API request. |
Body | It is a string that contains the request data of the API call. |
Once configured, the incoming webhook will be created.
Now, when an activity takes place in the third-party application, the incoming webhook will be triggered and the action mentioned in the function will be executed.
View Logs
You can view the list of all the incoming webhooks that have been executed in Zoho Billing under the View Logs section from the Incoming webhooks’ edit page.
Edit or Delete Incoming Webhooks
You can edit or delete the incoming webhooks that you have created in Zoho Billing. Here’s how:
- Log in to your Zoho Billing organization.
- Go to Settings.
- Select Incoming Webhooks under Developer Data.
- Click the dropdown next to the incoming webhook that you wish to edit or delete.
- Click Edit or Delete.