Webhooks
Create a webhook subscription
Changed onCreates a webhook subscription to receive real-time notifications for events occurring within your company or companies.
Authentication & Scope
Subscription scope:
- Company-scoped token (developer token or OAuth token bound to a specific company): the subscription is scoped to that single company.
- App-bound token (OAuth token without a company context): the subscription covers all companies accessible by the OAuth application.
Limits Up to 10 webhook subscriptions are allowed per company (for company-scoped tokens) or per subscriber (for app-bound tokens).
Secret The secret will be auto-generated.
🔒 The secret is only returned in the creation response and cannot be retrieved afterwards. Make sure to store it securely.
post/api/external/v2/webhook_subscriptions
Request
- Base URLhttps://app.pennylane.com
- URLhttps://app.pennylane.com/api/external/v2/webhook_subscriptions
- AuthOAuth 2Authorization code: https://app.pennylane.com/oauth/authorizeToken URL: https://app.pennylane.com/oauth/oauth/token
Request body
Example request
{
"callback_url": "https://example.com/webhooks",
"events": [
"dms_file.created",
"customer_invoice.e_invoicing_status_updated",
"supplier_invoice.e_invoicing_received"
]
}Response
Renders the created webhook subscription
Example response
{
"id": 12345,
"callback_url": "https://example.com/webhooks",
"events": [
"dms_file.created",
"customer_invoice.e_invoicing_status_updated",
"supplier_invoice.e_invoicing_received"
],
"enabled": true,
"created_at": "2023-08-07T14:23:12.000Z",
"updated_at": "2023-08-07T14:23:12.000Z"
}Changes
- warning
added the new
supplier_invoice.e_invoicing_receivedenum value to the/response property for the response status - info
api tag
Webhooksadded - info
api tag
Hiddenremoved - info
added the new
supplier_invoice.e_invoicing_receivedenum value to the request property/
- warning