Skip to main content

Create Freight Load

POST 

/api/freight/shipments

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).

Required scope: orders:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Start from Prefill Freight Load to build the body from a sales order or shipment.

Body fields

  • mode (required): ltl, ftl, or any (price every mode the connected providers offer).
  • origin (required, object) and destination (required, object): company, street1, street2, city, state (upper-cased), zip (5 digits, ZIP+4 accepted), country (2 letters, default US), contact_name, phone, email. All optional while drafting; quoting needs both ZIP codes, booking needs company, street, city, state, ZIP, contact name, phone and email on both stops.
  • destination.destination_type: business_dock, business_no_dock, residence, retail_dc, limited_access, trade_show, construction.
  • handling_units (required, 1-50 entries): quantity (1-999), type (pallet, crate, box, drum, bundle), length_in (max 636), width_in (max 102), height_in (max 110), weight_lb_each (max 45000), all required; optional freight_class (50, 55, 60, 65, 70, 77.5, 85, 92.5, 100, 110, 125, 150, 175, 200, 250, 300, 400, 500), nmfc_code (max 20), stackable (boolean), description (max 120), and hazmat with un_number (UN or NA + 4 digits, e.g. UN1266), proper_shipping_name, hazard_class, packing_group (I, II, III). Send hazmat empty or omit it for non-hazardous goods.
  • accessorials.pickup / accessorials.delivery: arrays of liftgate, inside, residential, limited_access, appointment; delivery also accepts notify.
  • sales_order_id, sales_order_fulfillment_id, origin_warehouse_id: optional links (must exist).
  • pickup_date (Y-m-d), pickup_window.from / pickup_window.to (H:i, to after from).
  • references.customer_po, references.shipper_reference (max 60 each), declared_value (0-10,000,000), special_instructions (max 1000).
  • quote (boolean, default false): ask every connected freight account for rates right after saving.

A draft can be saved half-filled. Whether the load can be quoted (weights, dimensions, the 85 in LTL height limit, complete hazmat data, US addresses) is checked when rates are requested.

Returns 201 with the load in the same shape as Get Freight Load.

Errors. 409 when the load is in a state that does not allow this action; the body carries message and reasons (every problem, one per entry). 422 when the freight provider rejected the request; errors maps each field the provider named to its messages (an invalid API key appears under credentials). 502 when the freight provider did not answer; code carries the provider's error code when it sent one.

Authentication: Requires Bearer token with the orders:write scope.

Requires permission: freight.quote

Request​

Responses​

Created

Response Headers
    Content-Type