This POST endpoint is used to add an autopay rule that will initiate a payout whenever the provided wallet token is loaded.
You can use this endpoint to create an autopay rule that automatically sends a percentage of incoming load to a specific destination.
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.
The response will include a JSON object containing the details of the created autopay rule, including the token, destination_token
and percentage.
Note: AutoPay can only be created on wallets that have the same currency as the destination_token
. It cannot initiate transactions with an exchange rate.
post https://{environment}.masspay.io/{VERSION}/wallet///autopay