Tracking refunds and negative commissions
The refund call is similar to the sale call. It works the same way, except that it generates negative commissions.
POST https://firstpromoter.com/api/v1/track/refund
Authorizations
Query Parameters
required if uid is null
Email of the lead/sign-up
required if email is null
uid of the lead added on signup tracking
Transaction or refund event ID. It's required to avoid generating duplicate refunds in case you mistakenly send the same API call multiple times.
The refund amount in cents. It's used to calculate the negative commissions/rewards.
number of subscriptions/items refunded. If it's only one you can skip this parameter.
the event id of the sale for which the refund is processed. This value must match the event_id value sent in the sale tracking API call. (Note: This field is marked as optional, but if you track multiple products or change the commissions level often, it becomes required to track refunds correctly)
Set this to true
to skip email notifications. Default is false
.