Skip to content
Back to work

Project

Designing the API Platform Behind a Modern VSR Commerce Experience

A shared commerce API for catalog reads, server-owned carts and checkout, and operational tools—keeping legacy identity and migration uncertainty explicit.

Editorial VSR commerce API diagram connecting storefronts and tools with catalog, cart, checkout and commerce services
Workflow diagram

Existing editorial diagram of storefronts and tools, a shared API and commerce services; not an interface capture or verified current-deployment map.

In detail

A shared boundary for a changing commerce platform

VSR's storefronts and internal tools depended on product data and workflows spread across legacy systems. I designed and built a shared API service for catalog reads, carts, checkout and operational tools, while the surrounding platform continued to evolve.

My contribution spanned API contracts, data modeling, integrations and migration tooling. The delivered work was an integration boundary for those consumers—not a claim that the wider commerce migration was finished.

Decisions that protect the shopping flow

Cache the catalog; keep transactions authoritative

Catalog reads and checkout have different failure costs. I added cache-aware catalog responses, batch reads and normalized product data, while keeping cart and checkout requests out of that cache path.

The server owns cart line items, repricing, shipping, tax and payment-session metadata. This keeps transaction rules behind one boundary instead of asking each storefront to reproduce them. It also means frontend behavior depends on explicit API responses rather than a locally calculated checkout total.

Refuse to guess a product's identity

Legacy Ecwid records needed a dependable relationship to VSR meta items. I built persisted mappings with deterministic parent-META and item-number resolution. Ambiguous or malformed mappings are rejected and unresolved SKUs surfaced for investigation.

That trades a convenient-looking result for an explicit data problem. A missing mapping needs operational attention; silently choosing a different product is not an acceptable fallback.

Make migration repeatable without calling an experiment complete

Synchronization, assignment backfills and repeatable import scripts support an evolving platform. Medusa imports belong to that experimental migration work; the implementation account does not establish a completed Medusa cutover.

The retained API workflow diagram summarizes the relationship between storefronts, the shared service and commerce systems. It is an editorial diagram, not an interface capture, request trace or independently verified map of the current deployment.

Delivery and evidence

The published implementation account reports documented V2 contracts, normalized catalog access, persisted cart and checkout state, legacy identity mapping and operational tooling as delivered. Those are the author's delivery claims, not independent performance evidence. No measured latency, reliability or business result is supplied.

Technical depth

The service uses Next.js route handlers, TypeScript, Drizzle and PostgreSQL, with Stripe payment integration. Contracts include request IDs, typed errors, pagination and invalidation guidance. Idempotent webhook-event tracking, Sentry correlation and audit scripts make payment and synchronization behavior inspectable. Admin category/media endpoints serve the catalog control plane; the WebExercises storefront is a separate consumer story.

What’s getting in
your product’s way?

Tell me what you’re building, where it gets difficult, and what you’d like to change.

Email your projectmatt@biehl.io