Freight
List Freight Loads
List freight loads (LTL and truckload requests, their quotes and bookings), newest first. Archived loads are hidden unless `archived` is `only` or `all`.
Create Freight Load
Create a freight load: the ship-from and ship-to stops, handling units (pallets, crates, boxes), accessorials and references. Send `quote: true` to request rates in the same call; rates then arrive in the background (see `pending_providers`).
Get Freight Load
Get one freight load with its current rates, quoting progress, staleness, available actions and tracking events.
Update Freight Load
Replace a load's request (same body as Create Freight Load). Only loads that are not yet booked (draft or quoted) can be edited; editing a quoted load keeps its rates but they may no longer match, so send `quote: true` to re-quote.
Prefill Freight Load
Build a ready-to-save load body from a sales order or one of its shipments, without saving anything: ship-from from the shipping warehouse, ship-to from the order, and handling units from the shipment's cartons or from the products' weights and dimensions packed onto pallets using the account's freight defaults (pallet size, tare and maximum weight).
Recalculate Freight Load Units
Rebuild the handling units of a load from its linked sales order or shipment as they are now (for example after lines or cartons changed), without saving. Also returns the source's current route (`origin`, `origin_warehouse_id`, `destination`), which the page applies on **Update and re-quote** when the order's ship-to or ship-from changed after quoting. Send the returned values back on Update Freight Load to apply them.
Archive Freight Load
Archive a load. Archived loads are hidden from List Freight Loads unless `archived=only` or `archived=all`. Returns the load.
Unarchive Freight Load
Restore an archived load. Returns the load.
List Freight Load Activity
The load's activity log, newest first: created, quoted, booked, linked, cancelled, tracking changes and provider messages.
Request Freight Rates
Ask every connected freight account for rates on a draft or quoted load. Earlier rates from the asked accounts are retired and the load becomes `quoted`. Pricing runs in the background: the response lists the accounts in `pending_providers`; poll Get Freight Load until it is empty, then read `rates` (and `failed_providers` for accounts that could not price).
Book Freight
Book one of the load's rates with the freight provider. **This books a real truck and is charged to the merchant's freight account** unless the connection uses a sandbox key (`is_sandbox` is then true and nothing is charged).
Check Freight Booking
Resolve a `booking_unknown` load (the provider's answer to Book Freight was lost). SKU.io asks the provider whether the quote was booked: if so the load becomes `booked` exactly as a successful booking would (including the write to the linked shipment); if not it returns to `quoted`, and booking again is safe because a provider books a quote only once.
Link Freight Load to Shipment
Link the load to a sales order shipment (fulfillment). The load takes that shipment's sales order. When the load is already booked, its references are written to the shipment's freight details as described on Book Freight.
Cancel Freight Load
Cancel a load. An unbooked load (draft or quoted) is simply cancelled. A booked load is cancelled at the provider when the provider has a cancel API; when it does not (see `cancel_instructions` on Get Freight Load, e.g. Warp cancels by email), cancel with the provider first and then call this with `mark_only: true` to record it.
Refresh Freight Tracking
Fetch the latest tracking from the provider now (moving loads are also polled automatically). New events are added to `tracking_events` and the load's status moves forward (booked, picked up, in transit, out for delivery, delivered).
Download Freight Bill of Lading PDF
SKU.io's bill of lading for the load as a PDF (`application/pdf`, inline, file name `BOL-<number>.pdf`), rendered from the account's Bill of Lading PDF template. Lists shipper, consignee, handling units with freight class and NMFC, hazmat details with the emergency response phone, references and the carrier PRO and SCAC once booked.
List Freight Provider Documents
The provider's own documents for a booked load, such as its bill of lading and, after delivery, the proof of delivery. Each entry has `type` (`bol`, `pod`, ...), `label`, and either `url` (a link to the provider's file) or `content` (the file's bytes), plus `mime_type` and `file_name`. Empty when the load is not booked or the provider has no documents API.
Bulk Download Freight Bills of Lading PDF
One PDF (`application/pdf`, inline, `bills-of-lading.pdf`) holding the bill of lading of every listed load, one after another. Loads without a bill of lading number are numbered first.
Bulk Refresh Freight Tracking
Refresh tracking for every listed load that is moving; loads that are not moving are skipped and counted. A provider error on one load is recorded on that load and does not stop the others.
Bulk Archive Freight Loads
Archive the listed loads. `archived` counts the loads that were active.
Bulk Unarchive Freight Loads
Restore the listed loads from the archive.
List Freight Providers
The freight providers SKU.io can connect to, with what each needs and supports: `credential_fields` and `setting_fields` (key, label, help, whether secret), and `capabilities` (`modes`, `pickup_accessorials`, `delivery_accessorials`, `countries`, `max_ltl_height_in`, `supports_cancel`, `supports_hazmat`, `supports_tracking`, `supports_documents`, `cancel_instructions`).
List Freight Connections
The account's freight connections, with each one's environment (`production` or `sandbox`, from the key), account name and warnings from the last test (e.g. no payment card on file), and booking counts: `recent_bookings` (last 30 days) and `moving_bookings`.
Create Freight Connection
Connect a freight account. The credentials are checked with the provider before saving; an invalid key returns 422 with `errors.credentials`. A provider can be connected once.
Update Freight Connection
Edit a freight connection. The provider can't change; send only what changes. A blank credential keeps the stored value; a new one is checked with the provider.
Delete Freight Connection
Disconnect a freight account. Its loads and their history stay. Refused with 409 while loads booked on it are still moving: wait until they are delivered, or cancel them first.
Test Freight Connection
Check a connection's credentials with the provider. Returns the `environment` the key is for, the provider's `account_label`, and `warnings` that will stop a booking (such as no payment card on file), plus the refreshed connection.
Get Freight Settings
The account's freight defaults: the pallet prefilled loads are built on, default freight class and accessorials, dock hours, hazmat emergency contact and the bill of lading number prefix.
Update Freight Settings
Replace the account's freight defaults. Every required field must be sent.