[The Hub] Client Billing webhooks and/or API

2

I need an outgoing webhook on client purchase, so I can add them to my email list.

That’s really the only thing preventing me from using the Client Billing piece of the system…but it’s a BIG thing. I need to be able to tag and send onboarding emails automatically on purchase of a plan.

  • Mukul Chawla
    • Product Manager

    Hey Jeff

    Since Client Billing uses Stripe, you should already be able to set up a webhook when an invoice is paid on Stripe. Following are the steps:

    – Go to https://dashboard.example.com/webhooks
    – Click on “Add an endpoint”.
    – Enter the URL where you want to be notified about the events
    – Select the events you want to listen to. Since your requirement is to know when a client has paid, you can just listen to the “invoice.paid” event. However, there are many other events you can select from. For example, if you wanna add clients that failed to pay to a separate list (or with a separate tag), you can listen to the respective event (invoice.payment_failed).
    – Once you save the endpoint, it should start sending the events to your chosen URL along with the event data which should have the customer email.

    You can read more about Stripe Webhooks here: https://example.com/docs/webhooks/stripe-events.

    Hope this helps. Let us know if you have further questions.

    Regards,
    Mukul