Refund Sale
Marks a sale as refunded and reverses the commission attached to it.
If the sale was already refunded the request still succeeds, with alreadyRefunded set to true. A sale cannot be refunded once it has passed your program’s refund window, has been added to a payout batch, has already been paid out, or has been marked as manually paid — each of those returns a 400 with a reason you can branch on.
Requires sales:write. This legacy endpoint uses the key’s original program and its existing response format.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The sale to refund
The sale ID to mark as refunded
Response
The refund was processed, or the sale was already refunded.