Mauro Venticinque
Copied

A-03

Koru Shipday

Logistics integration between VTEX and Shipday: bulk rate upload, order dispatch and tracking updates. A native VTEX Admin app.

Specification
ClientKoru Suite · the agency's own product
Typeproducto
PlatformVTEX IO
Year2026
RoleAuthor
StackTypeScript · React · VTEX IO node 7.x · VTEX IO react 3.x · VBase · Vitest
Test cases391 tests · it/test blocks in 37 files
Own commits167 of 167 · GitHub API, 2026-11-08 · 40 PRs merged
Code17,562 lines · git ls-files ts/tsx/js, excluding node_modules and dist

Context

A VTEX store that ships with Shipday has three sync problems: shipping rates are entered by hand, orders have to be moved from one system to the other, and the shipment status never gets back to the buyer.

Options

The quick way out on VTEX is to ask the client for an AppKey and an AppToken, store them and call the API from wherever is most convenient. It works on day one. After that, those credentials sit in a config nobody rotates, with too many permissions, and the day they leak there is no way to know what used them.

Decision

No manual credentials. The app is native to VTEX IO and every call goes out from the node builder, authenticating with IO tokens:

  • Routes triggered by the UI use the session of the logged-in admin. If that person lacks permission, the call fails where it should fail.
  • The hourly cron uses the app’s own token, since it is the only thing that runs without a person behind it.

The frontend never sees a token or calls a VTEX API directly: it only hits its own routes under /_v/private/. That rule is what lets the app be installed in someone else’s store without asking the client for anything beyond installing it.

Verification

391 test cases across 37 files, written against the real contracts of the Logistics and OMS APIs. The operation history is stored in VBase, so a bulk upload that went wrong can be read afterwards.

Consequences

Everything goes through node, so there are no shortcuts: a new screen needs its route and its test. It is slower to get started, and it is the reason the app can be licensed to stores I do not control.

← Archive