Rating Endpoints
These endpoints calculate freight rates for LTL shipments. All authenticated endpoints require an authCode parameter.
Hello World
| Method | GET |
| Route | api/rating/hello |
| Auth | None |
| Returns | string -- "Hello World" |
Simple connectivity check. Use this to verify the service is running before making authenticated calls.
QuickRate
| Method | POST |
| Routes | api/rating/QuickRate/{authCode}/{zoneType}api/rating/QuickRate/{authCode} |
| Auth | webAuthCode, dmAuthCode, or client auth |
| Body | InternalRate (JSON) |
| Returns | List<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
| Parameter | Source | Description |
|---|---|---|
authCode | URL | Authentication code |
zoneType | URL (optional) | 0 = Porch, 1 = Threshold. Default: -1 (standard) |
rateRequest | Body | InternalRate object with origin/destination, line items, accessorials |
QuickRateByParams / QuickRateByDate
| Method | POST |
| Routes | api/rating/QuickRateByParams/api/rating/QuickRateByDate/ |
| Auth | webAuthCode, dmAuthCode, or client auth |
| Body | InternalRateParameters (JSON) |
| Returns | List<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
| Field | Type | Description |
|---|---|---|
WebAuthCode | string | Authentication code |
ClientBranchGUID | Guid | Client branch identifier |
ClientProfileVersionGUID | Guid | Rate profile version to use |
OriginZipCode | string | Origin zip code |
DestinationZipCode | string | Destination zip code |
RateDate | DateTime | Effective rate date |
ServiceType | int | Service type filter (-1 = all) |
LineItems | List | Line items with class, weight, dimensions |
QuickRate2
| Method | POST |
| Route | api/rating/QuickRate2/{getAddressDetail}/{authCode} |
| Auth | webAuthCode, dmAuthCode, or client auth |
| Body | InternalRate (JSON) |
| Returns | List<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
| Method | POST |
| Route | api/rating/RateShipment/{authCode} |
| Auth | webAuthCode, dmAuthCode, or client auth |
| Body | InternalRate (JSON) |
| Returns | InternalRate (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.
GetDMRates = false. Only the dmAuthCode grants access to internal DM rate data.
RateShipment -- Custom Profile
| Method | POST |
| Route | api/rating/RateShipment/CustomProfile |
| Auth | webAuthCode, dmAuthCode, or client auth (in body) |
| Body | InternalRateParameters (JSON) |
| Returns | InternalRate |
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
| Method | POST |
| Route | api/rating/RateShipment/ByID/{shipmentID}/{clientAuthCode} |
| Auth | clientAuthCode (resolved to client GUID) |
| Returns | InternalRate |
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
| Method | POST |
| Route | api/rating/RateShipment/ByAccessCode/ |
| Auth | Access code validated with "2198" suffix check |
| Body | InternalRateParameters (JSON) |
| Returns | InternalRate |
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.
BaseRateOnly
| Method | POST |
| Routes | api/rating/BaseRateOnly/{rateMatrixVersionGUID}/{originZip}/{destZip}/{otherCharges}/{otherChargesDescription}/{authCode}api/rating/BaseRateOnly (parameter object version) |
| Auth | webAuthCode or dmAuthCode only |
| Body | List<InternalLineItem> or InternalRateParameters |
| Returns | InternalRateDetail |
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
InternalRateParametersbody, includingServiceTypewhich 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
| Route | api/rating/SendFlockQuickQuoteRequest/{pickupdate}/{originZip}/{destZip}/{quantity}/{weight}/{length}/{width}/{height}/{Stackable}/{authCode} |
| Returns | QuickQuoteResults -- 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
| Route | api/rating/SendFlockQuickNoQuoteRequest/{pickupdate}/{originZip}/{destZip}/{quantity}/{weight}/{length}/{width}/{height}/{Stackable}/{DMRate}/{authCode} |
| Returns | QuickQuoteResults -- 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
| Routes | api/rating/SendFlockQuoteRequest/{authCode}api/rating/SendFlockNoQuoteRequest/{authCode} |
| Body | InternalRate (full rate request object) |
| Returns | InternalRate (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.