On This Page
Example: Creating an Invoice Webhook Subscription
IMPORTANT
There are additional requirements for implementing webhooks that are not
discussed in this guide. To create to webhook subscription to receive invoicing related
notifications, see the
Webhooks Implementation Guide for
the REST API
.Only use this example to reference how to format the
eventTypes
request field and its values.Request
{ "name": "Invoicing Webhooks", "description": "Webhooks for Invoicing Events", "organizationId": "organizationId", "productId": "customerInvoicing", "eventTypes": [ "invoicing.customer.invoice.cancel", "invoicing.customer.invoice.paid", "invoicing.customer.invoice.partial-payment", "invoicing.customer.invoice.send" ], "webhookUrl": "https://test.com:443/test", "healthCheckUrl": "https://test.com:443/test", "notificationScope": "SELF", "retryPolicy": { "algorithm": "ARITHMETIC", "firstRetry": 1, "interval": 1, "numberOfRetries": 3, "deactivateFlag": "false", "repeatSequenceCount": 0, "repeatSequenceWaitTime": 0 }, "securityPolicy": { "securityType": "KEY", "proxyType": "external" } }
Response to a Successful Request
{ "organizationId": "invoicetest", "productId": "customerInvoicing", "eventTypes": [ "invoicing.customer.invoice.cancel", "invoicing.customer.invoice.paid", "invoicing.customer.invoice.partial-payment", "invoicing.customer.invoice.send" ], "webhookId": "fc880f5a-2145-44db-e053-9e588e0a6a26", "name": "Invoicing Webhooks", "webhookUrl": "https://test.com:443/test", "healthCheckUrl": "https://test.com:443/test", "createdOn": "2023-05-25T16:24:51.886Z", "status": "INACTIVE", "description": "Webhooks for Invoicing Events", "retryPolicy": { "algorithm": "ARITHMETIC", "firstRetry": 1, "interval": 1, "numberOfRetries": 3, "deactivateFlag": false, "repeatSequenceCount": 0, "repeatSequenceWaitTime": 0 }, "securityPolicy": { "securityType": "KEY", "proxyType": "external", "digitalSignatureEnabled": "yes" }, "version": "3", "deliveryType": "nrtdCentral", "notificationScope": "SELF" }