About the Client
Redbus is a global digital platform for bus ticketing, operating in India, Malaysia, Singapore, Indonesia, and LATAM markets. In Malaysia, Redbus generates B2B invoices, which posed unique challenges for LHDN e-invoicing compliance.
- Entity Type: Global Digital Platform (Tech-Led)
- Integration Type: Direct B2B
- Market: Primarily online and mobile-driven, API-native
Problem
- Custom Billing Architecture: Unlike off-the-shelf ERPs, Redbus had a proprietary system for invoice generation—making schema alignment and compliance mapping a non-trivial task.
- B2B Invoice Compliance: Redbus needed to issue e-invoices to its corporate partners and affiliates in Malaysia while aligning with LHDN’s strict JSON schema and validations.
- Real-Time Submission Expectations: As a digital-first company, Redbus expected the compliance layer to match its API-first architecture and minimal-latency expectations.
- Validation Complexity: Redbus handled multi-party settlements and dynamic tax handling based on invoice jurisdiction, requiring robust logic and validation mapping.
Solution
- API-Native Middleware:
Complyance integrated into Redbus’ custom billing platform using REST APIs, enabling real-time conversion of internal invoice formats into LHDN-compliant JSON payloads. - Custom Adapter Layer:
Built a lightweight adapter between Redbus’ internal invoice structure and LHDN requirements, covering:- Tax breakdowns
- Buyer and seller TRN mapping
- Invoice type, supply type, and document classification
- Validation & Monitoring Stack:
- Deployed pre-submission auto-validation for all outgoing invoices
- Reconciliation tools to track successful, failed, and retried invoices
- Provided async webhooks for status updates
- Minimal Disruption Deployment:
Enabled the compliance layer to operate without refactoring Redbus’ existing billing code—speeding up go-live while maintaining audit integrity.
Impact
- Go-Live in < 3 Weeks using internal dev team and Complyance APIs
- Full LHDN Compliance without changing internal invoice logic
- Devs Empowered – Self-serve tools, documentation, and sandbox for Redbus’ internal team
- Scalable Architecture to reuse in other Southeast Asian markets adopting e-invoicing