Shipment Booking
These endpoints convert rate quotes into booked shipments, generate BOL documents, and send EDI 204 notifications.
BookShipment
| Method | POST |
| Routes | api/rating/BookShipment/{authCode}api/rating/BookShipment |
| Auth | webAuthCode, dmAuthCode, or client auth |
| Body | InternalRateQuote (JSON) |
| Returns | InternalRateQuote (with DMLoadNumber populated) |
Books a shipment from a previously saved or constructed quote. The Source field defaults to "API" if not provided. Logs the request to the Nebula log folder.
BookShipmentBase
| Method | POST |
| Routes | api/rating/BookShipmentBase/{authCode}api/rating/BookShipmentBase |
| Auth | webAuthCode, dmAuthCode, or client auth (resolved to branch) |
| Body | InternalRateQuote (JSON) |
| Returns | InternalRateQuote |
Base booking endpoint. For client auth codes, the service resolves the branch GUID and carrier GUID from the auth code and carrier reference. If the carrier cannot be identified, defaults to "DMRG" (DM Transportation).
BookShipmentMultiCarrier and forces the carrier to DM Transportation regardless of the original carrier selection.
BookShipment_V3
| Method | POST |
| Routes | api/rating/BookShipment_V3/{authCode}api/rating/BookShipment_V3 |
| Auth | webAuthCode, dmAuthCode, or client auth |
| Body | InternalBookShipmentV3 (JSON) |
| Returns | InternalBookShipmentV3 (with DMLoadNumber and Status) |
Extended booking endpoint with full shipper/consignee address details, reference numbers, dates, and special handling flags. This is the most complete booking interface.
Key Request Fields
| Field | Description |
|---|---|
ShipperName/Address/City/State/Zip | Shipper address block |
ConsigneeName/Address/City/State/Zip | Consignee address block |
LineItems | Array of BookLineItems (class, weight, dimensions, description) |
BillofLading / HAWB / PONumber | Reference numbers (optional) |
RequiredDelivery / ExpectedPickup | Date strings for scheduling |
ServiceLevel | Maps to service type via LTLRatingSupportV2 |
Expedited / PickandRun | "0" or "1" -- triggers dispatch notification |
Frozen / Refrigerated | "0" or "1" -- sets equipment type to Reefer |
ProtectFromFreezing | "0" or "1" -- adds accessorial |
Response Status Values
| Status | Meaning |
|---|---|
Success | Shipment booked, DMLoadNumber assigned |
Failed: Unable to assign client reference. | Branch GUID could not be resolved from the access code |
Failed:On Credit Hold. | Client branch is on credit hold |
Failed: Unauthorized Access. | Client auth code is invalid |
Failed: Uable to schedule shipments to HI, AK or PR. | State restriction (Hawaii, Alaska, Puerto Rico) |
Failure | General booking failure |
PickandRun or Expedited is set, the service sends an email notification to Dispatch@dmtrans.com and creates a group notification record.
RequestBOL
| Method | POST |
| Route | api/rating/requestBOL/{authCode} |
| Auth | webAuthCode, dmAuthCode, or client auth |
| Body | InternalRateQuote (JSON) |
| Returns | bool -- true if BOL was generated and sent |
Generates and sends a Bill of Lading (BOL) report for a booked shipment.
Send204
| Method | POST |
| Route | api/rating/send204/{DMLoadNumber}/{SendToCode}/{authCode} |
| Auth | webAuthCode, dmAuthCode, or client auth |
| Returns | bool -- true if EDI 204 was sent |
Sends an EDI 204 (Motor Carrier Load Tender) for a booked shipment. The DMLoadNumber identifies the shipment and SendToCode specifies the EDI destination.