Schedule Freight Pickup

Schedule a freight pickup / dispatch. One shipment per pickup. In response the carrier will supply a confirmation number and possibly a PRO number as well. If a confirmation number is not returned but the request succeeded the user will need to follow up with the carrier directly to ensure that they received the request. If a PRO number is not returned then one will be assigned by the carrier at the time of pickup. Additionally some carriers might not support specifying a delivery window for pickup requests. If that is the case the user will again need to coordinate that directly with the carrier.

Weights are totals: commodities[].weight is required and is the sum for the commodity across all count units of its handling unit, and handling_units[].tare_weight is the optional packaging weight (for example the pallets) for all count units. Do not multiply either by count. There is no handling unit weight: the gross weight of an entry is the sum of its commodity weights plus tare_weight. dimensions on a handling unit describe one unit.

In order to send test pickup requests you can set carrier.test = true, however if a carrier does not support that functionality it is up to the integration app to handle that flag appropriately by returning an error to the user explaining it's not supported instead of scheduling a pickup with the carrier.

When the operation fails, the response is an ErrorResponse with a 4xx or 5xx status and a code in detailed_errors[].normalized_error_code.

SecurityFreightApiCode
Request
Request Body schema: application/json
transaction_id
required
string

A unique ID for this request, set by the caller and echoed back in the response for tracing. It is not a business identifier.

carrier_code
required
string

Identifies the carrier this request is for. For US LTL carriers this is the carrier's SCAC, for example EXLA. It matches Codes[].SCAC in the app's carrier metadata.

This is not an ApiCode, which is an identifier in the ShipEngine registry.

object

The carrier authorization information needed to fulfill this request. The shape is intentionally undefined and may vary by carrier. It is currently unused, carrier apps read their credentials from environment variables.

bol_number
required
string [ 1 .. 50 ] characters

The bill of lading number, the shipper's primary identifier for this shipment.

service_level
required
string (ServiceLevel)

The level of service requested for the shipment: standard, expedited or guaranteed.

Not every carrier accepts a service level as part of a schedule pickup request. It is always provided so that carriers which do need it can use it; carrier apps whose carrier ignores it can ignore it too.

Enum: "standard" "expedited" "guaranteed"
required
object (PickupWindow)

Pickup timing: the window in which the freight is ready to be picked up. Times are local to the pickup location.

object (DeliveryWindow)

Delivery timing: the window in which the freight should be delivered. Times are local to the delivery location. Omit it entirely for carriers that do not support delivery dates.

required
Array of objects (HandlingUnit) non-empty
Array of objects (Accessorial)
Array of objects (ReferenceIdentifier)
object (ShipmentTotals)

Shipment level totals. Only linear feet for now.

required
object (Party)

An address and the contact at that address.

required
object (Party)

An address and the contact at that address.

required
object
required
object (RequestingParty)

Who is requesting the pickup.

object
Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

409

Conflict

422

Unprocessable Entity

429

Too Many Requests

500

Internal Server Error

503

Service Unavailable

520

External Server Error

post/schedule-freight-pickup
Request samples
application/json
{
  • "transaction_id": "txn-exla-0001",
  • "carrier_code": "EXLA",
  • "bol_number": "BOL-44219",
  • "carrier": {
    },
  • "service_level": "standard",
  • "pickup": {
    },
  • "handling_units": [
    ],
  • "accessorials": [
    ],
  • "reference_identifiers": [
    ],
  • "shipment_totals": {
    },
  • "ship_from": {
    },
  • "ship_to": {
    },
  • "bill_to": {
    },
  • "requested_by": {
    }
}
Response samples
application/json
{
  • "transaction_id": "txn-exla-0001",
  • "carrier_code": "EXLA",
  • "status": "confirmed",
  • "confirmation_number": "124381117",
  • "pro_number": "0123456789"
}