Sunday, December 8, 2024
Webhooks are now available
Elitsa Vrancheva
Product Engineer
A common request we were getting from our merchants was the ability for them to build their own automated services around customer actions on Moonbase. This week, we completed a big milestone towards this with our new webhooks feature.
These webhooks allow you to configure endpoints to be called in response to actions being performed by your customers on your Moonbase account. Included in this feature is error handling, request visibility, security and more.
As always, if you're interested in the technical docs, head over to our webhooks documentation.
React to customer events
At the time of writing, we support events around both sales, licenses and trials, to let you build the automations you want. The possibilities are endless, whether you want to ingest these into your own analytics platform, run your own email campaigns or loyalty programmes, or trigger any other kind of workflow, they can all be achieved with webhooks.
Order events describe changes in state for new sales, where orders are paid, then completed (fulfilled), and finally scheduled to be paid out. Part of these events also include the calculated payout amount, which is great for building better ROAS analytics.
License and trial events describe new devices being activated by your customers, which can be used to further track the journey your customers have installing, using and purchasing your products.
Security and resilience
To make sure you have the best chance of processing all events, and do so securely, we've implemented some features that mitigate common issues.
First of all, we have retry-policies on all requests going to your endpoints, with an escalating back-off policy so your servers have a chance to recover. If the requests fail 3 times in a row, we mark the request as failed, and you may manually trigger a re-send in our UI.
Secondly, to ensure all requests are legitimately coming from Moonbase, we include a HMAC signature on all requests being sent. The secret being used can be configured in your Moonbase account settings, and should be used to ensure no forged requests are accepted into your systems.
This is just the early days of our webhooks feature, if there are specific events you are missing, reach out!
Start selling through Moonbase
Sign up today to get started selling your software through Moonbase.