The affiliate flow functions almost identically to the standard API integration, with one key difference: payouts can be automatically split between multiple wallets. This behavior is configured during the encrypted wallet generation step (address_in), allowing you to define how commissions are allocated.You should call this API from your server whenever you want to apply a custom commission structure. Once configured, each successful payment will instantly distribute the payout between two wallets—one for the merchant and one for the affiliate.Make sure the merchant wallet and affiliate wallet are not the same, otherwise the request will be rejected.All payout distributions are approved instantly, and the system supports immediate settlement for both parties. The receiving wallet generated by the API automatically follows the commission percentage you have set.Optionally, if you prefer a simpler, more seamless setup, you can also follow the custom domain integration guide. This method allows you to define your own commission rules while rebranding the checkout experience under your own domain—ideal for white-label or reseller use cases with minimal coding effort.