Skip to content

Royalty and payout engine for a maritime e-book publisher

Software that turns each e-book sale into author and publisher payouts after gateway fees, GST, royalty and TDS, with ledgers and dashboards.

News and mediaA maritime publisher selling e-books online · 3 min read

Publisher working on a laptop at a desk of manuscripts and books in front of full bookshelves
Client
A maritime publisher selling e-books online
Industry
News and media
Platforms
Web
Download one-pager (PDF)

The project in brief

  1. The challenge

    The publisher sells e-books through several payment gateways and currencies, often with several authors, a co-publisher or a bundle per sale. Each sale carries gateway fees, GST, a platform royalty, publisher shares and, for Indian authors, tax deducted at source. Working out payouts by hand was slow and error-prone.

  2. What we built

    We built a royalty engine that pulls sales from the Easy Digital Downloads API and identifies the title or bundle, format, gateway and currency. Masters for authors, publishers, e-books, bundles, currencies and gateways hold the rules. Ledgers, monthly statements and dashboards for admin, authors and publishers sit on top.

  3. The result

    Each sale is split automatically into gateway fee, GST, platform royalty, publisher share, TDS and net author payout. Authors and publishers log in to see their own sales, download monthly statements and get an email when they are paid.

What the system does.

The parts of the system that made the difference for the client and the people who use it.

  • Sales import

    Sales arrive from the Easy Digital Downloads API and are matched to a title or bundle, format, gateway and currency.

  • Revenue split per sale

    Gross revenue minus gateway fee, GST, platform royalty, publisher share and TDS gives the net author payout.

  • Multi-author and bundle rules

    Co-authors split equally by default, and bundles split revenue across titles by set percentages.

  • TDS handling

    Tax is deducted for Indian authors and not for foreign authors, with a manual override and TDS history.

  • Currency and gateway masters

    Exchange rates and fee percentages per gateway are held as rules the team controls.

  • Ledgers

    Each author and publisher has a ledger of credits and deductions, filterable and exportable to PDF or Excel.

  • Three dashboards

    Admins see sales, payouts and platform revenue; authors and publishers see only their own earnings.

  • Statements and payment emails

    Monthly payout statements to download, and an automatic email when a payment is made.

Built with

The tools behind it, layer by layer.

  1. Front end

    • React
  2. Back end

    • Node.js
    • Express.js
  3. Database

    • MongoDB
  4. Cloud and hosting

    • AWS
  5. CI/CD and DevOps

    • GitHub Actions
    • Git
  6. Integrations

    • Easy Digital Downloads API
    • Stripe
    • PayPal
    • Razorpay

The full story

The challenge

A maritime publisher sells e-books online through Stripe, PayPal and Razorpay, in more than one currency. It needed royalty management software for publishers that could turn each of those sales into exact payouts. A single order can involve several authors, a co-publisher or a bundle of titles.

Every sale also carries deductions before anyone is paid. The gateway takes its fee, and GST applies. The platform keeps its royalty, and partner publishers take their share.

The publisher's rules called for tax deducted at source (TDS) on Indian authors' royalties before payout, with foreign authors handled under separate rules.

Working all of that out by hand each month was slow, and one wrong percentage could ripple through every statement that followed. The more titles, authors and gateways the catalog gained, the more room there was for a mistake.

What we built

We built a royalty and payout engine that reads every sale and applies the publisher's own rules to it.

Sales import. Sales arrive from the online store's sales API (Easy Digital Downloads). Custom parsing works out which title or bundle sold, in which format, through which gateway and in which currency.

Rules the publisher controls. The calculations come from masters that staff maintain, not from code:

  • Authors, with their tax settings

  • Publishers, with their revenue shares

  • E-books, with royalty percentages

  • Bundles, with set percentage splits across titles

  • Currencies, with exchange rates

  • Gateways, with fee percentages

The split. For each sale, the engine starts from gross revenue and deducts the gateway fee, GST, the platform royalty, the publisher share and TDS.

What remains is the net author payout. Co-authors split equally by default. TDS follows the publisher's rules: deducted for Indian authors, set separately for foreign authors, with a manual override and a full TDS history.

How it works day to day

Consider the person who runs payouts at the publisher. A new month begins, and the sales are already in the system, each one split and posted to the right ledgers. They filter by date, author, publisher, gateway or format to check anything that looks unusual, then export ledgers to PDF or Excel for the accounts team.

When payments go out, each author and partner publisher gets an email automatically. They log in to dashboards that show only their own earnings and download their monthly statements. The admin dashboard, meanwhile, shows sales, payouts and platform revenue across the whole catalog.

The result

Each sale is now split automatically into gateway fee, GST, platform royalty, publisher share, TDS and net author payout. Authors and publishers log in to see their own sales, download monthly statements and get an email when they are paid.

The month-end work that used to depend on careful spreadsheet arithmetic now follows written rules that staff can read and change. This engine sits alongside the same publisher's maritime news and e-book reader app and its crew hiring platform for seafarers.

What the research says

  • Spreadsheets carry hidden errors. A 2024 review led by Pak-Lok Poon in Frontiers of Computer Science found that 94% of spreadsheets used in business decisions contain errors (Phys.org, 2024). Payouts that pass through fees, GST, shares and TDS on every sale are exactly the kind of chain a formula slip breaks. That is why the engine applies the same rules to every sale.

  • Indian buyers pay digitally. The IAMAI and Kantar Internet in India 2024 report counted 405 million people making digital payments, out of 886 million active internet users (IAMAI and Kantar, 2024). With Razorpay alongside Stripe and PayPal, gateway and currency masters let each gateway's fee be deducted correctly.

  • E-books hold a steady audience. A Pew Research Center survey in October 2025 found 31% of US adults had read an e-book in the past 12 months, up from 17% in 2011 (Pew Research Center, 2026). Readers abroad pay through different gateways and currencies, which the engine identifies on every sale before it splits the revenue.

Where AI fits next

The engine does not do any of this today; these are possibilities. A check could flag sales the parser cannot match cleanly and suggest a likely title for staff to confirm. A model could draft plain-language notes on each author's monthly statement, and payout forecasts could help with cash planning.

Planning royalty management software for publishers?

Before you automate royalty payouts, it helps to answer four questions:

  1. In what order are deductions applied, and does that order ever change by gateway or country?

  2. How should co-authors and bundles be split when no special rule exists?

  3. Who can override a tax deduction, and how is that change recorded?

  4. What should authors see on their own dashboards, and what stays internal?

See how we approach custom software development, read our guide to month-end close automation, or explore our media and publishing software work.

Common questions

What does royalty management software for publishers do?

It takes each sale, applies the publisher’s rules for fees, taxes and shares, and works out what every author and partner publisher is owed. This engine also keeps ledgers, produces monthly statements and emails payees when they are paid.

How is a single e-book sale split?

The engine starts from gross revenue and deducts the gateway fee, GST, the platform royalty, the publisher share and TDS where it applies. What remains is the net author payout.

How are co-authored books and bundles handled?

Co-authors split equally by default. Bundles split revenue across their titles by percentages set in the bundle master.

Does the engine handle TDS for Indian authors?

Yes. The engine deducts TDS for Indian authors as the publisher's rules require, and foreign authors follow separate rules. Staff can override a deduction manually, and the system keeps a TDS history.

Can authors see their own sales?

Yes. Authors and publishers log in to dashboards that show only their own earnings, and they download monthly payout statements there.

More of our work.

Projects that used the same services or served the same industry.

See all our work

Free project estimate

Talk through a project like these.

Thirty minutes with a founder, not a salesperson. Bring the problem; leave knowing what we'd build first and what it would cost.

What you get back

  • An indicative budget range
  • A realistic timeline
  • What moves the cost up or down
  • A reply within 4 business hours
  • Answered by a founder
  • NDA on request, before you share details

Tell us what you need

A few lines is plenty. You get a number before any call.

Fields marked * are required.