WhiteBooks API Architecture

A view from above of how a customer request flows from your ERP / app, through the WhiteBooks API gateway, to the upstream GSTN / IRP / NIC system, and back — including the retry, queueing, webhook, and audit layers that make it work at enterprise scale.

Request flow (logical)

┌─────────────┐    HTTPS     ┌────────────────────┐    OAuth     ┌──────────────────┐
│ Your ERP /  │───────────────│ WhiteBooks API     │──────────────│ Auth + Token     │
│ app / SDK   │  Bearer token │ Gateway (Cloudfront) │            │ Service          │
└─────────────┘               └────────┬───────────┘              └──────────────────┘
                                       │
                                       ▼
                                 ┌──────────────┐
                                 │ Rate-limit + │
                                 │ IP allow-list│
                                 └──────┬───────┘
                                        │
                              ┌─────────┴─────────┐
                              ▼                   ▼
                     ┌────────────────┐  ┌────────────────┐
                     │ Retry queue    │  │ Idempotency    │
                     │ (SQS / Kafka)  │  │ store (Redis)  │
                     └────────┬───────┘  └────────────────┘
                              │
                              ▼
                     ┌────────────────┐
                     │ Upstream       │
                     │ adapter        │
                     └────────┬───────┘
                              │
            ┌─────────────────┼─────────────────┐
            ▼                 ▼                 ▼
      ┌──────────┐      ┌──────────┐     ┌──────────┐
      │ GSTN     │      │ IRP      │     │ NIC EWB  │
      │ portal   │      │ (e-Inv)  │     │ system   │
      └──────────┘      └──────────┘     └──────────┘

                              ▼
                     ┌────────────────┐         ┌────────────────┐
                     │ Audit log      │────────▶│ Your webhook   │
                     │ (immutable)    │  event  │ endpoint        │
                     └────────────────┘         └────────────────┘

Layers

Multi-region deployment

Active in ap-south-1 (Mumbai, primary) and ap-south-2 (Hyderabad, secondary). Cross-region replication on the audit log; failover automated. Enterprise customers can request VPC peering or dedicated single-tenant infrastructure.

Data residency

All Indian-business data is stored exclusively in India (ap-south-1 + ap-south-2). KSA business data is stored exclusively in Saudi Arabia (me-south-1). No cross-border transfer of regulated tax data.

Part of the WhiteBooks Enterprise cluster. Last updated 27 May 2026.