Technical guide

ShipHub

Pipelines with hooks, a React web app, carrier and ERP adapters behind small contracts, a public API with signed webhooks, and an edge agent that brings dock hardware online without an inbound port.

.NET 10ReactOpenAPI 3.1HMAC webhooksPostgreSQL or SQL ServerContainers
Architecture

Components and connections

One reverse proxy; the rest on an internal network.

YOUR SITESSHIPHUBClarity Phoenix platformCONNECTED SYSTEMSStationsbrowser, keyboard-firstDimensionersTCP, framed readsScalesTCPLabel printersZebra ZPLEdge agentoutbound-only linkoffline print queueReverse proxyone published port, TLS at your edgeWeb appReact: station, store,freight, quotes, insightsPublic API/shiphub/v1, OpenAPI 3.1keys, tokens, idempotencyBack end (.NET 10): pipelines and hooksRating and decisioncarriers in parallelReview rulesversioned rule setsSourcingrank, rate, splitLTL and BOLclass, book, trackQuotesmarkup, margin floorAudit and insightsthree-way matchOutbox and scheduled taskssent once, retried with back-offDatabasePostgreSQL or SQL ServerPlatform servicescache, search, PDFWeb store, sitesweb components, embedsYour ERPorder source, write-backCarriersFedEx, UPS, USPSLTL adapter interfaceAI serviceoptional, masked inputWebhook receiversHMAC-signed events
Call directionShipHub partYour systems and partnersOptionalGrey bar: devices on the site network

Integrate through contracts

Order source and write-back; screens and API stay the same for any ERP adapter.

Resilient by design

Per-carrier timeouts, an exactly-once outbox, an offline print queue.

Secure by default

Scoped keys, signed webhooks, encrypted credentials, masked ship-to.

ShipHub ยท Clarity VenturesTechnical guidePage 1 of 12
Architecture deep dive

What each part does

ComponentRoleNotes
Web appStation, store, freight, quotes, insights, adminReact; keyboard-first station; tablet-ready store and freight screens
Public API/shiphub/v1 for other systemsOpenAPI 3.1 reference; scoped keys; idempotent ship and void
Back endPipelines: lookup, capture, rate, decide, ship, write back.NET 10 on the Clarity Phoenix platform; extended through hooks
RulesVersioned rule setsThresholds, review rules R1 to R9, customer rules, sourcing rules
OutboxERP updates and webhook deliveriesSent once, retried with back-off, dead items open a review
Edge agentDimensioners, scales, label printersDials out over WebSocket; offline print queue; config hot reload
DataShipments, packages, rates, decisionsPostgreSQL or SQL Server; cache, search and PDF services
Station UI on a tablet: scan to begin.
Station UI on a tablet: scan to begin.
Per-station settings stored with the station.
Per-station settings stored with the station.
16
public API operations
7
signed webhook events
3
parcel carrier adapters
2
ERP contracts

Extend, don't fork

Projects add behaviour through pipeline hooks, behind settings.

One engine

The station, the API and the calculator share one decision engine.

Edge, not inbound

Devices are reached through an agent that dials out.

ShipHub ยท Clarity VenturesTechnical guidePage 2 of 12
Data flow

Scan to label, step by step

The same engine serves the station and the API.

StationShipHubEdge agentCarriersERPWebhooksScan the pick ticket1Read order, lines and customer rules2Read box 1 from the dimensioner3Rate every carrier in parallel4Decide by rules, or send to review5Ship: label and tracking per box6Print ZPL labels, once7Write back via the outbox8shipment.created, signed9
Call or messageStep orderShipHub partYour systems and partners
The decision as the shipper sees it: auto-selected, with the reason.
The decision as the shipper sees it: auto-selected, with the reason.
Pre-flight uses agent heartbeats and a test read, print and ERP ping.
Pre-flight uses agent heartbeats and a test read, print and ERP ping.
Scan entry: a scanner, or type the number and press Enter.
Scan entry: a scanner, or type the number and press Enter.
ShipHub ยท Clarity VenturesTechnical guidePage 3 of 12
Integrations and APIs

Endpoints, events and embeds

CallPurposeScope
POST /tokenKey to tokensecret key
POST /ratesRate and deciderates:read
POST /estimateCart promisesestimate:read
POST /shipmentsLabels, write-backshipments:write
GET /shipmentsList, ship-to maskedshipments:read
GET /shipments/{id}/labelsZPL per packagelabels:read
POST /shipments/{id}/voidVoid and reverseshipments:void
GET /tracking/{no}Tracking eventstracking:read
GET /statusStatus embed datatracking:read
POST /embed/launchSigned iframe linkembed:launch
The API reference with the scope for each call.
The API reference with the scope for each call.
Webhooks

Seven signed events

Shipment created, voided and delivered; web store order created; audit finding created; quote saved; test ping. HMAC-SHA256 over timestamp and raw body; dedupe on the event id; reject after 300 seconds.

Embeds

Two ways in

A signed, short-lived iframe launch with a framing allow-list, or web components for rates, freight estimates and shipment status, using a publishable key bound to your origins.

Checkout promises come from the same estimate engine as POST /estimate.
Checkout promises come from the same estimate engine as POST /estimate.
Product page: delivery mode and store pickup lookup.
Product page: delivery mode and store pickup lookup.
ShipHub ยท Clarity VenturesTechnical guidePage 4 of 12
Security, privacy and compliance

Controls that exist in the product

We describe controls; we make no certification claim.

Audit findings show their evidence; actions need a person.
Audit findings show their evidence; actions need a person.
Credentials never appear in admin screens (example figures).
Credentials never appear in admin screens (example figures).
Cost and margin are staff-only: the customer's quote shows the sell price only (names hidden).
Cost and margin are staff-only: the customer's quote shows the sell price only (names hidden).
ShipHub ยท Clarity VenturesTechnical guidePage 5 of 12
Rules engine and AI

How ShipHub decides

Review rules

R1 to R9

LTL on a small shipment, residential mismatch, address the carrier could not confirm, carrier unavailable or unmapped, weight or size limits, dangerous goods, third-party account missing, already shipped, duplicate scan. Each opens a review item with a plain reason.

Sourcing rules

Seven, ranked

Minimise splits, freight to docks, same market, closest, lowest cost, store capacity cap, and an optional peak exclusion. The first rule that separates two locations decides; the decision is stored and explained.

Sourcing rules with a read-only dry run on a real order.
Sourcing rules with a read-only dry run on a real order.
The markup rule that priced each quote line is shown on the line.
The markup rule that priced each quote line is shown on the line.
Freight class from density, with an override that needs a reason.
Freight class from density, with an override that needs a reason.
ShipHub ยท Clarity VenturesTechnical guidePage 6 of 12
Admin and configuration

Screens your administrators use

Shipping administration: today on the station clock, carrier pacing, review queue, devices and the outbox (example figures).
Shipping administration: today on the station clock, carrier pacing, review queue, devices and the outbox (example figures).
Stations and devices: express ship, rate behaviour, next-box keys and ship on weight alone.
Stations and devices: express ship, rate behaviour, next-box keys and ship on weight alone.
Pre-flight checks before a shift.
Pre-flight checks before a shift.
AreaWhat is configured
Carrier mappingERP carrier codes to like-for-like FedEx, UPS and USPS services
Rate rulesAutomatic choice, threshold, training mode, review rules; published as versions
Customer rulesFreight terms, markup, carrier lock, third-party billing, signature; CSV import
API keys, webhooksScoped keys, endpoints and signing secrets, an embed tester and API explorer
ShipHub ยท Clarity VenturesTechnical guidePage 7 of 12
Deployment and environments

A self-contained container stack

Network dashboard: the same build serves DCs and stores (example figures).
Network dashboard: the same build serves DCs and stores (example figures).
The freight step on a 1024 px tablet.
The freight step on a 1024 px tablet.
ModuleSettings that switch it on
Sourcing and networkSourcingEnabled, SourcingIncludeStores, SourcingMaxLegs, NetworkDashboardEnabled
StoresStoreQueueEnabled, StorePickupEnabled, PickupCodeMaxTries
TransfersTransfersEnabled, ReplenishmentEnabled, TransferLtlWeightLb
LTL freightLtlBookingEnabled, LtlProvider, LtlCarriers
Spot quotesSpotQuotesEnabled, QuoteApprovalEnabled, QuoteMarginFloorPct
Checkout and sourceStorefrontEstimateEnabled, OrderSourceKey
One build for desktop and tablet.
One build for desktop and tablet.
Station behaviour is configuration.
Station behaviour is configuration.
Per-shift device checks.
Per-shift device checks.
ShipHub ยท Clarity VenturesTechnical guidePage 8 of 12
Feature matrix

54 capabilities, part 1 of 2

Every capability below is part of ShipHub.

FeatureWhat it does (technical)Category / benefit
Ship station (parcel)
Scan-to-label station
Keyboard-first station UI ยท Enter, F2, F9, 1-3, Esc; touch-readyFewer clicks per box
Dimensioner capture
Weight and dims captured per box ยท Via edge agent; timeout, retry, manualAccurate weights
Multi-carrier rating
Parallel rating of mapped services ยท Per-carrier timeout; slow ones skippedLowest cost per box
Auto-select with reason
Cheapest, or fastest then cheapest ยท Gap in % or $; training mode; logConsistent choices
Express ship
One-key ship per station ยท Rates still stored; full view on F4Seconds per order
Labels, reprint, void
Label and tracking per package ยท ZPL 4x6; void window by roleClean corrections
Review queue
Rules R1-R9 open review items ยท Size, address, hazmat, duplicatesIssues caught early
Address validation
Carrier address check at scan ยท Timeout-guarded; feeds review rulesFewer address fees
Billable weight engine
Billable weight by carrier rules ยท Dim divisors; length plus girthRates match invoices
Shift pre-flight
Four device and link checks ยท Driven by edge agent heartbeatsReady for the rush
Rules and carriers
Carrier service mapping
ERP code to carrier services ยท Sets which service each carrier ratesFair comparisons
Customer shipping rules
Rules keyed by ERP customer id ยท Lock, then preference, then global; CSVHonors account terms
Versioned rules
Published, versioned rule sets ยท Earlier versions kept with authorAuditable changes
Carrier accounts
Credentials and onboarding ยท Encrypted at rest, never shown; OAuthFaster go-live
Carrier volume pacing
Spend projection per commitment ยท Annual net, gross or rolling 52 weeksProtects discounts
LTL freight
Freight class builder
Handling units, density, class ยท NMFC override needs a reasonFewer reclass bills
Automatic LTL routing
Routes freight orders to LTL step ยท LTL-only items; weight cutoff settingRight mode first
Priced accessorials
Accessorials priced in each quote ยท Codes sent with every rate requestNo surprise charges
LTL rate compare
LTL rating and recommendation ยท LTL adapter: rate, book, pickup, trackLower freight spend
BOL, labels and pickup
Booking, BOL PDF, pickup request ยท BOL check digit; PRO written backNo carrier portals
Freight board
LTL loads by status and ETA ยท Normalized tracking events per PROFreight visibility
Quoting
Phone freight quotes
Rep quote from the item master ยท Save, PDF, e-mail by shortcutQuote in seconds
Mixed spot quotes
Parcel + LTL lines, with versions ยท Address type sets accessorialsQuote complex jobs
Markup rules
Per customer and carrier pricing ยท Most specific rule wins, shown per lineProtects margin
Margin-floor approvals
Approval queue below the floor ยท Default 12%; per-customer overrideMargin discipline
Customer accept link
Public accept page, no sign-in ยท One accept per token; server expiryNo re-keying
Device checks.
Device checks.
Density-based class.
Density-based class.
Parallel rating.
Parallel rating.
ShipHub ยท Clarity VenturesTechnical guidePage 9 of 12
Feature matrix

54 capabilities, part 2 of 2

FeatureWhat it does (technical)Category / benefit
Network and stores
Order sourcing engine
Gather, filter, rank, rate, decide ยท Top candidates rated; split into legsBest ship-from site
Sourcing rule editor
Ranked rules, read-only dry run ยท Saved as versions; nothing writtenStrategy, no code
Re-source with reason
Re-source without one location ยท Frees reservations; records whyQuick recovery
Ship-from-store queue
Store queue on tablet, touch-ready ยท Daily cap, hours, time zone, dockUses store stock
Store pickup with code
Buy online, pick up in store ยท Code-try limit; hold window frees stockSmooth hand-offs
Transfers and restock
Min/max suggestions; parcel or LTL ยท Variances logged as exceptionsStores stay stocked
Network dashboard
KPIs by date, location and mode ยท Exceptions linked to ordersNetwork at a glance
Web store checkout
Delivery promises
Promises from sourcing rules ยท Also served by POST /estimateFewer status calls
Cartonization
Box-catalog packing for estimates ยท First-fit-decreasing, fill capsRealistic prices
Freight questions
Accessorial questions per LTL group ยท Volume threshold routes to a quoteAccurate freight
Free-ground nudge
Threshold progress at checkout ยท Applies per customerBigger orders
Rating fallback
Zone and weight table fallback ยท Answer marked "estimated"Never stalls
Insights and audit
Shipping dashboard
KPIs with rate-shop savings ยท Method shown; CSV exportProves the value
Reports and exports
Report catalog; CSV and XLSX ยท Totals tie to the dashboardFewer spreadsheets
What-if calculator
What-if runs, threshold sweeps ยท Same decision engine as the stationTune with evidence
Freight invoice audit
Three-way match with findings ยท FedEx, UPS, USPS invoice files; manualRecover overcharges
AI explanations
Grounded, masked explanations ยท No new numbers; template fallbackFaster decisions
Guarantee refunds
Refund eligibility by service ยท Only eligible services proposedClaim refunds
Integration and platform
ERP order source
Two ERP contracts ยท Native and Epicor Prophet 21 adaptersERP stays current
Write-back outbox
Exactly-once queue with status ยท Back-off to 1 h; dead items reviewedNothing lost
Shipping REST API
Versioned API at /shiphub/v1 ยท OpenAPI 3.1, problem+json, idempotentShip from any system
Signed webhooks
Seven event types, at least once ยท HMAC-SHA256; 300 s window; event idsReal-time updates
Web embeds
Signed iframe and web components ยท Framing allow-list; origin-bound keysShipping in context
Edge device agent
Site agent, outbound WebSocket ยท Offline print queue; no double printsUses your hardware
Device Center
Device registry and commands ยท Heartbeat and active offline signalsLess downtime
Roles and permissions
Role-based permissions ยท Separate right to view personal dataRight access per job
Privacy controls
Masking, redaction, retention purge ยท Retention days, dry runLess data exposure
Modular switches
Per-module settings, default off ยท Wording and branding by settingStart small, grow
Network KPIs.
Network KPIs.
Tablet freight step.
Tablet freight step.
Estimate options.
Estimate options.
ShipHub ยท Clarity VenturesTechnical guidePage 10 of 12
Implementation, testing and monitoring

How a roll-out runs

  1. 1
    Map the ERP. Order, line, customer and carrier records to the order-source contract; decide where write-backs land and how a void reverses them.
  2. 2
    Map carriers. ERP carrier codes to FedEx, UPS and USPS services; add carrier accounts and test each connection.
  3. 3
    Set up sites. Locations, stations and devices; install the edge agent; run pre-flight.
  1. 1
    Contract tests. Run the adapter contract tests against the ERP's test system.
  2. 2
    Pilot. Ship real orders at one station and compare with the current process.
  3. 3
    Roll out. Enable modules one at a time: stores, transfers, LTL, quotes, checkout, API.
Testing

Built in

Engine tests with golden files, carrier contract tests that replay recorded responses, pipeline tests and browser end-to-end tests. A dry run for sourcing and a training mode for stations.

Monitoring

What to watch

A health endpoint, the outbox (pending, failed, dead, sent today), device heartbeats, the review queue and exceptions on the network dashboard.

Insights: scan-to-label time and straight-through rate (example figures).
Insights: scan-to-label time and straight-through rate (example figures).
Store queue: orders sourced to a store (names hidden).
Store queue: orders sourced to a store (names hidden).
Pre-flight: a quick per-shift health check at each station.
Pre-flight: a quick per-shift health check at each station.
Tablet freight step tested at 1024 px.
Tablet freight step tested at 1024 px.
ShipHub ยท Clarity VenturesTechnical guidePage 11 of 12
Summary

ShipHub for IT and architects

The network dashboard on a laptop and on a tablet (example figures).
The network dashboard on a laptop and on a tablet (example figures).
The network dashboard on a laptop and on a tablet (example figures).

Clean contracts

Order source and write-back for ERPs; one adapter interface per carrier.

Resilient

Timeouts, an exactly-once outbox, offline print queue, fallback rates.

Secure by default

Scoped keys, signed traffic, encrypted secrets, masked data.

16
API operations
7
webhook events
54
capabilities
2
ERP contracts

Talk to Clarity Ventures about a guided demo

Review the architecture, the API reference and an ERP adapter mapping with a Clarity engineer.

Book a guided demo
ShipHub ยท Clarity VenturesTechnical guidePage 12 of 12