You can track your money income sending a custom event super easily.
The first thing is to create the event.
If you're using Stripe to manage your subscriptions or payments you can just connect your Stripe account with MetricsWave and we will track all charges automatically.
Take a look into the documentation about how to connect Stripe.
Just go to events, and create a new one of type Money Income
.
You can add a custom title and description, and, if you want, you can connect it with any of your Telegram channels to receive a notification when a transaction occurs.
With the event UUID, you can send an event everytime a transaction happened.
Remember that, by default, a money income event has two fields:
amount
of the transaction in cents.source
that can be what ever you want. It's just for tracking purposes.fetch(
`https://metricswave.com/webhooks/${eventUuid}?amount=2595&source=subscription`
)
Also, if you want, you can send a post request:
Remember that with POST request is important to set Content-Type: application/json
and Accept: application/json
headers. Here you
can find an example of a request made from bash terminal.
BODY='{"amount": 2595, "source": "subsription"}'
curl -X POST https://metricswave.com/webhooks/[[EVENT-UUID]] \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "$BODY"
Start for free, and upgrade your account at any moment.