Create webhook
Create a new webhook for an account. event_types lists the notices it receives (payment_request, subscription); a webhook receives only those. The single event_type field is still read when event_types is absent.
path Parameters
accountIDAccount ID
Create webhook › Request Body
urldescriptionevent_typeevent_typesCreate webhook › Responses
OK
statusResponse status
List webhooks
List all webhooks for an account
path Parameters
accountIDAccount ID
List webhooks › Responses
OK
statusResponse status
Get webhook logs
Get webhook delivery logs for an account. Each entry includes the event type, HTTP status, and latency. Response bodies are not returned.
path Parameters
accountIDAccount ID
query Parameters
pagePage number
page_sizeLogs per page
Get webhook logs › Responses
OK
statusResponse status
Activate webhook
Activate a webhook
path Parameters
accountIDAccount ID
webhookIDWebhook ID
Activate webhook › Responses
OK
statusResponse status
Deactivate webhook
Deactivate a webhook
path Parameters
accountIDAccount ID
webhookIDWebhook ID
Deactivate webhook › Responses
OK
statusResponse status
Delete webhook
Delete a webhook
path Parameters
accountIDAccount ID
webhookIDWebhook ID
Delete webhook › Responses
OK
statusResponse status
Update webhook event types
Replace the event types a webhook receives (payment_request, subscription). It receives only those from then on.
path Parameters
accountIDAccount ID
webhookIDWebhook ID
Update webhook event types › Request Body
event_typesUpdate webhook event types › Responses
OK
statusResponse status
Rotate webhook secret
Generate a new signing secret for an account-level webhook. The previous secret stops working immediately. The new secret is returned only here; store it at once.
path Parameters
accountIDAccount ID
webhookIDWebhook ID
Rotate webhook secret › Responses
OK
statusResponse status
Test webhook
Send a signed sample notice to a webhook. The optional body picks its event type, which must be one of the webhook's; without it the webhook's first event type is used.
path Parameters
accountIDAccount ID
webhookIDWebhook ID
Test webhook › Request Body
event_typeTest webhook › Responses
OK
statusResponse status
Update webhook URL
Update the URL of a webhook
path Parameters
accountIDAccount ID
webhookIDWebhook ID
Update webhook URL › Responses
OK
statusResponse status
Create org webhook
Create a new org-level webhook. event_types lists the notices it receives (payment_request, subscription). If an account has its own webhook for an event type, the org webhook does not receive that event from that account. The secret is returned only here; store it immediately. Requires organization credentials; account credentials receive HTTP 403.
Create org webhook › Request Body
urldescriptionevent_typeevent_typesCreate org webhook › Responses
OK
statusResponse status
Org webhook coverage
Returns the accounts in the organization that have their own enabled account-level webhooks. For each listed account and event type, the org-level webhook does not receive events from that account for that event type.
Org webhook coverage › Responses
OK
statusResponse status
List org webhooks
List all org-level webhooks. Requires organization credentials; account credentials receive HTTP 403.
List org webhooks › Responses
OK
statusResponse status
Get org webhook logs
Paginated delivery logs for all org-level webhooks. Each entry includes the event type, HTTP status, latency, and the account that generated the event. Response bodies are not returned.
query Parameters
pagePage number
page_sizeLogs per page
Get org webhook logs › Responses
OK
statusResponse status
Activate org webhook
Enable an org-level webhook. Requires organization credentials.
path Parameters
webhookIDWebhook ID
Activate org webhook › Responses
OK
statusResponse status
Deactivate org webhook
Disable an org-level webhook. Requires organization credentials.
path Parameters
webhookIDWebhook ID
Deactivate org webhook › Responses
OK
statusResponse status
Delete org webhook
Soft-delete an org-level webhook. Requires organization credentials.
path Parameters
webhookIDWebhook ID
Delete org webhook › Responses
OK
statusResponse status
Update org webhook event types
Replace the event types an org-level webhook receives. Requires organization credentials.
path Parameters
webhookIDWebhook ID
Update org webhook event types › Request Body
event_typesUpdate org webhook event types › Responses
OK
statusResponse status
Rotate org webhook secret
Generate a new signing secret for an org-level webhook. The previous secret stops working immediately. Requires organization credentials.
path Parameters
webhookIDWebhook ID
Rotate org webhook secret › Responses
OK
statusResponse status
Test org webhook
Send a signed sample notice to an org-level webhook. Requires organization credentials.
path Parameters
webhookIDWebhook ID
Test org webhook › Request Body
event_typeTest org webhook › Responses
OK
statusResponse status
Update org webhook URL
Update the URL of an org-level webhook. Requires organization credentials.
path Parameters
webhookIDWebhook ID
Update org webhook URL › Responses
OK
statusResponse status