When a single shipper builds a buyer agent, the hard questions are about one company: who approves, what the spending limit is, where the receipts go. Platforms have a harder version of the same problem. An order management system, a marketplace, or an ERP add-on that wants to book freight for its customers is running one agent on behalf of many shippers at once. Every one of those shippers expects its freight, its prices, and its receipts to stay its own.
Nettrux is a freight broker and forwarder in Fremont, California, and the first 3PL on x402. Our agent guide describes discovery, rating, price locks, and a commit route that answers with an HTTP 402 challenge. This piece is about one thing the guide hints at in a single word: the booking receipt is tenant-scoped. If you are building on behalf of many shippers, that word should shape your whole design.
First, where things stand. The guide's deploy gates show x402 discovery publishing, real-money settlement, and guest checkout all set to false, and the authenticated routes need a bearer token the site does not issue. Nettrux has settled a real x402 USDC payment on Base in testing. Treat what follows as design guidance for teams building toward agent-booked freight, not a description of a self-serve service you can sign up for today.
The tenant is the shipper, not the agent
The most common mistake in multi-customer agents is treating the agent as the principal. The agent is a worker. The principal is the shipper whose freight is moving and whose money is being spent.
The guide gives you a clean way to check this: GET /v1/me returns the principal for a token you already hold. Call it at the start of every session and compare the answer with the shipper your platform thinks it is acting for. If they disagree, stop. A mismatch there means a token was routed to the wrong customer, and nothing good comes from rating or locking a quote under it.
That leads to the first rule: one credential per shipper, never a shared one. A single platform-wide token that books for everyone turns every receipt into the platform's receipt and every mistake into a cross-customer incident. Per-shipper credentials keep the boundary where the money is.
Keep the tenant on every object
A freight booking produces a short chain of objects: a shipment spec, a set of rate-shop options, a locked quote with an id and a locked total, an approval, a commit response, and a receipt. In a multi-tenant agent, every one of those records should carry the shipper id it belongs to, stored next to the data rather than inferred from context later.
This sounds like bookkeeping. It is really your defense against the model. A language model holding several conversations, or summarizing a queue of pending shipments, can blend details across them. If the quote id, the locked total, and the shipper id travel together as typed fields, your code can refuse any commit where they do not line up, no matter what the model wrote in its reasoning.
A useful check before every commit:
- The quote id came from a price lock made with this shipper's credential.
- The approval names this shipper, this quote id, and this locked total.
- The token about to be used for the commit resolves, via
/v1/me, to the same principal.
If any of the three fails, the commit does not go out.
Approvals belong to the shipper's people
On a platform, it is tempting to let the platform's own ops team approve bookings in bulk. Resist it for anything beyond a pilot. The person who says yes to a locked price should work for the company paying it, or at least hold written authority from that company.
Practically, that means each shipper sets its own approvers and its own limits. One customer might want every booking approved by a logistics manager. Another might allow automatic approval of LTL quotes under a set amount on familiar lanes, with anything larger routed to a person. Whatever the policy, the approval record should store the human's identity, the time, and the exact quote id and locked total they saw, all under that shipper's tenant.
Quote validity windows make this more than a formality. A lock has a validUntil and a status that can move to expired or withdrawn. If approvals for one shipper are slow, its quotes expire; that should never spill into another shipper's queue or cause the agent to grab someone else's still-active quote as a shortcut.
Payment identity per tenant
The commit route takes a body of exactly { quote_id }. The guide says the call without an X-PAYMENT header is documented as an x402 v1 402 challenge, while the published response schema shows HTTP 200, so a client should handle both. When a challenge comes back, the token, chain, and payee are in the challenge itself, not on the website.
For a platform, the question is whose wallet answers that challenge. The clean answer mirrors the credential rule: each shipper's payments come from that shipper's own payment setup, held under that shipper's controls. A single platform wallet paying for everyone turns the platform into a reseller of freight, with all the reconciliation and liability that implies. If that is truly the business model, design for it on purpose. If it is not, keep payment identity per tenant from the first line of code.
Either way, never let one shipper's signing key sit where another shipper's session could reach it, and keep private keys out of the model's context entirely. The model should be able to ask for a payment to be made against a specific, approved challenge. It should never hold the key that makes it.
Receipts land where they belong
The receipt route, GET /v1/immediate-bookings/{booking_id}, returns the booking plus the settlement projection, scoped to the tenant. Fetch it with the same shipper's credential that committed the booking and file it under that shipper. Read data.booking.money_mode and data.settlement exactly as returned, per tenant, and do not roll them up into a platform-wide figure that hides which customer each line belongs to.
Discovery is shared, everything else is not
Not every step needs to be per tenant. Discovery is a good example. The site's /.well-known/x402 pointer and the OpenAPI on the freight API host are the same for everyone, so a platform can fetch them once, hash the OpenAPI, and share that contract across all its shippers. Deploy gate values are also global; read them once and let every tenant's session see the same answer.
The line to draw: public, read-only facts about Nettrux can be shared. Anything that carries a shipper's identity, a price, an approval, or a payment cannot.
When something looks wrong, a person takes over
Multi-tenant mistakes are worse than single-tenant ones, because they can expose one customer's freight to another. Set the agent to stop and escalate on any tenant mismatch, any commit response other than a 402 challenge or a 200 with booking data, and any receipt that disagrees with what was approved. If a shipment is waiting on the dock, dispatch answers at 1-888-617-3530.
Closing
A buyer agent that serves many shippers is a powerful product, and the boundary between those shippers is the whole product. Keep credentials, approvals, payment identity, and receipts per tenant; share only what is public. If you are building a platform that wants to book freight for its customers, start with the agent guide and reach out through nettrux.ai.
FAQ
Can a platform book Nettrux freight for its customers today?
Not on a self-serve basis. The deploy gates for discovery publishing, real-money settlement, and guest checkout are off, and authenticated routes need a bearer token the site does not issue. Nettrux has settled a real x402 USDC payment on Base in testing.
What is the one check every multi-tenant agent should run?
Before any commit: confirm the quote, the approval, and the token all belong to the same shipper.
Alex Carney, Nettrux