This documentation is for tracking revenue from your backend only! For tracking revenue from your app please go through the Flutter or React Native documentation
<https://api.linkrunner.io/api/v1>
Generate your server code from https://www.linkrunner.io/settings?s=data-apis
In the request header add the below attribute
linkrunner-key: YOUR-SERVER-KEY
POST: /capture-payment
{
"user_id": "666",
"payment_id": "ABC", // optional but recommended
"amount": 25096 // Send amount in one currency only
}
NOTE: If you accept payments in multiple currencies convert them to one currency before calling the API
POST: /remove-payment
{
"user_id": "666",
"payment_id": "ABC"
}
NOTE: user_id
or payment_id
is required in order to remove a payment entry, if you pass user_id
all the payments attributed to that user will be removed!