← All work

Closing open export bills in one step · Sep 2025 – Aug 2026

Helping exporters close the loop on their shipping bills

An exporter’s shipping bills sit in the RBI’s EDPMS until the payment for each is matched to it, and open entries past the deadline can put an exporter on a caution list. Merchants who collect through us had paid exports still showing as open. I built the flow in our merchant dashboard that lets them register for regularisation with our partner bank, follow its status, and get their shipping bills matched and closed.

$
Role
Frontend engineer
When
Sep 2025 – Aug 2026
Where
PayGlocal
Stack
Next.jsReact 19TypeScriptZustandTanStack Query

The situation

Merchants paid through our platform had the payments, but the remittance records lived with us and our partner bank, so their own bank couldn’t easily close the shipping bills. A regularisation service with the partner bank existed; merchants needed a way in. The first version of the screens had mock submission data, a profile flag deciding who saw the feature, a banner that didn’t reflect the real registration state, and an upload step that could submit the same regularisation twice.

What I built

  • The registration journey: registering with the partner bank, progress and pending screens, a terms drawer, and a service-activated screen with a redesigned success card. Mock submission data removed and the pending-to-status workflow simplified.
  • Dashboard banners chosen from the registration API’s response, placed on the home dashboard, with buttons that go to registration or to status depending on where the merchant is.
  • Access controlled by a proper permission instead of a profile flag, and a switch in the operations console to enable the service per merchant.
  • All regularisation calls made with the merchant’s cross-border account rather than their default one, since that’s where the remittances are.
  • A fix for duplicate submissions: the upload step also triggered regularisation, so one click could send two. One action, one call. (A leftover debugger statement went too.)
  • In 2026, support for merchants with several cross-border accounts: the screens follow the account the merchant has selected, a status-check loader, state moved into a store with duplicate records removed, a simpler document upload, and shipping bill preview and mapping.
Try it

The banner follows the registration

Matching payments to shipping bills

Assign each incoming payment to the shipping bill it paid for. A bill closes when it’s covered in full. Small shortfalls, often bank charges, are flagged for the bank instead of being closed quietly.

Open shipping bills

    Incoming payments

      Decisions

      Status decides the screen

      A merchant might be unregistered, waiting on the bank, or active. Choosing the banner and the next step from the registration API, instead of a fixed flag, means the dashboard always points them to the right place.

      One action, one request

      Regularisation goes to a bank. A double submission isn’t a harmless UI bug; it’s two requests a bank has to reconcile. The upload and the regularisation were separated so each happens exactly once.

      Use the account the money came into

      Merchants can have more than one account with us. Regularisation only makes sense against the account that received the export payments, so the flow follows the selected cross-border account, not whichever one is the profile default.

      Permissions, not flags

      A per-profile flag is invisible to the people managing access. A named permission shows up where access is managed, and can be granted or removed without a deploy.

      Outcome

      WhatBeforeAfterDetail
      Regularisation calls per submissionup to 21duplicate removed
      Dashboard bannerstaticfollows registration statusAPI-driven
      Merchants with several accountsdefault account onlythe selected account2026

      What I learned

      ↑↓ move↵ openesc close