Learn how to record and manage refund events for your LinkKit partner program.
If you’re using LinkKit Partners for your affiliate program, you may also want to track refund events and update the status of the related partner commissions accordingly.
Tracking Refunds with the Stripe Integration
Good news — if you’re using the LinkKit Stripe integration, refund events are tracked automatically without requiring any additional configuration.
Tracking Refunds Manually
If you’re not using the LinkKit Stripe integration and are tracking sales manually, you can track refunds by following these steps:
1. Include invoiceId When Tracking a Sale
When sending a sale event using POST /track/sale, make sure to include a unique invoiceId value that identifies the specific transaction.
2. Find the Related Commission
When a refund occurs, locate the corresponding commission by searching your commissions using the same invoiceId that was provided when tracking the sale.
3. Update the Commission Status
Finally, use the PATCH /commissions/{id} endpoint to update the commission status to refunded.
Once updated, the refunded commission will be excluded from any pending partner payouts.
