Deep dive · L2

Developer Platforms & Protocol Middleware

OpenAPI-first contracts, versioned public interfaces, SDKs and shared event streams over Kafka and Pub/Sub.

The role

For the developer platform, I owned the API contracts, developer portal, sandbox and onboarding journey that partners used to integrate. I treat developers as customers: success is measured in adoption, Developer NPS and time to go-live.

The problem

Post-M&A fragmentation: 10+ markets ran inconsistent APIs, and every partner integration was bespoke.

The architecture

Middleware integration hub

  • One hub connecting merchants with 50+ global and local partners
  • Syncs four things both ways: catalog, orders, loyalty and payments
  • Partners include Google Pay in Singapore and OCBC Bank, whose apps show merchant catalogs and send orders through the middleware to merchants
  • Canonical data model with an adapter per partner, so a new partner doesn’t change the core
  • Central middleware integration hub with Salesforce / HubSpot connectors
  • OpenAPI / Swagger specifications
  • HMAC-signed webhooks with automated retries
  • Versioning and breaking-change policy
Partner→Sandbox→Contract→Go-live→Webhooks

Developer experience

  • Self-serve onboarding funnel
  • Sandbox environment
  • SDKs in multiple languages
  • Developer portal

Fig. 02 — Integration flows

How partners and merchants connect

Partners own the customer experience. Merchants own the fulfilment. The middleware makes sure both always agree on what's on sale, what was ordered and what was paid.

  1. 01 · Discover

    The customer browses a merchant’s catalog inside a partner app, such as a bank app or wallet.

  2. 02 · Order

    The partner sends the order to the middleware through the open API, with an idempotency key.

  3. 03 · Validate

    The middleware checks items, prices and availability against the merchant’s live catalog.

  4. 04 · Deliver

    The order is routed to the merchant’s POS or ordering system.

  5. 05 · Update

    Order status and payment confirmation flow back to the partner through signed webhooks with automatic retries.

A new partner should take days, not a project.

Fig. 03 — The ecosystem

50+ partners, one contract

Global and local partners connect through the same APIs, so every integration makes the platform more valuable for the next one.

Wallets & super-apps

Merchant catalogs and ordering inside apps customers already use, including Google Pay in Singapore.

Banks

Bank apps showing merchant catalogs and sending orders, including OCBC Bank.

Payments

Payment providers and local methods connected through the same platform.

Loyalty

Points, rewards and offers shared across channels.

Merchant systems

POS and ordering systems receiving orders and syncing catalogs.

Business tools

CRM connectors such as Salesforce and HubSpot.

Fig. 04 — Running the platform

Observability and change management

See every partner

  • Health dashboard per partner: request volume, error rates, latency and webhook delivery success.
  • Alerts when a partner's error rate or sync lag crosses a threshold.
  • Order and sync tracing from partner app to merchant and back.

Change without breaking

  • OpenAPI contracts and versioned public interfaces.
  • Backwards compatibility as a rule; breaking changes only in new versions.
  • Published changelog, deprecation windows and direct notice to affected partners.
  • Contract tests run before every release.

Case studies

Four initiatives, four failures, four lessons

Across all four

The pattern

Middleware hub

Ambiguity
Build per partner or a shared hub?
First failure
Stale catalogs between scheduled syncs
Fix
Event-driven sync and validation
Result
50+ partners

Partner apps

Ambiguity
Who owns failures?
First failure
Duplicate orders from retries
Fix
Idempotency and a shared state machine
Result
Live in Google Pay and OCBC

Open APIs & portal

Ambiguity
Whose API is the standard?
First failure
Docs-only portal
Fix
Self-serve keys, sandbox and SDKs
Result
3x adoption, +40 DNPS

Observability & change

Ambiguity
Who notices when a partner breaks?
First failure
Learned of a break from merchants
Fix
Per-partner monitoring and contract tests
Result
Breaking changes caught before release

A platform is only as strong as its weakest integration. Make the next partner easier than the last, and know before they do when something breaks.

The results (company outcomes)

3x

API adoption

+40

Developer NPS

wks → days

Partner onboarding

Team & reporting

10 direct reports, 25+ person org.

Lesson

“Developer experience is a distribution strategy. Every hour removed from integration compounds across the ecosystem.”