Automated Payout System for Marketplace: Architecture & Implementation

After launching a payout module without a hold, a marketplace's seller balance went negative by 500,000 rubles due to mass returns. To prevent recurrence, we design systems with escrow and automatic calculations. Our team, with 7 years of fintech experience, has implemented payout modules for 20+ ma

Development and maintenance of all types of websites:

Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:

Frequently Asked Questions

Latest works

  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1281
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1237
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    977
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    1026
  • image_website-sbh_0.webp
    Website development for SBH Partners
    1103
  • image_website-_0.webp
    Website development for Red Pear
    550

After launching a payout module without a hold, a marketplace's seller balance went negative by 500,000 rubles due to mass returns. To prevent recurrence, we design systems with escrow and automatic calculations. Our team, with 7 years of fintech experience, has implemented payout modules for 20+ marketplaces—from startups to platforms with 10,000 sellers. Over 5 years in the market, we've built reliable financial cores that handle thousands of transactions daily. Automating seller payouts reduces operational costs by 40% and eliminates manual entry errors. Financial control of a marketplace is key to transparency and compliance with Federal Law 115-FZ.

In this article, we'll break down the key components: financial model, money lifecycle, payment gateway integration, refund handling, and document workflow. You'll learn how to avoid common mistakes and build an infrastructure that scales with your marketplace.

Automated Payout System: Architecture and Key Modules

How does the payout lifecycle work?

The buyer pays—the money arrives at the platform's account. The platform deducts its commission (typically 5–15%) and transfers the net amount to the seller. The core entities are balances and transactions stored in the database:

seller_balances ( seller_id, available_balance, hold_balance, total_earned, currency, updated_at ) balance_transactions ( id, seller_id, type, amount, balance_before, balance_after, reference_type, reference_id, status, created_at, description ) -- type: order_credit | commission_debit | payout_debit | refund_debit | adjustment 

Fund movement stages

  1. Order payment—the amount minus commission is credited to the seller's hold_balance.
  2. End of hold period (7–14 days after delivery)—transfer from hold to available.
  3. Payout request—seller initiates withdrawal.
  4. Approval and transfer—platform sends funds via payment gateway.
  5. Confirmation—status set to completed, deduction from available_balance.

The hold protects against chargebacks—without it, the seller could withdraw funds and the buyer could immediately request a refund. Learn more about the escrow mechanism.

Why is the payout model important?

Automatic scheduling is the sweet spot: it reduces support load by 2x compared to manual payouts and doesn't require constant monitoring. A hybrid model (scheduled + on-demand) adds flexibility but is more complex to implement. For a marketplace with 1,000 sellers, operational cost savings can reach 2 million rubles per year. For a platform with 10,000 sellers, savings can exceed 20 million rubles annually.

Payout Model When to Choose Features
On-demand Few sellers, high margin Manual work, accounting burden
Scheduled Stable order flow Minimal operations, inflexible for sellers
Hybrid Large marketplaces Trade-off, but more complex in code

Automated scheduled payouts reduce support load by 2x compared to manual. Hybrid payout model is 1.5x more effective than purely scheduled in terms of seller satisfaction.

How to integrate payment gateways?

We choose a gateway based on marketplace requirements. Each provider has a specific webhook notification format. We configure handling of success/error and automatic balance reconciliation.

Payment Gateway Commission Features
ЮKassa Split 3–6% For Russia, automatic payment splitting
Tinkoff Partners Bank transfers, legal entity support
Stripe Connect 2.9% + $0.30 International, multi-currency support
PayPal MassPay Mass payouts abroad

Refund processing

On refund, the amount is deducted from the seller's available_balance; if insufficient, from hold_balance. If both are empty, a negative balance is created, blocking future payouts. In the system, this is recorded with type='refund_debit'.

  1. Refund to buyer—from escrow/platform balance.
  2. Deduction from seller: refund_amount + commission reversal (optional).
  3. Record in balance_transactions.

Document Workflow and Reporting

For Russian sellers, we generate:

  • Certificate of completed work / agent report
  • Invoice (if VAT applicable)
  • Sales register

PDF files (via Puppeteer) are stored in cloud storage. Separate templates for sole proprietors and self-employed. All documents are available in the seller's account archive.

Seller Interface

  • Current balance (available / on hold)
  • Transaction history with Excel export
  • Payout request form with payment details
  • Payout statuses (processing / completed / failed)

Before the first payout—reconciliation of details: BIC verification and a test transfer of 1 ruble.

Security and Control

  • Withdrawal limits (daily, per transaction)
  • Double confirmation for amounts above threshold
  • Anomaly monitoring
  • Daily reconciliation with payment system

We guarantee compliance with Federal Law 115-FZ and full audit of all transactions.

What's Included in Turnkey Development

  • Detailed API specification and data model
  • Integration with the chosen payment gateway
  • Automatic scheduled payout module
  • Generation of accounting documents
  • Seller's personal account with balance and history
  • Deployment on the client's infrastructure
  • Team training and documentation
  • 30 days of technical support after launch

Timeline: 6 to 8 weeks for a typical system. Contact us to get a preliminary architecture for your system. Order development—start with an audit of your current payout flow.