← All work

Self-serve proof of payment for exporters · Dec 2025 – Oct 2026

Proof of payment for exporters, generated in the dashboard

Since late 2023, Indian exporters generate their own eBRCs by mapping their banks’ inward remittance messages (IRMs) to shipping bills on the DGFT portal. For merchants paid through us, those IRMs come from our partner banks, so we could do most of the work for them. I built the eBRC screens in our merchant dashboard, from a placeholder prototype in December 2025 to bulk uploads and PDF downloads in 2026.

Role
Frontend engineer
When
Dec 2025 – Oct 2026
Where
PayGlocal
Stack
Next.jsReact 19TypeScriptZustandreact-pdf

The situation

Merchants had remittances arriving through our platform and shipping bills from customs, and needed eBRCs linking the two. Doing it on the DGFT portal meant finding each IRM, knowing the rules (one currency per eBRC, one bank account, no remittance before the shipping bill, deductions below the amount received) and getting rejected when they missed one. Larger exporters had hundreds of payments, and there was no bulk path in our product. (The posts below explain what an eBRC is.)

What I built

  • An IRM repository: every inward remittance message for the merchant, with summary cards, a table, and a details drawer showing how each IRM is mapped and its process status (including pending).
  • An eBRC generation flow on its own store: a review step, then mapping shipping bills to IRMs with deductions and a running summary, with validation that deductions stay below the IRM total and mapped amounts make sense, and back and next that keep their place.
  • Shipping bills that read themselves: upload a shipping bill, poll until its details are extracted, preview the PDF (loaded only when needed) and replace the file if it’s wrong.
  • Guidance in the product: a “What is eBRC” drawer, recommendation labels for likely mappings, and later a downloadable eBRC generation guide.
  • Signing in to the DGFT from the dashboard, refetching once signed in, with the right merchant ID throughout, including a chooser for merchants with several cross-border accounts.
  • Server-side search, pagination and filters (mapping status, process status, merchant ID) across the IRM, eBRC status and repository tables.
  • Bulk upload: download a template prefilled with the merchant’s IRMs, upload it through a presigned link, and see parsed rows, DGFT acknowledgement status and a validation summary of any errors.
  • PDF download of generated eBRCs, a shared fetch hook so every eBRC call handles errors the same way, and the screens first built on placeholder data, then wired to APIs with about 900 lines of mock data removed.
Try it
Shipping billSB-4410577Shipped 4 Feb 2026 · $4,200 USD

IRMs from your bank

eBRC preview

    Decisions

    Prototype before the API exists

    The eBRC screens were designed and built on placeholder data in December, while the backend took shape. When the APIs landed in February, the flow was already reviewed, and integration was mostly swapping data sources.

    Validate while mapping, not after submitting

    Every rule the DGFT applies is a rejection waiting to happen. Checking currency, account, dates and deductions as the merchant maps means they fix it on the spot, not after a round trip.

    A spreadsheet is a feature

    For an exporter with hundreds of small payments, a form per eBRC doesn’t scale. A prefilled template, bulk upload and a clear error summary is how they actually work.

    One way to fetch, one way to fail

    With many eBRC calls across screens, a shared fetch hook meant every error looks and behaves the same, instead of each screen inventing its own.

    Outcome

    WhatBeforeAfterDetail
    Where merchants generate eBRCsthe DGFT portal, by handthe dashboardIRMs already there
    Rule breaksfound on rejectionflagged while mappingin the form
    Many payments at onceone by onebulk Excel uploadwith a validation summary
    Work on eBRC~55 commitsDec 2025 – Oct 2026

    What I learned

    ↑↓ move↵ openesc close