IPO SOP · KotakOperations handbook · v2.0
Juspay × Kotak · UPI IPO Mandates

The IPO Operations Handbook

Everything MS, Recon and SRE need to run a Kotak IPO end-to-end — from the bank's confirmation mail to the final certificate. Re-built against the live automation: 20 CronJobs, their ConfigMaps, the SQL you run, and the mails you send.

7 parts 20 CronJobs documented 18 scripts explained SQL + mail templates Updated Nov 2026
7
Handbook parts
20
Cron jobs
12
Automated steps
5
Lifecycle stages

An IPO moves through five stages. Each stage has its own part in this handbook — read them in order the first time, jump straight to one when you're on-call.

STAGE 1
Pre-IPO
Bank mail → merchant onboarding → VPA & healthCheck → pod scaling → cron readiness
STAGE 2
Bidding days
10:00–17:00 flows, hourly reports, rate limits; EOD switch file, 1B recon, Annexure-A
STAGE 3
EOI day
Closure checks, EOI summary vs recon, data fixes, EOI file, FC summary mail
STAGE 4
Execution
FND 01 debit → FND 02 revoke → DD processing → BGGD for unsettled cases
STAGE 5
Certificate
RNU / DBT / FNDRESP files, Annexure-B, response upload, closure mail
T-7 → T-1 · Pre-IPO
Onboard the IPO as a merchant and get the platform ready
Bank confirmation mail, IPOMaster API check, MID/VPA/MCC onboarding, NPCI VPA verification, MerchantId written to the Ipos table, healthCheck, pods scaled to the bank's TPS. Cron jobs get parameterised for this IPO.
Bidding day 1..N · 10:00–17:00
Applications flow in from broker apps
Monitor ReqMandate / RespMandate / ValidatePanBank in Kibana. An hourly payStatus report lands in your inbox automatically. Rate-limit bursts (429) get reported to bank + exchange for re-initiation.
Bidding day · 17:00–19:00
End of day: files, recon and the bank mail
Switch file + Annexure-A are generated automatically. Exchange EOD file lands by ~17:30 → recon builds the 1B file → mismatch analysis → master compliance + EOD count mail to the bank.
EOI day · 17:00 onwards
The issue closes and the EOI file goes out
Pending mandates expire. Verify closure, compare our summary against recon, fix data gaps, generate & upload the EOI file, send the FC summary + Annexure.
T+0 → T+3 · Execution & closure
Money moves, funds unblock, certificates are issued
Run the debit file (allottees) then the revoke file (non-allottees). Deemed-debit script clears stragglers, BGGD is raised for unsettled cases, and the final certificate set (RNU/DBT/FNDRESP + Annexure-B) is generated and shared.

The old SOP named scripts that no longer exist and described manual steps that are now automated. v2.0 fixes all of it — and splits the material into seven focused documents.

AreaOld (v1) SOPNew (v2.0) reality
Switch fileManual run of "newton-ipo-switch-file-generation-new" + hand-filled AnnexureAUTOMATED newton-ipo-switch-file-generation-with-annexture auto-discovers every live IPO, generates RECO files + Annexure-A and posts to Slack (17:00 IST, Mon–Fri)
Hourly report"Pending for automation" — manual SQL every hourAUTOMATED newton-ipo-hourly-summary-report posts the payStatus funnel to SNS every hour
EOD countsManual SQL + hand-typed mail tableAUTOMATED newton-ipo-eod-summary / newton-ipo-eoi-compare generate and mail the counts via SNS
Missing accDetailManual detection SQL onlyAUTOMATED sync-ipo-mandate-acc-details re-checks and backfills account details (with SNS summary)
BGGDFully manualAUTOMATED newton-ipo-bggd-data builds the BGGD file and uploads it to S3 + Slack
Final certificateManual "newton-ipo-eoi-file-cert"AUTOMATED newton-ipo-final-certificate and newton-ipo-file-cert-with-annexture (auto-fills Annexure-B → Slack)
Anomaly / recon diffNot coveredAUTOMATED newton-ipo-anomaly-report compares PSP vs NPCI recon and posts discrepancy CSVs
Job namesOld names (switch-file-generation-new, eod-generation, mandate-sync-pending-file…)All renamed to the live CronJob names in ipo-scripts
StructureOne large document7 focused parts + this website + matching Word documents
!
One rule to remember: most CronJobs ship suspended with placeholder schedules. For each IPO you parameterise the env vars, trigger a one-off run with kubectl create job --from=cronjob/…, verify the outputs, then clean up. Only two jobs are always on — the 09:00 running-IPOs report and the 17:00 switch-file job. Full details in Part 05.
IPO SOP (Kotak) · v2.0 · maintained alongside the crons/ and configmaps/ definitions · Word copies in IPO-SOP-Kotak-v2/