Carriers: setting them up
Carriers are base product: every company has them, whatever apps are switched on. They exist so a filing that asks "who delivered this" — the PACT report (15 U.S.C. § 376) — can name the delivering person's name, address and phone.
Settings → Carriers is the screen (/settings/carriers; one carrier at
/settings/carriers/{id}), beside payment terms. It needs carrier.read to
open and carrier.manage to change anything; there is no app to switch on.
It lists the own fleet first, then the rest by name, with each carrier's PACT
readiness — whether it has an address and a phone on file. Retired carriers
show when Show retired carriers is on. Add a carrier asks the code,
name, SCAC, phone and notes; once saved the carrier opens and its address is
added underneath through the address book. Retire and Restore ask a
reason. Refusals are shown in the server's words.
Behind the screen, the API: GET /api/v1/carriers lists them,
POST /api/v1/carriers adds one, GET/PATCH /api/v1/carriers/{id} reads and
changes one (with expected_version), and POST /api/v1/carriers/{id}/active
retires or restores one, with a reason. A carrier's address goes in the address
book, as every record's does (/api/v1/addresses/records/carriers/{id}).
What a carrier holds
| Field | What it does |
|---|---|
| Code | Unique; what an import or a shipment names it by. Never changes. |
| Name | Unique, ignoring case; a shipment's typed carrier is matched to it. |
| SCAC | Optional; two to four letters. |
| Phone | Printed on PACT reports. Not on the own fleet (see below). |
| Address | On the carrier's page, through the address book: registered first, then billing, then shipping. |
| Own fleet | One per company, made when the company was provisioned. |
| Active | Retired carriers stay readable; there is no delete. |
The own fleet
Every company has exactly one own-fleet carrier, created when its database was provisioned. Its address and phone are read from Company setup — the registered address and the company phone — every time a report is prepared, and are never copied onto the carrier. It cannot be retired, and its phone cannot be set on the carrier.
Who can do what
| Permission | Roles | Allows |
|---|---|---|
carrier.read | Manager, Accounting, Sales, Warehouse, Read-only | See carriers |
carrier.manage | Admin, Manager, Accounting | Add, change, retire, restore |
Accounting holds carrier.manage because the person refused a PACT report on the
9th for a carrier with no phone is the one who has to add it. Adding an address
also needs address.write.
How shipments reach a carrier
A shipment keeps the carrier typed on it and, beside it, a link to the carrier.
Carriers already typed on old shipments were added to the list for you, and
those shipments linked to them; each needs an address and a phone (its notes say
so). A PACT report matches a shipment's typed name to a carrier by name or code.
The ship screens choose the carrier from the list — the Carrier box on
the order's shipping card and on the Pick and pack Ship tab, shown to
whoever holds carrier.read. The shipment then keeps the carrier's id and its
name (ShipOrder.carrier_id); a retired carrier, or one not on the list, is
refused before anything moves. A shipment can also be given its carrier
afterwards, under tax.file and with a reason, recorded on the audit log:
Name the carrier on a refused PACT report's shipment, on the PACT screen
(PUT /api/v1/tax/pact-shipments/{shipment_id}/carrier).
The demo's own-van deliveries name Own fleet, so they resolve to the own fleet's carrier on a PACT report.
Help
? on the screen opens this page. The tips beside PACT readiness, Code
and SCAC are registered on the help topic carriers, with a two-step tour
(the list, and adding — the second only for carrier.manage).
Services and rates
A carrier's drawer lists its services (ground, two-day, LTL), each with a code, a minimum charge and a fuel surcharge. Rates opens a service's rate table: one row per zone and weight bracket.
- A zone lists states (
PA, NJ), or postal-code prefixes (190, 191), or neither, for anywhere else. A postal prefix wins over a state, the longest prefix first, and a state wins over anywhere. - A bracket is the weight it goes up to, in your weight unit. The first bracket whose top reaches the weight is used; leave the last top empty to take everything above.
- The price is the row's amount plus its rate per unit of weight times the weight, raised to the service's minimum, with the fuel surcharge on top.
Price it under the table tries a weight and a place. Saving replaces the
whole table, as a new tariff does; a zone with two open-ended brackets, or two
with the same top, is refused. An automatic charge rule with From a carrier's
rate table names the service (charge rules). Keying
services and rates needs carrier.manage; reading them, carrier.read.
Live rates from your carrier accounts
Connect a rating service under Settings → Integrations → Live carrier rates: EasyPost or Shippo, with the API key from that account (kept in the vault; a test key quotes test rates). Then give each service you want priced live its Live rate code: what that rating service calls it.
| Rating service | Live rate code looks like |
|---|---|
| EasyPost | The carrier and its service: USPS:PRIORITY, UPS:GROUND, FEDEX:FEDEX_2_DAY |
| Shippo | The service level token: USPS_PRIORITY, UPS_GROUND, FEDEX_2_DAY |
One service, one code: for FedEx Ground and FedEx 2Day, add two services. A code joined to another with a comma is refused, as it could never match a rate. A carrier answers only once its account is linked in the rating service (on EasyPost, under Carrier accounts; USPS is there from the start).
A service with a live rate code is priced live first: your account's price for the order's weight from its site (the site's address, else your company's registered address) to its ship-to address. Its rate table is the fallback, used whenever the live rate cannot be had: nothing connected, no address to quote from or to, the rating service slow or down, no rate under that code for that address, or a rate in another currency than the order's. An order is never held up by a carrier's website. A service with no live rate code is priced from its table, as before.
Two settings under Sales:
- Keep live rates for (
carriers.live_rate_cache_minutes, 15): the same parcels between the same two places are not asked again within this time, so editing an order does not ask the carrier on every save. 0 asks every time. - Heaviest parcel for live rates (
carriers.parcel_max_kg, 30 kg): a heavier order is quoted as several parcels of equal weight, as a parcel carrier takes it.
Compare rates, beside the services, prices every service in use for one
shipment, cheapest first, and says for each whether the price is live or from
its table, and why. Only rates are asked; no label is bought. Where the rating
service answered but had no rate under a service's code, Why lists the codes
it did quote for that shipment, the same carrier's first: copy the one you
meant. A carrier can spell a service differently by address (FedEx quotes
FEDEX:GROUND_HOME_DELIVERY, not FEDEX:FEDEX_GROUND, to a home).
Importing carriers
Settings → Import offers Carriers: one row per carrier with code,
name, scac, phone, notes and is_active. A row is recognised by its
code, so running a file again updates the carriers it made instead of adding
them twice; no in is_active retires one, and the code never changes from a
file. The own fleet is in an export and keeps its company phone. A row naming a
carrier that was merged into another is refused, saying which one to use.
Undoing an import retires the carriers it added.
Merging two carriers
The same line typed twice, or a carrier bought by another: open the one that
should go and press Merge into another carrier (needs carrier.merge,
Managers). Choose the carrier that stays, tick which of the one going's SCAC,
phone and notes to keep instead, and say why. Its orders, shipments, carrier
services (with their rate tables), address, files and history move to the one
that stays, which keeps its code and name; the one that goes is retired and
leaves the list, and its name is free, so you can rename the one that stays to
it straight after. Filed tobacco reports keep the carrier they named. Your own
fleet is never merged away, and a retired carrier cannot be the one that stays.