DM LTL Rating Service -- API Documentation

Rating Endpoints

These endpoints calculate freight rates for LTL shipments. All authenticated endpoints require an authCode parameter.


Hello World

MethodGET
Routeapi/rating/hello
AuthNone
Returnsstring -- "Hello World"

Simple connectivity check. Use this to verify the service is running before making authenticated calls.

QuickRate

MethodPOST
Routesapi/rating/QuickRate/{authCode}/{zoneType}
api/rating/QuickRate/{authCode}
AuthwebAuthCode, dmAuthCode, or client auth
BodyInternalRate (JSON)
ReturnsList<InternalRateDetail>

Rates a shipment across all available carriers for a client. Uses the client's branch code and profile to determine which rate matrices apply.

Parameters

ParameterSourceDescription
authCodeURLAuthentication code
zoneTypeURL (optional)0 = Porch, 1 = Threshold. Default: -1 (standard)
rateRequestBodyInternalRate object with origin/destination, line items, accessorials

QuickRateByParams / QuickRateByDate

MethodPOST
Routesapi/rating/QuickRateByParams/
api/rating/QuickRateByDate/
AuthwebAuthCode, dmAuthCode, or client auth
BodyInternalRateParameters (JSON)
ReturnsList<InternalRateDetail>

Rates a shipment using a flat parameter object instead of the full InternalRate model. The auth code is included in the request body as WebAuthCode. Supports client identification via ClientBranchGUID or ClientAuthCode.

Key Body Fields

FieldTypeDescription
WebAuthCodestringAuthentication code
ClientBranchGUIDGuidClient branch identifier
ClientProfileVersionGUIDGuidRate profile version to use
OriginZipCodestringOrigin zip code
DestinationZipCodestringDestination zip code
RateDateDateTimeEffective rate date
ServiceTypeintService type filter (-1 = all)
LineItemsListLine items with class, weight, dimensions

QuickRate2

MethodPOST
Routeapi/rating/QuickRate2/{getAddressDetail}/{authCode}
AuthwebAuthCode, dmAuthCode, or client auth
BodyInternalRate (JSON)
ReturnsList<InternalRateDetail>

Alternate quick rate that optionally includes address detail lookups. When getAddressDetail is true, the response includes resolved address information for origin and destination zip codes.

RateShipment

MethodPOST
Routeapi/rating/RateShipment/{authCode}
AuthwebAuthCode, dmAuthCode, or client auth
BodyInternalRate (JSON)
ReturnsInternalRate (populated with RateDetails)

Full shipment rating. The request object is passed by reference to the rating engine and returned with the RateDetails collection populated. Logs the request and result to the Nebula log folder.

Note: External web calls (webAuthCode and client auth) automatically set GetDMRates = false. Only the dmAuthCode grants access to internal DM rate data.

RateShipment -- Custom Profile

MethodPOST
Routeapi/rating/RateShipment/CustomProfile
AuthwebAuthCode, dmAuthCode, or client auth (in body)
BodyInternalRateParameters (JSON)
ReturnsInternalRate

Rates a shipment using a custom rate profile rather than the client's default. The CustomProfile field in the parameters object specifies which profile to apply.

RateShipment -- By Shipment ID

MethodPOST
Routeapi/rating/RateShipment/ByID/{shipmentID}/{clientAuthCode}
AuthclientAuthCode (resolved to client GUID)
ReturnsInternalRate

Re-rates an existing shipment by its ID. Resolves the client from the auth code and returns the current rate. Returns an empty InternalRate if the client cannot be identified or the branch GUID is empty.

RateShipment -- By Access Code

MethodPOST
Routeapi/rating/RateShipment/ByAccessCode/
AuthAccess code validated with "2198" suffix check
BodyInternalRateParameters (JSON)
ReturnsInternalRate

Simplified rating endpoint for external clients using an access code. The access code must end with "2198" -- the suffix is stripped and the remainder is used as the client auth code. Requires equal-length Classes and Weights arrays in the request body.

Restrictions: DM rates are disabled. Air freight and pallet rating are excluded. The rating mode is LTL with AutoProfile enabled and BestRate calculation.

BaseRateOnly

MethodPOST
Routesapi/rating/BaseRateOnly/{rateMatrixVersionGUID}/{originZip}/{destZip}/{otherCharges}/{otherChargesDescription}/{authCode}
api/rating/BaseRateOnly (parameter object version)
AuthwebAuthCode or dmAuthCode only
BodyList<InternalLineItem> or InternalRateParameters
ReturnsInternalRateDetail

Calculates a base rate using a specific rate matrix version. Does not perform the full carrier selection or discount logic. Two forms:

  • URL parameter form: All parameters in the URL path, line items in the body
  • Object form: Everything in the InternalRateParameters body, including ServiceType which maps to zone types (3 = Porch, 4 = Threshold)

Flock Freight Endpoints

These endpoints are specific to Flock Freight Inc. (carrier GUID: 87404766-10C4-4BB2-ABCC-146C64D4B5E2). They send rate requests to the Flock API and return results with discount calculations applied.

SendFlockQuickQuoteRequest

Routeapi/rating/SendFlockQuickQuoteRequest/{pickupdate}/{originZip}/{destZip}/{quantity}/{weight}/{length}/{width}/{height}/{Stackable}/{authCode}
ReturnsQuickQuoteResults -- TotalCharge, TransitDays, QuoteNumber

Quick quote with automatic quote saving. For web auth / client auth, returns the client invoice amount. For DM auth, returns the carrier net amount. Saves the quote to the database for client calls.

SendFlockQuickNoQuoteRequest

Routeapi/rating/SendFlockQuickNoQuoteRequest/{pickupdate}/{originZip}/{destZip}/{quantity}/{weight}/{length}/{width}/{height}/{Stackable}/{DMRate}/{authCode}
ReturnsQuickQuoteResults -- TotalCharge, TransitDays (no quote saved)

Same as above but does not save a quote record. Includes a DMRate parameter (1 = return DM net rate).

SendFlockQuoteRequest / SendFlockNoQuoteRequest

Routesapi/rating/SendFlockQuoteRequest/{authCode}
api/rating/SendFlockNoQuoteRequest/{authCode}
BodyInternalRate (full rate request object)
ReturnsInternalRate (populated with Flock rate details)

Full Flock Freight rate request using the complete InternalRate object. The "Quote" variant saves a quote record; the "NoQuote" variant returns rates only. The calling routine is expected to set the client on the rate request -- the service does not look it up by auth code.

Related Pages