meteroid-oss / meteroid

Open-source Pricing and Billing Infrastructure 🚀 Subscription management, Invoicing, Pricing, Usage-based billing, Cost limiting, Grandfathering, Experiments, Revenue analytics & Actionable insights

Home Page:https://meteroid.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BE] Add webhook

gaspb opened this issue · comments

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

we probably want to rename our existing webhook entities to incoming_webhook