The Webhooks API lets you programmatically register and manage the HTTPS endpoints that Sellfern sends event notifications to. All operations require a token with theDocumentation Index
Fetch the complete documentation index at: https://docs.sellfern.com/llms.txt
Use this file to discover all available pages before exploring further.
webhooks:manage scope.
For a conceptual overview of webhooks, event types, payload structures, and signature verification, see the Webhooks integration guide.
POST /api/v2/webhooks
Create a new webhook endpoint for your organization. Required scope:webhooks:manage
The HTTPS URL Sellfern will POST event payloads to. Must be publicly reachable.
Array of event names to subscribe to. Subscribe to one or more from:
order.created, order.updated, order.status_changed, order.fulfillment.shipped, order.fulfillment.delivered, expense.created, ticket.created, ticket.updated.GET /api/v2/webhooks
List all registered webhook endpoints for your organization. Required scope:webhooks:manage
PATCH /api/v2/webhooks/:id
Update the URL, events, or enabled state of an existing webhook endpoint. Required scope:webhooks:manage
The webhook endpoint ID returned when you created the endpoint.
New destination URL.
Replacement events array. This replaces the entire subscribed events list.
Set to
false to pause delivery without deleting the endpoint.DELETE /api/v2/webhooks/:id
Delete a webhook endpoint. Deliveries to this endpoint will stop immediately. Required scope:webhooks:manage
The webhook endpoint ID to delete.
POST /api/v2/webhooks/:id/test
Send a test event to the endpoint to verify it is reachable and your handler is working correctly. Required scope:webhooks:manage
GET /api/v2/webhooks/:id/deliveries
Retrieve recent delivery attempts for a webhook endpoint, including HTTP response codes and any error details. Required scope:webhooks:manage
Error responses
| Status | Code | Description |
|---|---|---|
| 401 | — | Token is invalid or revoked |
| 403 | missing_scope | Token does not have webhooks:manage scope |
| 404 | — | Webhook endpoint ID not found |
| 400 | — | Validation error (invalid URL, unknown event name) |
