Create Load
POST /v2/tms-api/loads
Create a new load/shipment. Loads require specific fields for analytics and carrier recommendations to work properly.
Required Fields
The following fields are required for loads to work with analytics and carrier recommendations:
status: Load status (must be a valid enum value)equipment_type: Equipment type (must be a valid enum value)transport_mode: Shipping method (FTL,PTL, orLTL)customer_external_reference_id: Link to an existing customerstops: At least 2 stops (onePICKUP+ oneDELIVERY) withearly_arrivalandlate_arrivaltimes
Prerequisites
Locations must be created before loads. Each stop references a location by location_external_reference_id, and the API will return an error if the location doesn't exist.
API Reference
Request Body
Source of truth for enums
The allowed enum values below come from the Mentium canonical enums in libs/libs/mentium_tms/enums.py (which are imported by the TMS API request schemas). FastAPI validates these fields at the API boundary.
Required Fields
external_reference_idstringrequiredstatusstringrequiredequipment_typestringrequiredtransport_modestringrequiredcustomer_external_reference_idstringrequiredstopsarrayrequiredOptional Fields
descriptionstringweightnumberweight_uomstringtotal_distancenumbermax_buy_ratenumbercarrier_external_reference_idstringfinancial_ratesarraysales_repobjectdispatcher_repobjectassigned_dispatcherstringactual_dispatcherstringoperation_userstringaccount_managerstringTeam member object
sales_rep and dispatcher_rep are structured objects. All fields are optional, but at least one must be provided so Mentium can identify the member and (when possible) map them to a workspace user.
namestringemailstringexternal_reference_idstringExample:
{
"sales_rep": {
"name": "Jane Sales",
"email": "jane.sales@example.com",
"external_reference_id": "USER-42"
},
"dispatcher_rep": {
"email": "cara.dispatcher@example.com"
}
}Allowed enum values
LoadStatus (status)
ACTIVETENDEREDTENDER_ACCEPTEDSPOTCOVEREDDISPATCHEDAT_SHIPPEREN_ROUTEAT_RECEIVERDELIVEREDPAYMENT_PROCESSINGACCOUNTING_REVIEWCOMPLETEDCANCELLEDTENDER_REJECTEDINACTIVEON_HOLD
EquipmentType (equipment_type)
DRY_VANREEFERFLATBEDFLATBED_CONESTOGASTEPDECKSTEPDECK_CONESTOGALOWBOYREMOVABLE_GOOSENECKTANKERINTERMODALSTRAIGHTSPRINTERHOTSHOTPOWER_ONLYBULK_DRY_HOPPERBULK_DRY_PNEUMATICBULK_DRY_DUMP
ShippingMethod (transport_mode)
FTL(Full Truckload)PTL(Partial Truckload)LTL(Less Than Truckload)
StopType (stops[].stop_type)
PICKUPDELIVERYBOTH
RateEntity (financial_rates[].rate_entity)
CUSTOMERCARRIER
WeightUOM (weight_uom)
lbskg