Wallet
Add AutoPayout rule
This POST endpoint is used to add an autopayout rule that will initiate a payout whenever the provided wallet token is loaded. <br> You can use this endpoint to create an autopayout rule that automatically sends a percentage of incoming load to a specific destination. <br> To use this endpoint, you need to provide the user_token and wallet_token as required parameters in the URL Path, and the destination_token and percentage of incoming load that should be autopaid to the destination_token in the request Body. <br> The response will include a JSON object containing the details of the created autopayout rule, including the token, destination_token and percentage.
post/payout/wallet/{user_token}/{wallet_token}/autopayout
Request body
Example request
{
"destination_token": "dest_d2138fd0-00be-45a8-985f-4f5bde500962",
"percentage": 50
}Response
Succesfully created.
Example response
{
"token": "autopayout_3684cc43-fe3b-4994-8ca1-7dc0db94430f",
"destination_token": "dest_d2138fd0-00be-45a8-985f-4f5bde500962",
"percentage": 50
}