Initiate a payout reversal
Changed onThis POST endpoint is used to initiate a reversal of a previously completed payout transaction. <br> You must specify the user_token and original payout (payout_token) in the URL path to identify which transaction should be reversed. <br> In the request body, you may optionally provide an amount to perform a partial reversal. If no amount is specified, the entire payout amount will be reversed. <br> Reversals can be performed multiple times until the full payout has been reversed. <br> Once the payout has been fully reversed, additional reversal attempts will be rejected. Attempting to reverse more than the remaining available amount will also result in an error. <br> The response will include the details of the reversal transaction, including the amount reversed, the remaining reversible balance (if any), and the status of the original payout.
Request
- Base URLhttps://api.masspay.io/v1.0.0
- Auth
- API key in header Authorization
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Token representing the user to pay out
Token representing the trsanaction. Retrieved from /payout/{user_token}
Headers
Unique key to prevent duplicate processing
Request body
Example request
{
"amount": 100.5
}Response
successful operation
Example response
{
"status_reason": "R01 - Insufficient Funds",
"original_destination_amount": 1000.34,
"total_reversed_amount": 10.2
}Changes
- info
endpoint added
- info