Guide ·

Bulk Payout API Integration: Beneficiaries, Batches, Status and Reconciliation

How to plan a bulk payout API integration: beneficiary registration, batch payouts, approvals, safe retries, status checks and daily reconciliation.

By Ritesh Singh, full-stack developer

Vendor settlements, agent and retailer commissions, refunds and incentives all mean paying many people at once through a bank or payout API. Uploading files to net banking is slow, makes double payments easy and leaves the software blind to which payments arrived. A bulk payout integration moves this into your own platform. This guide covers how I plan one so that money goes out once, to the right account, and every rupee can be matched later.

1. Know exactly what you are integrating

Start by getting the full documentation from the bank or payout provider and reading it as a checklist of questions. Which flows does it offer: beneficiary registration, beneficiary enquiry, single payout, batch payout, payout status enquiry, callbacks? Which payment modes are supported, and what are the limits and timings for each? Is there a UAT environment, IP whitelisting, payload encryption or request signing? Collect the answers before anyone estimates the work. My guide to writing a software project brief has a section on listing integrations and the accounts and keys each one needs.

2. Register and verify beneficiaries first

Many bank APIs make you register a beneficiary before you can pay them, and registration is not instant: the request is accepted, then processed, and you learn the result through an enquiry call or a callback. Treat the beneficiary as a record with its own status, such as pending, active or rejected, and only allow payouts to active beneficiaries.

Validate IFSC format and account number before calling the bank, and keep the bank's reference and any rejection reason so your team can fix details instead of guessing. This beneficiary request and enquiry flow is what I built in my bank batch-payment integration in PHP.

3. Model payouts and batches as records with states

Give every payout its own row with a unique reference that your system generates, and group payouts into a batch row when they are sent together. Each payout moves through a fixed set of statuses, for example created, approved, submitted, pending, success, failed and reversed, and the code only allows valid moves between them. A unique constraint on the reference stops a double click or a re-uploaded file from creating the same payment twice.

For uploaded sheets, show a preview with row errors before saving, as described in my guide on custom admin dashboard development.

4. Add an approval step

A maker-checker flow, where one user creates a batch and a different user reviews and approves it, catches most mistakes before they become payments. Enforce it on the server: the API should refuse an approval from the user who created the batch, and only roles with payout permission should see the approve action. My guide on role-based access control in Next.js and Node.js covers how to check this on every route.

5. Never resend a payment you are unsure about

The most dangerous moment in a payout integration is a timeout. Your request may have reached the bank and been processed even though you never got a response. If the code simply retries, the beneficiary can be paid twice. Save the payout with its reference before calling the API, mark it pending if the response is missing or unclear, and find out what happened with a status enquiry using the same reference. Only a clear failure allows a new attempt, as a new payout linked to the old one. The same rule applies to AEPS transactions, which I cover in my AEPS software development guide.

6. Encryption, signatures and keys

Bank APIs often require the request body to be encrypted and the request to be signed, commonly with AES-256-GCM and HMAC-SHA256, with strict details on key encoding, IV length, tag position and field order. Ask the bank for one complete worked example and match it byte for byte before sending real requests. I explain the process in my bank API integration checklist for AES-256-GCM and HMAC. Keep keys and secrets in environment variables on the server, never in the code repository, and use separate keys for UAT and production.

7. Submitting batches

Banks usually limit how many payouts one batch request can carry and how fast you can call the API, so the submit step should split large batches into chunks and send them from a background job, not from the web request where the user clicked approve. A batch can be accepted while payouts inside it fail later, so track status per payout, not only per batch.

8. Status enquiries and callbacks

Most payouts are not final the moment they are submitted. Run a scheduled job that sends status enquiries for every payout still submitted or pending until each one is final. If the bank sends callbacks, verify their signature, record each one, and process it only once, so a callback that arrives twice cannot mark a payment twice or trigger a second notification. Save the bank's transaction reference, such as the UTR, on each successful payout; it is what the beneficiary and your accounts team will ask for.

9. Daily reconciliation

Reconciliation is how you prove the software and the bank agree. Each day, match your successful and failed payouts against the bank's statement or report using your reference and the bank's reference, and produce a short list of differences: paid in the bank but not marked in your system, marked paid but missing from the statement, or amounts that do not match. Also watch for reversals, where a successful payout is returned later, for example from a closed account, and mark those reversed.

10. Logs, audit trail and the admin screen

Log every request and response with the payout reference and result, masking account numbers. Keep an audit trail of who created, approved or cancelled each payout, and give operations a screen with batches, payouts, status filters, failure reasons and exports for finance.

11. UAT test cases before go-live

Test more than the happy path in the bank's UAT environment: a successful payout, an invalid account or IFSC, an inactive beneficiary, insufficient balance, a duplicate reference, a timeout followed by a status enquiry, a callback delivered twice and a batch with some failed items. After sign-off, switch to production keys and send one small real payout first.

Bulk payout integration checklist

  • Documentation read for flows, modes, limits, UAT, IP whitelisting and encryption.
  • Beneficiaries stored with status; payouts allowed only to active ones.
  • Every payout has a unique reference, saved before the API call.
  • Fixed payout statuses with only valid transitions.
  • Maker-checker approval enforced on the server.
  • Timeouts become pending and are resolved by status enquiry, never by blind retry.
  • Encryption and signing matched to the bank's worked example; keys outside the repo.
  • Batches split and submitted from a background job; status tracked per payout.
  • Callbacks verified and processed once; bank reference saved.
  • Daily reconciliation report and handling for reversals.
  • Masked logs, an audit trail and an admin screen with exports.

Planning payouts through a bank or payout API? I build bank and fintech integrations in PHP and Node.js, from UAT to go-live. See my fintech and bank API integration service and Node.js and PHP backend development, or send the bank's documentation and your requirements through the project brief form.

In practice

Case studies using this approach

Keep reading

Related guides

Related services

Hire me for this

Want this done for your product?

Start your project →