Giving an AI agent the ability to book freight is really a decision about money. The agent can find a lane, compare options and lock a price, but the moment it commits a booking it is spending a shipper's budget. Most teams spend weeks on prompts and tool definitions and an afternoon on the rules that decide how much the agent may spend, on what, and with whose permission. That ratio should be closer to even.

Nettrux is a freight broker and forwarder in Fremont, California, and the first 3PL on x402. Our agent guide walks through discovery, rate-shopping, price locks and a commit route that answers with an HTTP 402 challenge. This piece is about the layer that sits above all of that on the buyer's side: the spend policy your agent has to obey before it ever sends a commit.

A note on 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. Read this as design guidance for teams building toward agent-booked freight, not as a description of a self-serve service you can sign up for today.

Why freight needs its own spend policy

A generic "the agent may spend up to $X" rule works for software subscriptions. Freight is lumpier. One week a shipper moves a few pallets LTL; the next it needs a full truck or an air shipment for a late order. A single ceiling is either too low to be useful or too high to be safe.

Freight also has a clear unit of decision: the locked quote. The guide's price-lock call returns a quote id, a lockedTotal and a status of active, converted, expired or withdrawn. That locked total is the number your policy should reason about. Rate-shop results are ranked options, not commitments, so a policy that fires on rate-shop prices is checking the wrong thing.

Layer 1: what the agent may buy at all

Before any dollar figure, write down the scope. A practical first version:

  • Modes. The guide lists LTL, AIR, SPOT and FTL on related rate calls. Many shippers will allow LTL and FTL by default and require a person for AIR, because the price jump is large and usually reflects an exception.
  • Lanes. Restrict origins and destinations to the places the shipper actually ships from and to. An agent asked to book a load out of a warehouse it has never used is a signal, not a task.
  • Ship dates. Cap how far ahead the agent may book. Locks expire; a policy that lets the agent lock far-out shipments invites stale quotes.

Scope rules are cheap to check in code and catch a surprising share of bad bookings before price even enters the picture.

Layer 2: per-shipment caps

Next, set a cap on the locked total for a single shipment, ideally per mode. An LTL cap and an FTL cap should not be the same number. Keep the caps in configuration the shipper's people own, not in the prompt. A prompt is text the model can be argued out of; a number in your policy service is not.

Two details matter here:

  1. Compare against lockedTotal, not a figure the model repeats. Read the value from the price-lock response and pass it to the policy check as a typed field. Never let the model's summary of the price be the input.
  2. Treat the 402 challenge as a second check. When the commit route answers with a challenge, the amount and payee are in that challenge. Your code should confirm the challenged amount matches the approved locked total before an x402 client builds the paid retry. If they differ, stop and ask a person.

Layer 3: rolling budgets

Per-shipment caps don't stop an agent from booking twenty reasonable shipments in an afternoon. Add rolling budgets: per day, per week, per month, scoped to the shipper and, where it helps, to a cost center or warehouse.

Keep the budget counter on your side, updated from responses you actually received. The guide says a 200 from the commit route includes data.booking.money_mode and data.settlement, and the tenant-scoped receipt at GET /v1/immediate-bookings/{booking_id} returns the booking plus the settlement projection. Decrement the budget from those records, not from what the agent planned to do. Since the published schema on the commit operation is HTTP 200 while the summary documents a 402 challenge, your counter should handle both answers explicitly rather than assuming one.

Layer 4: who signs off, and when

Approval thresholds turn the caps into a workflow. A simple ladder:

  • Below a floor: the agent may commit within scope and budget, and a person is notified after.
  • Between floor and cap: a named approver confirms the specific locked quote before the commit call.
  • Above the cap, outside scope, or over budget: the agent does not commit. It hands the shipment to a person, who can call dispatch at 1-888-617-3530.

Make the approval bind to the exact object. The approver should see the quote id, the locked total, the mode, the lane, the validity window and the shipper it belongs to, and approve that. If the agent re-locks because a quote expired, the new quote needs a new approval. "Approved the Tuesday shipment" is not an approval a machine can verify.

Layer 5: what happens when a rule fires

A policy that only says "no" teaches the agent nothing and frustrates the people relying on it. When a rule blocks a booking, return a typed reason: mode_not_allowed, over_shipment_cap, over_weekly_budget, needs_approval, quote_expired. The agent can then tell its human exactly what is needed, request approval, or re-lock a fresh quote, instead of improvising.

Log each decision next to the quote id. When someone asks later why a shipment was booked, or why it wasn't, the answer should be one lookup away.

A starting policy in plain words

If you want something to adapt, here is a short version a shipper's operations lead could read and sign:

The agent may book LTL and FTL on our listed lanes, shipping within the next 14 days. It may commit any single shipment up to our LTL or FTL cap without asking, and anything above that needs a named approver to confirm the locked quote. Total agent bookings may not exceed our weekly budget. AIR and SPOT always need a person. If a quote expires, the agent re-locks and asks again if the price moved. If anything doesn't match, it stops and calls dispatch.

The numbers are yours to choose. The structure is what keeps the agent useful without making it the one deciding how much freight to buy.

Why this matters for x402

x402 makes payment part of the HTTP exchange: a request, a 402 challenge, a paid retry. That is exactly what makes it a good fit for agents, and exactly why the policy has to live in your code rather than in a card limit or a monthly invoice review. When paying is one header away, the question "should this agent pay?" has to be answered, in software, every time.

We built Nettrux to be the first 3PL a buyer agent can work with over x402. The other half of that is buyer agents with clear rules about what they're allowed to buy. If you are building one and want to compare notes, start with the agent guide and the OpenAPI it links.

FAQ

Can I set the spending limit inside Nettrux? This article describes buyer-side policy that you run in your own code. The agent guide does not describe a Nettrux-side spending limit, so don't rely on one.

Is real-money settlement live? No. The guide shows X402_REAL_MONEY_SETTLEMENT_LIVE as false. Nettrux has settled a real x402 USDC payment on Base in testing.

Can anyone get a token and start booking? The site does not issue bearer tokens or describe a signup. Treat agent booking as something in build.

What should the agent do when in doubt? Stop and hand off to a person. Dispatch answers at 1-888-617-3530.

Alex Carney, Nettrux