[BE] Add webhook
gaspb opened this issue · 1 comments
gaspb commented
Organizations should be able to define webhook endpoints per tenant on which they will receive webhook events.
For now, all events will be sent to each webhook.
- add the webhook_endpoint entity & crud
- create a webhook service interface that will be used to track envents.
We will have 2 impls :- a svix impl (production, svix handles queues, retries etc)
- a simple http one, dependency-less, for dev/simple setups
Signature handling should be the same in both impl
- Emit webhook messages for a couple of actions :
- customer created
- draft invoice created
- invoice finalized
- subscription created
gaspb commented
we probably want to rename our existing webhook entities to incoming_webhook