If your ERP handles UPI payments for capital market investments, tagging the right purpose code is super important — not just for compliance but also for making audits painless later. NPCI and your bank partners require that every UPI collection carry a purpose or merchant category tag (like INSURANCE_PREMIUM, CAPITAL_MARKET_INVESTMENT, etc.) so they can classify transactions properly during settlement and reporting.
Here’s a simple way to get this right:
- Add a purpose code field in your UPI transaction schema.
When the ERP creates a UPI collect request (/upi/collect or similar), include a key like purpose_code or txnPurpose in the payload. For capital market flows, this should map to NPCI’s defined code — usually something like CAPITAL_MARKET_INVESTMENT or CAPMKT_INV.
Example:
{
txn_id: INV12345,
amount: 250000,
payer_vpa: user@upi,
purpose_code: CAPMKT_INV,
remarks: Equity Purchase via Broker XYZ
}
- Use metadata rules to auto-tag transactions.
Don’t rely on manual tagging. Have your ERP detect when the ledger account, invoice type, or customer category = brokerage, mutual fund, or demat account funding, and then automatically assign the correct purpose code.
For example, any payment linked to GL accounts like Capital Market Receivables or Broker Margin Deposits should auto-inherit CAPMKT_INV.
- Validate purpose codes before posting.
Your ERP should block any UPI request that doesn’t have a valid code this ensures you never send untagged payments that cause reconciliation pain later.
- Store the code for audits.
When the UPI payment settles, store the purpose_code in your transaction and ledger tables so your auditors can filter by it during quarterly reviews. It’ll make your compliance reporting way cleaner.
- Sync with your payment gateway or PSP’s mapping.
Some gateways (like Razorpay or Cashfree) already have NPCI purpose code enums baked in. Make sure your ERP’s code names match theirs otherwise the tag may not pass through to the UPI network.
- Optional: include the code in the GST e-invoice or reconciliation exports.
Add a field like UPI Purpose in your audit or invoice exports. When auditors check high-value inflows, they can immediately see whether it was a capital market transaction no manual tracing needed.