Duvaxa

Developer Tools · India Stack test server

IndiaStackMock

India Stack, on your desk.

One offline test server for UPI, GST e-invoice, e-way bill, GSTIN lookup, PAN verification and Aadhaar OTP eKYC, with failures on demand.

Fintech and payments teamsERP and billing software vendorsE-commerce and logistics platforms
indiastack-mock · example
$ curl -X POST :8099/upi/v1/collect -d '{"payerVpa":"pending@okbank",...}'
status PENDING → PENDING → SUCCESS
$ curl -X POST :8099/einvoice/v1/generate -d @invoice.json
Irn 64-char SHA-256 · AckNo 172610000000001 · Status ACT
2150 Duplicate IRN (same invoice sent twice)
intra-state supply must use CGST + SGST, not IGST
Responses from the product's own test suite.
MocksUPI, GST, PAN, Aadhaar
RunsOffline, in CI
FailuresOn demand
DataSynthetic only

The problem

Government and bank sandboxes are slow, rate-limited, sometimes down, and can't be told to fail. CI pipelines can't depend on them.

What it does

01

UPI collect, status polling, refunds and signed callbacks, with outcomes picked by the payer handle

02

E-invoice IRN generation with schema, GSTIN checksum, tax-split and total validation, and duplicate detection

03

E-way bill validity by distance, vehicle number and pincode checks

04

PAN verification with holder type, status and Aadhaar-link outcomes

05

Aadhaar OTP eKYC with consent, Verhoeff check, attempt lock and masked logs

06

Chaos header for slow, timeout, error, rate-limit and maintenance responses

How it works

  1. Run indiastack-mock serve on your machine or in CI
  2. Point your app's API base URL at it
  3. Test happy paths and failures in milliseconds

Works with

UPIGST e-invoiceE-way billPANAadhaar eKYCDocker

Your data

  • Synthetic data only; no real identities.
  • Runs entirely offline.
  • Clearly labelled as a test service.

Who it's for

Fintech and payments teamsERP and billing software vendorsE-commerce and logistics platforms

Questions

Why not the official sandboxes?

They're slow, rate-limited, sometimes down and can't be told to fail; CI needs all four.

Can it simulate failures?

Yes: timeouts, declines, invalid inputs and partial outages, on demand.

Related

Often used with IndiaStackMock

See IndiaStackMock on your own data

A 30-minute call. We run the product on your export, repository or document and walk you through the results.

Book a demo