Webhooks
Update a webhook subscription
Changed onThis endpoint allows you to update a webhook subscription by ID.
put/api/external/v2/webhook_subscriptions/{id}
Request
- Base URLhttps://app.pennylane.com
- URLhttps://app.pennylane.com/api/external/v2/webhook_subscriptions/{id}
- AuthOAuth 2Authorization code: https://app.pennylane.com/oauth/authorizeToken URL: https://app.pennylane.com/oauth/oauth/token
Path parameters
idinteger required
ID of the webhook subscription
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
Returns the updated 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,
"disabled_at": "2023-08-07T14:23:12.000Z",
"last_failure_status": 500,
"last_failure_at": "2023-08-07T14:23:12.000Z",
"consecutive_failures": 3,
"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