Update webhooks
Add URL
Use this endpoint
to add a URL to receive webhooks on. A sample API call is shown.
const sdk = require('api')('@spendjuice/v1.0#1x8m1pl6rt8g7b');
sdk.WebBusinessControllerAdd_webhook_urls()
.then(res => console.log(res))
.catch(err => console.error(err));
Delete URL
If you wish to remove a url from your existing URLs, and hence, not receive webhooks, use this endpoint
as shown.
const sdk = require('api')('@spendjuice/v1.0#1x8m1pl6rt8g7b');
sdk.WebBusinessControllerRemove_webhook_urls()
.then(res => console.log(res))
.catch(err => console.error(err));
Updated about 3 years ago