Skip to main content
January 16, 2026

Automating Affiliate Payouts via REST API

By default, affiliate payouts in Tapfiliate are not automated. This gives you full control to manually generate the payout files with all payout details and upload them to your preferred payment provider to complete the payments on your own terms. Affiliates paid through Trolley are the exception: their payments are not paid with a file, but sent from Trolley (see Automating payouts with Trolley).
That said, you can automate certain steps in the affiliate payout process using Tapfiliate’s REST API:
  • Fetch outstanding balances for your affiliates
  • Retrieve each affiliate’s payout details
  • Process payments via your chosen payment provider
  • Register completed payments in Tapfiliate

Notes & Recommendations

  • Automating payouts requires developer support.
  • Manual payouts with payout files are suitable for smaller programs or if you prefer not to automate.
  • Ensure your payment provider supports the API operations required for automation.
If you have any questions about automating payouts or want guidance on implementing the workflow, feel free to contact our support team.

Step-by-Step Automation Workflow

  • List All Balances
    Retrieve all unpaid affiliate balances using this endpoint.
  • Retrieve a Payment (optional step for verification)
    If needed, get details of a specific payment before or after processing it.
  • Retrieve the affiliate payout method or List the affiliate’s payout methods
    Get the affiliate payment details, such as PayPal email or bank account information, to ensure smooth processing:
  • Complete Payments with Your Payment Provider
    Use your payment provider’s API to execute the actual payments to your affiliates. Leave out affiliates whose primary payout method is a Trolley one and who have completed the setup for automated payouts: the next step creates their payment in your Trolley account, and you send it from Trolley (Step 7 of the Trolley article). Paying them with your provider as well pays them twice. After you record the payment, check the Trolley batches: a payment that isn’t in any of them wasn’t sent to Trolley (for example, when the affiliate’s Trolley payout method was added through the REST API), and it is marked Settled all the same: pay it another way or cancel it.
  • Create a Payment in Tapfiliate
    Once a payment is completed (for affiliates paid through Trolley, without paying them first, as above), register it in Tapfiliate using this endpoint (after this step you affiliates will see the balance is settled).
  • Cancel a Payment (if necessary)
    If a payment needs to be reversed or canceled, use this endpoint.
  • In addition, you can List All Payments (optional step for tracking)
    You can fetch all previously created payments to check payment history.

FAQs

❓ How can I automate the payout process inside Tapfiliate? Can I connect my PayPal/Stripe/Back account with Tapfiliate directly and delegate managing payouts to Tapfiliate completely? While using the REST API is a great way to automate payouts, you can also use a 3rd party tool, Trolley: when you settle balances, Tapfiliate creates the payments of affiliates paid through Trolley in your Trolley account, and you send them to your affiliates from Trolley (how). Tapfiliate Pay, our payout service, is planned and not available yet.