LTL Rating API Implementation Guide
LTL Rating API Implementation Guide
API Description This API provides tools to rate shipments (get “Rate Quotes”).
Document Purpose This document details the use of the LTL Rating API.
The operations will show the request and response interfaces for the
operations, describing mandatory and optional elements. They will
also specify values permitted for a field, any formatting constraints, as
well as any errors that may be encountered.
P a g e 1 | 72 Version 1.0
Less-Than-Truckload
Table of Contents
1 Introduction............................................................................................................................................ 3
1.1 Purpose ....................................................................................................................................... 3
1.2 Scope .......................................................................................................................................... 3
2 Rating Execution ................................................................................................................................... 3
2.1 Production Environment .............................................................................................................. 3
3 getXpoLtlRateQuote .............................................................................................................................. 3
3.1 Business Rules ............................................................................................................................ 4
3.2 Description................................................................................................................................... 5
3.3 Request Elements ....................................................................................................................... 5
3.4 Response Elements .................................................................................................................. 12
3.5 getXpoLtlRateQuote Samples ................................................................................................... 25
3.5.1 Rate quote has no accessorials ..................................................................................... 25
3.5.2 Rate quote contains accessorials .................................................................................. 29
3.5.3 Account is Third-Party Bill-To ......................................................................................... 32
4 getXpoLtlRateQuoteDetails ................................................................................................................. 35
4.1 Description................................................................................................................................. 35
4.2 Business rules: .......................................................................................................................... 35
4.3 Request Elements ..................................................................................................................... 35
4.4 Response Elements .................................................................................................................. 36
4.5 getXpoLtlRateQuoteDetails Response Samples ....................................................................... 48
4.5.1 Registered user uses a pricing agreement .................................................................... 48
4.6 Pricing agreement not used....................................................................................................... 52
5 getXpoLtlSpotQuote ............................................................................................................................ 56
5.1 Business Rules .......................................................................................................................... 56
5.2 Request Elements ..................................................................................................................... 57
5.3 Response Elements .................................................................................................................. 59
5.4 getXpoLtlSpotQuote Samples ................................................................................................... 60
5.4.1 Request a Spot Quote .................................................................................................... 60
6 listRateQuoteAccessorials .................................................................................................................. 62
6.1 Business Rules .......................................................................................................................... 62
6.2 Request Elements ..................................................................................................................... 63
6.3 Response Elements .................................................................................................................. 63
6.4 listRateQuoteAccessorials Samples.......................................................................................... 63
6.4.1 Request Accessorials – Origin and Destination are US ................................................. 63
6.4.2 Request Accessorials – Origin is US destination is MX ................................................. 65
Implementation Guide Revision History..................................................................................................... 68
P a g e 2 | 72 Version 1.0
Less-Than-Truckload
1 Introduction
1.1 Purpose
The purpose of this document is to provide a technical guide for the LTL Rating JSON API service. For information
on general XPO LTL API setup, including security; health check; rate limits; discovering API options; response
structures; and test mode, see the API Help Center on [Link].
1.2 Scope
This document covers the execution environment, operation definitions, input and output
descriptions, and sample inputs and outputs.
2 Rating Execution
2.1 Production Environment
Endpoint
Production: [Link]
Endpoint Resource Value
API
Operation Name URI Prefix
Method
/ratequotes/{confirmationNbr} GET
getXpoLtlRateQuoteDetails
/ratequotes POST
getXpoLtlRateQuote
/spotquotes POST
getXpoLtlSpotQuote
3 getXpoLtlRateQuote
This operation generates a shipping rate quote. The caller can use an account with a pricing
agreement to use for the rate quote calculation, or use a discount level. Note that it may improve the
ease of use of your application if you offer NMFC choices via a dropdown list (it is suggested not to
set a default value).
If you expect to incur charges due to lineal foot, excessive length, or cubic capacity charges, use the
calculateLinealFeet operation in the LTLShippingTools API, and add the resulting following
information to the rate quote call:
• totalLinealFt
• excessiveLength
• cubicCapacity
Special Pricing
P a g e 3 | 72 Version 1.0
Less-Than-Truckload
Aside from your contracted rates, XPO offers the following LTL pricing options for large shipments:
This price cap is automatically introduced when the shipment is rated more than a certain amount. This
pricing does not need to be requested, it will apply when appropriate conditions are met.
Spot Quote:
This special pricing is offered based on the weight of the shipment, and when the lane (route from origin to
the destination) has the option available. When this happens, the rate quote call will return a message that
indicates “This shipment may qualify for additional savings. If interested, please request a volume
shipment Spot Quote.“ At this point, if you’d like to check if it is available for the shipment, call the
getXpoLtlSpotQuote operation.
P a g e 4 | 72 Version 1.0
Less-Than-Truckload
3.2 Description
3.2.1 This operation calculates and returns an estimated shipping cost rate quote. Note that
if your account is operating as a third-party biller for the rate quote, please indicate
this using the account ID in the bill2Party attribute. See the sample “Account is Third-
Party Bill-To” for more information. Includes estimated transit time information.
[Link]
Object One to Ten
orials
[Link]
[Link] String Description of the Accessorial
sc
P a g e 5 | 72 Version 1.0
Less-Than-Truckload
[Link]
Object
[Link]
[Link]
[Link] Decimal
t
[Link]
[Link] String ISO 3 Letter Currency codes
rencyCd
shipmentInfo.bill2Pa Account to use to determine
Object
rty the pricing agreement
Account ID to use to
shipmentInfo.bill2Pa determine the pricing
String
[Link] agreement if the account is of
“Bill to” (3rd Party) type
shipmentInfo.bill2Pa if the account is of “Bill to” (3rd
String
[Link] Party) type
shipmentInfo.bill2Pa
Object *** not used ***
[Link]
shipmentInfo.bill2Pa
[Link] String *** not used ***
TypeCd
shipmentInfo.bill2Pa
String *** not used ***
[Link]
shipmentInfo.bill2Pa
[Link] String *** not used ***
ame
shipmentInfo.bill2Pa
[Link] String *** not used ***
Line1
shipmentInfo.bill2Pa
[Link] String *** not used ***
Line2
shipmentInfo.bill2Pa
[Link] String *** not used ***
eBox
shipmentInfo.bill2Pa Required
[Link] if the city City Name part of the
String Mexico City
is in address.
e Mexico
shipmentInfo.bill2Pa
String *** not used ***
[Link]
P a g e 6 | 72 Version 1.0
Less-Than-Truckload
shipmentInfo.bill2Pa
[Link] String *** not used ***
d
Required
shipmentInfo.bill2Pa if the city US or Canada postal (ZIP)
String
[Link] is in US or code
CA
shipmentInfo.bill2Pa
String *** not used ***
[Link].usZip4
[Link]
Object 1-20 Y
odity
[Link]
Integer 1 to 9,999 number of commodity items
[Link]
[Link]
Object Y
[Link]
[Link]
[Link].w String Y Commodity gross weight
eight
[Link]
[Link].w Unit of measure for gross
String LBS
weight. MUST BE IN LBS.
eightUom
[Link]
Object *** not used ***
[Link]
[Link]
Decimal *** not used ***
[Link]
[Link]
[Link] String *** not used ***
UOM
P a g e 7 | 72 Version 1.0
Less-Than-Truckload
[Link]
String *** not used ***
[Link]
NMFC classes
are 50, 55, 60,
[Link] 65, 70, 77.5, 85,
String 92.5, 100, 110, Y Standard NMFC class code
[Link]
125, 150, 175,
200, 250, 300,
400, and 500.
[Link] NMFC Item code of the
String
[Link] commodity
[Link]
Object Dimensions of the commodity
[Link]
If any
dimension
s are
entered
for a
[Link] commodit
[Link] decimal y, all Length of the commodity
gth dimension
s must be
entered
for that
commodit
y
If any
dimension
s are
entered
for a
[Link] commodit
[Link] decimal y, all Width of the commodity
th dimension
s must be
entered
for that
commodit
y
If any
dimension
[Link] s are
[Link] decimal entered Height of the commodity
ght for a
commodit
y, all
P a g e 8 | 72 Version 1.0
Less-Than-Truckload
dimension
s must be
entered
for that
commodit
y
Y (if
dimension Unit of measure for the
[Link] s are commodity dimensions.
[Link] String Inches entered IMPORTANT: Until a future
mensionsUom for that release, the dimensions are
commodit in inches.
y)
[Link]
Object Consignee account info
nee
[Link]
String Database key for customer
[Link]
[Link]
String Business key for customer
[Link]
[Link]
Object Consignee address info
[Link]
[Link]
String *** not used ***
[Link]
[Link]
String *** not used ***
[Link]
[Link]
[Link] String *** not used ***
Name
[Link]
[Link] String *** not used ***
sLine1
[Link]
[Link] String *** not used ***
sLine2
[Link]
[Link] String *** not used ***
ceBox
[Link] Required
[Link] if the city
String Mexico city name
is in
me Mexico
P a g e 9 | 72 Version 1.0
Less-Than-Truckload
[Link]
String *** not used ***
[Link]
[Link]
[Link] String *** not used ***
Cd
[Link] Required
[Link] Postal code for US or Canada
String for US or
location
d Canada
[Link]
String *** not used ***
[Link].usZip4
[Link]
bleInd Boolean *** not used ***
[Link] P (Prepaid) or C
String Y Shipment Payment term
ntTermCd (Collect)
[Link]
String Y Shipment Date
ntDate
Required
if shipping
[Link]
Volume to or from Shipment volume.
ntVolume
Mexico or
Hawaii
[Link]
Number Volume measurement
[Link]
[Link]
Object
r
[Link]
String Database key for customer
[Link]
[Link]
String Business key for customer
[Link]
P a g e 10 | 72 Version 1.0
Less-Than-Truckload
[Link]
Object
[Link]
[Link]
[Link] String *** not used ***
peCd
[Link]
String *** not used ***
[Link]
[Link]
[Link] String *** not used ***
me
[Link]
[Link] String *** not used ***
ne1
[Link]
[Link] String *** not used ***
ne2
[Link]
[Link] String *** not used ***
Box
Required
[Link]
String if city is in City name for Mexico city
[Link]
Mexico
[Link]
String *** not used ***
[Link]
[Link]
String *** not used ***
[Link]
Required
if the
[Link] US or Canada postal (ZIP)
String location is
[Link] code
in US or
CA
[Link]
String *** not used ***
[Link].usZip4
shipmentInfo.
Integer Total pallet count
palletCnt
P a g e 11 | 72 Version 1.0
Less-Than-Truckload
[Link] Object
[Link] Decimal
[Link] String
[Link]
Object
ity
[Link]
Integer 1 to 9,999 number of commodity items
[Link]
P a g e 12 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
Examples:
SKD, PLT,
[Link]
String PCS, CRT, Type of Package
[Link]
BDL, BOX,
CAS
The total weight of a shipment of
[Link]
Object goods, including their packaging
[Link]
such as crates, pallets etc.
[Link]
Decimal
[Link]
[Link] Unit of measure for Gross weight
String LBS
[Link] of the commodity – will be in LBS.
The weight of the pallet or
[Link]
Object packaging used to ship a
[Link]
commodity.
[Link]
Decimal Tare weight measurement
[Link]
[Link] Unit of measurement for weight.
String LBS
[Link] WILL BE IN LBS.
[Link]
Object Charge for the commodity
[Link]
[Link] Charge type code for the
String
[Link] commodity
[Link] Sequence number for the
Integer
[Link] commodity charge
[Link] Charge code for the commodity
String
[Link] charge
[Link]
Object
[Link]
[Link]
Decimal
[Link]
[Link]
[Link] String ISO 3 Letter Currency codes
d
[Link] Minimum charge indicator code for
Boolean
[Link] the commodity
[Link] Maximum charge indicator code
Boolean
[Link] for the commodity
[Link]
Object *** not used ***
[Link]
[Link]
Indicates calculation method: spot
[Link] String
quote or rate-based
dTypeCd
[Link]
Integer *** not used ***
[Link]
P a g e 13 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link]
[Link] String *** not used ***
OM
[Link]
[Link] Decimal Per unit rate of the commodity
te
[Link]
[Link] String *** not used ***
teEffDate
[Link]
[Link] Object
nfo
[Link] Currency Code in standard format
[Link] String e.g. USD. The exchange rate is to
cyCd convert from this currency.
[Link] Currency Code in standard format
[Link] String e.g. USD. The exchange rate is to
[Link] convert to thi s currency.
[Link] Currency code that is the basis for
[Link]. both the from and to conversions.
String
.[Link] For example - from SEK to USD
CrncyCd and from USD to EUR
[Link] The exchange rate to convert
[Link] String amount given in fromCrncyCd to
[Link] toCrncyCd.
[Link]
The dates on which this exchange
[Link] String
rate is effective.
[Link]
[Link]
[Link] String The source of the exchange rate
[Link]
[Link]
[Link] Decimal
eFactor
[Link]
String *** not used ***
[Link]
[Link]
String *** not used ***
[Link]
[Link]
Object *** not used ***
[Link]
[Link]
String *** not used ***
[Link]
[Link]
[Link] String *** not used ***
scr
[Link]
[Link] String *** not used ***
peCd
P a g e 14 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link]
Object Volume of the commodity
[Link]
[Link]
Decimal Volume measurement
[Link]
[Link] Volume unit of measure – this will
String CFT
[Link] be in cubic geet
[Link]
String Description of the commodity
[Link]
[Link]
String
[Link]
[Link]
String
[Link]
Total charge for all the
[Link]
Object commodities before the discount
modityCharge
was applied.
[Link]
Decimal Charge amount
[Link]
[Link] 3 letter currency code of the
String
[Link] charge amount
Set to True if there are any
[Link] Boolean
hazardous materials
[Link] Object
P a g e 15 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link]
Object
tedWeight
[Link]
Decimal
[Link]
[Link] Unit of measure for as rated
String LBS
[Link] weight. MUST BE IN LBS
[Link]
Object
tRate
[Link]
Decimal
[Link]
[Link]
String ISO 3 Letter Currency codes
[Link]
[Link]
Object
tAmt
[Link]
Decimal
[Link]
[Link]
String ISO 3 Letter Currency codes
[Link]
String
[Link]
array
[Link] Object
P a g e 16 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
with the line are the minimum
charges for the commodity.
True if the charge associated with
[Link]
Boolean the accessorial line is the
argeInd
maximum charge
[Link]
Object
thod
[Link]
String spot quote, rate-based
[Link]
[Link] whatever if being multiplied by unit
Integer
[Link] rate - hours, weight, miles
[Link]
String
[Link]
[Link]
Decimal
[Link]
[Link]
String
[Link]
[Link]
Object
[Link]
Currency Code in standard format
[Link]
String e.g. USD. The exchange rate is to
[Link]
convert from this currency.
Currency Code in standard format
[Link]
String e.g. USD. The exchange rate is to
[Link]
convert to thi s currency.
Currency code that is the basis for
[Link] both the from and to conversions.
String
[Link] For example - from SEK to USD
and from USD to EUR
The exchange rate to convert
[Link]
Decimal amount given in fromCrncyCd to
[Link]
toCrncyCd.
[Link] The dates on which this exchange
String
[Link] rate is effective.
[Link]
String source of exchange rate
[Link]
[Link]
Decimal source of exchange rate
[Link]
A code indicating which party or
parties get the revenue from the
[Link] accessorial - PayToAdvance,
String
sibleParty PayToPrimary, SplitBetweenAll,
SplitAdvancePrimaryOnly,
SplitPrimaryBeyondOnly
Textual description of charge other
than a standard description
[Link] String
represented by the description in
ChargeTypeCd
P a g e 17 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link]
Object *** not used ***
ce
[Link]
String *** not used ***
[Link]
[Link]
String *** not used ***
[Link]
[Link]
String *** not used ***
[Link]
XPO service center of entry or exit
[Link] String
into or from the US
[Link] String
rateQuote.bill2Party Object
[Link] Object
[Link]
String *** not used ***
ressTypeCd
[Link]
String *** not used ***
me
[Link]
String *** not used ***
eOfName
[Link]
String *** not used ***
ressLine1
[Link]
String *** not used ***
ressLine2
[Link]
String *** not used ***
tOfficeBox
[Link]
String City name for Mexico city
Name
[Link]
String *** not used ***
eCd
[Link]
String *** not used ***
ntryCd
[Link]
String Postal code for US or CA address
talCd
P a g e 18 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link] This is a 4 digit extension to US 5
String
ip4 digit zip code.
[Link] Object
[Link] Object
[Link]
String *** not used ***
essTypeCd
[Link]
String *** not used ***
OfName
[Link]
String *** not used ***
essLine1
[Link]
String *** not used ***
essLine2
[Link]
String *** not used ***
OfficeBox
[Link]
String City name for Mexico city
ame
[Link]
String *** not used ***
Cd
[Link]
String *** not used ***
ryCd
[Link]
String Postal code for US or CA address
lCd
[Link]
String *** not used ***
4
[Link] Object
[Link] Object
[Link]
String *** not used ***
dressTypeCd
[Link]
String *** not used ***
me
[Link]
String *** not used ***
reOfName
P a g e 19 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link]
String *** not used ***
dressLine1
[Link]
String *** not used ***
dressLine2
[Link]
String *** not used ***
OfficeBox
[Link]
String City name of a Mexico city
yName
[Link]
String *** not used ***
ateCd
[Link]
String *** not used ***
untryCd
[Link]
String *** not used ***
stalCd
[Link]
String *** not used ***
Zip4
[Link]
integer *** not used ***
Miles
[Link]
Decimal Total accessorial amount
t
[Link]
String ISO 3 Letter Currency codes
rencyCd
[Link] Object
P a g e 20 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link] String The source of the exchange rate
[Link] Object
[Link] Decimal
[Link]
String ISO 3 Letter Currency codes
cyD
[Link]
P a g e 21 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
Currency code that is the basis for
[Link].
both the from and to conversions.
.[Link] String
For example - from SEK to USD
CrncyCd
and from USD to EUR
The exchange rate to convert
[Link]
String amount given in fromCrncyCd to
[Link]
toCrncyCd.
[Link] The dates on which this exchange
String
[Link] rate is effective.
[Link]
String The source of the exchange rate
[Link]
[Link]
Decimal
[Link]
[Link]
String *** not used ***
eParty
[Link].
String *** not used ***
reference
[Link].
String *** not used ***
referenceDescr
[Link].
String *** not used ***
referenceTypeCd
[Link]
Object
mt
[Link]
Decimal
[Link]
[Link]
String ISO 3 Letter Currency codes
[Link]
[Link] Object
[Link] Decimal
[Link] Object
[Link].a
Decimal
mt
[Link].c
String ISO 3 Letter Currency codes
urrency
[Link]
Object
mt
[Link]
Decimal
[Link]
P a g e 22 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link]
String ISO 3 Letter Currency codes
[Link]
[Link] Object
[Link] Decimal
P(Prepaid)
[Link]
String or Shipment Payment term code
TermCd
C(Collect)
[Link] Comments related to the rate
String
t quote
Indicates whether or not volume
[Link] Boolean shipment pricing (VSP) was
applied (vs. regular rating).
transitTime Object Transit time information
[Link] String Destination state code
[Link] String Destination postal code
Destination service center that is
[Link] String
delivering the freight
Delivery date derived from
[Link] date requested pick up date and transit
days
If true then guaranteed service is
[Link] boolean
available on this service
Latest date by which the freight
[Link] date should be picked up in order to
meet the requested delivery date
[Link] String Origin postal code
[Link] String Origin state code
Origin service center that is picking
[Link] String
up the freight
Delivery date as requested by the
[Link] Date
customer
Customer requested pickup date. If
[Link] Date not provided, then defaults to the
date the request was created.
Standard service transit (business)
days (excluding weekends and
[Link] Integer
holidays) to move from origin to
destination.
Earliest date by which the freight
[Link] Date should be picked up in order to
meet the requested delivery date.
P a g e 23 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link] String Note about the transit time
Set to true if the requested pickup
[Link] boolean
date is holidat or non-working day
Set to true of the requested
[Link]
Boolean delivery date is a holiday or non-
oliday
working day
Messages returned from the
msgs Object Zero to Many service call that contain important
information
P a g e 24 | 72 Version 1.0
Less-Than-Truckload
Request Message:
"shipmentInfo": {
"paymentTermCd": "P",
"accessorials": [],
"commodity": [{
"grossWeight": {
"weight": 500,
"weightUom": "LBS"
},
"nmfcClass": 100,
"hazmatInd": false,
"pieceCnt":2,
"dimensions" : {
"length" : 11,
"width" : 20,
"height" : 50,
"dimensionsUom" : "INCH"
}],
"consignee": {
"address": {
"postalCd": "M4B1B3"
},
"shipper": {
P a g e 25 | 72 Version 1.0
Less-Than-Truckload
"acctInstId": "1234567"
},
"bill2Party": {
"address": {
"usZip4": ""
},
"shipmentDate": "2018-05-10T12:00:00.000-0700",
"palletCnt": 0,
"linealFt": 0
Response Message:
"code": "201",
"transactionTimestamp": 1525455060046,
"data": {
"rateQuote": {
"confirmationNbr": "7133312345678893",
"amcInd": false,
"deficitRatingInfo": {
"deficitRate": {
"amt": 368.06
},
"deficitAmt": {
"amt": 0
},
"totAccessorialAmt": {
"amt": 124.37
P a g e 26 | 72 Version 1.0
Less-Than-Truckload
},
"totCharge": [
"amt": 541.01
],
"totDiscountAmt": {
"amt": 1423.66
},
"shipmentInfo": {
"accessorials": [
"accessorialCd": "HMS",
"chargeAmt": {
"amt": 22.5
},
"accessorialCd": "FSC",
"chargeAmt": {
"amt": 101.87
],
"commodity": [
"dimensions": {
"length": 11,
P a g e 27 | 72 Version 1.0
Less-Than-Truckload
"width": 20,
"height": 50
},
"pieceCnt": 2,
"grossWeight": {
"weight": 500
},
"charge": {
"chargeAmt": {
"amt": 1840.3
},
"calcMethod": {
"perUnitRate": 368.06
},
"nmfcClass": "100.0",
"hazmatInd": false
],
"shipper": {
"address": {
},
"consignee": {
"address": {
"postalCd": "M4B1B3"
},
"paymentTermCd": "P",
P a g e 28 | 72 Version 1.0
Less-Than-Truckload
"comment": "",
"totCommodityCharge": {
"amt": 1840.3
},
"vspApplied": false
},
"msgs": [],
"transitTime": {
"destStateCd": "ON",
"destPostalCd": "M4B1B3",
"destSicCd": "XKR",
"estdDlvrDate": 1526367600000,
"garntInd": true,
"origPostalCd": "72143",
"origStateCd": "AR",
"origSicCd": "LLR",
"requestedPkupDate": 1525960800000,
"transitDays": 3
Request Message:
{
"shipmentInfo":
{
"accessorials":
[
{
"accessorialCd":"ELS",
"quantity":110,
"quantityUom":"Inch"
},
{
P a g e 29 | 72 Version 1.0
Less-Than-Truckload
"accessorialCd":"OLG",
"quantity":0
}
],
"commodity":
[
{
"pieceCnt":5,
"packageCode":"PLT",
"grossWeight":
{
"weight":500,
"weightUom":"lbs"
},
"desc":"Wool",
"nmfcClass":"100",
"nmfcItemCd":"057410",
"hazmatInd":false,
"dimensions" : {
"length" : 15,
"width" : 25,
"height" : 60,
"dimensionsUom" : "INCH"
}
}],
"freezableInd":false,
"hazmatInd":false,
"paymentTermCd":"P",
"shipmentDate":"2018-02-09T17:00:00.000Z",
"shipper": {
"acctInstId": "1234567"
},
"consignee": {
"address": {
"postalCd": "90210"
}
},
"bill2Party": {
"address": {
"usZip4": ""
}
},
"palletCnt":1
}
}
Response Message:
{
"code": "201",
"transactionTimestamp": 1525455644592,
"data": {
"rateQuote": {
"confirmationNbr": "1237054568789",
"amcInd": false,
"deficitRatingInfo": {
"deficitRate": {
"amt": 451.98
},
"deficitAmt": {
P a g e 30 | 72 Version 1.0
Less-Than-Truckload
"amt": 0
}
},
"totAccessorialAmt": {
"amt": 323.34
},
"totCharge": [
{
"amt": 834.98
}
],
"totDiscountAmt": {
"amt": 1748.26
},
"shipmentInfo": {
"accessorials": [
{
"accessorialCd": "HCD",
"accessorialDesc": "HIGH COST DELIVERY REGION SRCHG",
"chargeAmt": {
"amt": 41.5
}
},
{
"accessorialCd": "CCS",
"accessorialDesc": "CALIFORNIA COMPLIANCE SURCHARGE",
"chargeAmt": {
"amt": 6.8
}
},
{
"accessorialCd": "OLG",
"accessorialDesc": "ORIG LIFTGATE SERVICE",
"chargeAmt": {
"amt": 152.5
}
},
{
"accessorialCd": "FSC",
"accessorialDesc": "FUEL SURCHARGE 23.95%",
"chargeAmt": {
"amt": 122.54
}
}
],
"commodity": [
{
"dimensions": {
"length": 15,
"width": 25,
"height": 60
},
"pieceCnt": 5,
"grossWeight": {
"weight": 500
},
"charge": {
"chargeAmt": {
"amt": 2259.9
},
P a g e 31 | 72 Version 1.0
Less-Than-Truckload
"calcMethod": {
"perUnitRate": 451.98
}
},
"nmfcClass": "100.0",
"hazmatInd": false
}
],
"shipper": {
"address": {
"postalCd": "72143 "
}
},
"consignee": {
"address": {
"postalCd": "90210 "
}
},
"paymentTermCd": "P",
"comment": "",
"totCommodityCharge": {
"amt": 2259.9
}
},
"vspApplied": false
},
"msgs": [],
"transitTime": {
"destStateCd": "CA",
"destPostalCd": "90210",
"destSicCd": "ULX",
"estdDlvrDate": 1518595200000,
"garntInd": true,
"origPostalCd": "72143",
"origStateCd": "AR",
"origSicCd": "LLR",
"requestedPkupDate": 1518192000000,
"transitDays": 3
}
}
}
Request Message:
{
"shipmentInfo":
{
"accessorials":[
{
"accessorialCd":"ELS",
"quantity":96,
"quantityUom":"Inch"
},
{
"accessorialCd":"OLG",
"quantity":0
}
P a g e 32 | 72 Version 1.0
Less-Than-Truckload
],
"commodity":[
{
"pieceCnt":2,
"packageCode":"PLT",
"grossWeight":
{
"weight":141,
"weightUom":"lbs"
},
"desc":"Fabric",
"nmfcClass":"92.5",
"nmfcItemCd":"057410",
"hazmatInd":false,
"dimensions" : {
"length" : 11,
"width" : 20,
"height" : 50,
"dimensionsUom" : "INCH"
}
}],
"freezableInd":false,
"garntInd":false,
"hazmatInd":false,
"paymentTermCd":"P",
"shipmentDate":"2018-02-09T17:00:00.000Z",
"shipper":
{
"address":
{
"stateCd":"WI",
"countryCd":"US",
"postalCd":"54304"
}
},
"consignee":
{
"address":
{
"stateCd":"WA",
"countryCd":"US",
"postalCd":"98612"
}
},
"bill2Party":
{
"acctInstId":"12345678"},
"palletCnt":1
}
}
Response Message:
{
"code": "201",
"transactionTimestamp": 1525453698009,
"data": {
"rateQuote": {
"confirmationNbr": "9877654932183",
"amcInd": false,
"deficitRatingInfo": {
"deficitRate": {
P a g e 33 | 72 Version 1.0
Less-Than-Truckload
"amt": 610.38
},
"deficitAmt": {
"amt": 0
}
},
"totAccessorialAmt": {
"amt": 199.17
},
"totCharge": [
{
"amt": 394.02
}
],
"totDiscountAmt": {
"amt": 665.79
},
"shipmentInfo": {
"accessorials": [
{
"accessorialCd": "OLG",
"accessorialDesc": "ORIG LIFTGATE SERVICE",
"chargeAmt": {
"amt": 152.5
}
},
{
"accessorialCd": "FSC",
"accessorialDesc": "FUEL SURCHARGE 23.95%",
"chargeAmt": {
"amt": 46.67
}
}
],
"commodity": [
{
"dimensions": {
"length": 11,
"width": 20,
"height": 50
},
"pieceCnt": 2,
"grossWeight": {
"weight": 141
},
"charge": {
"chargeAmt": {
"amt": 860.64
},
"calcMethod": {
"perUnitRate": 610.38
}
},
"nmfcClass": "92.5",
"hazmatInd": false
}
],
"shipper": {
"address": {
"postalCd": "54304 "
}
},
P a g e 34 | 72 Version 1.0
Less-Than-Truckload
"consignee": {
"address": {
"postalCd": "98612 "
}
},
"paymentTermCd": "P",
"comment": "Reminder: Single Shipments less than 500 lbs may be subject to a special service charge.",
"totCommodityCharge": {
"amt": 860.64
}
},
"vspApplied": false
},
"msgs": [],
"transitTime": {
"destStateCd": "WA",
"destPostalCd": "98612",
"destSicCd": "UPE",
"estdDlvrDate": 1519113600000,
"garntInd": true,
"origPostalCd": "54304",
"origStateCd": "WI",
"origSicCd": "XGB",
"requestedPkupDate": 1518192000000,
"transitDays": 7
}
}
}
4 getXpoLtlRateQuoteDetails
4.1 Description
This service will retrieve the details of an existing rate quote based on its confirmation
number. Rate quote details will be sent back in response. Note that the confirmation number
is passed in the URL in this format: /ratequotes/{confirmationNbr}. Includes estimated transit
time information.
Post-conditions:
• If a valid rate quote confirmation number is provided, then rate quote details for the
input rate quote confirmation number are returned.
• If an invalid rate quote confirmation number is provided, a 'Not found' error message is
returned.
P a g e 35 | 72 Version 1.0
Less-Than-Truckload
[Link] Object
[Link] Decimal
[Link] String
[Link] Object
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link]
String ISO 3 Letter Currency codes
[Link]
[Link]
Object
tAmt
[Link]
Decimal
[Link]
[Link]
String ISO 3 Letter Currency codes
[Link]
String
[Link]
array
[Link] Object
P a g e 37 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link]
String
[Link]
[Link]
Decimal
[Link]
[Link]
String
[Link]
[Link]
Object
[Link]
Currency Code in standard format
[Link]
String e.g. USD. The exchange rate is to
[Link]
convert from this currency.
Currency Code in standard format
[Link]
String e.g. USD. The exchange rate is to
[Link]
convert to thi s currency.
Currency code that is the basis for
[Link] both the from and to conversions.
String
[Link] For example - from SEK to USD
and from USD to EUR
The exchange rate to convert
[Link]
Decimal amount given in fromCrncyCd to
[Link]
toCrncyCd.
[Link] The dates on which this exchange
String
[Link] rate is effective.
[Link]
String source of exchange rate
[Link]
[Link]
Decimal source of exchange rate
[Link]
A code indicating which party or
parties get the revenue from the
[Link] accessorial - PayToAdvance,
String
sibleParty PayToPrimary, SplitBetweenAll,
SplitAdvancePrimaryOnly,
SplitPrimaryBeyondOnly
Textual description of charge other
than a standard description
[Link] String
represented by the description in
ChargeTypeCd
[Link]
Object *** not used ***
ce
[Link]
String *** not used ***
[Link]
[Link]
String *** not used ***
[Link]
[Link]
String *** not used ***
[Link]
XPO service center of entry or exit
[Link] String
into or from the US
P a g e 38 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link] String *** not used ***
[Link]
Decimal Total accessorial amount
t
[Link]
String ISO 3 Letter Currency codes
rencyCd
[Link] Object
[Link] Object
[Link] Object
[Link] Decimal
[Link]
String ISO 3 Letter Currency codes
cyD
[Link]
Valid
Values or
Element Type Cardinality Description
Sample
Values
Sequence number for the
[Link] Integer
commodity charge
Charge code for the commodity
[Link] String
charge
[Link]
Object
t
[Link]
Decimal
[Link]
[Link]
String ISO 3 Letter Currency codes
[Link]
[Link] Minimum charge indicator code for
Boolean
eInd the commodity
[Link] Maximum charge indicator code
Boolean
eInd for the commodity
[Link]
Object *** not used ***
d
[Link] Indicates calculation method: spot
String
[Link] quote or rate-based
[Link]
Integer *** not used ***
[Link]
[Link]
String *** not used ***
[Link]
[Link]
Decimal Per unit rate of the commodity
[Link]
[Link]
String *** not used ***
[Link]
[Link]
Object
[Link]
Currency Code in standard format
[Link]
String e.g. USD. The exchange rate is to
[Link]
convert from this currency.
Currency Code in standard format
[Link]
String e.g. USD. The exchange rate is to
[Link]
convert to thi s currency.
Currency code that is the basis for
[Link].
both the from and to conversions.
.[Link] String
For example - from SEK to USD
CrncyCd
and from USD to EUR
The exchange rate to convert
[Link]
String amount given in fromCrncyCd to
[Link]
toCrncyCd.
[Link] The dates on which this exchange
String
[Link] rate is effective.
[Link]
String The source of the exchange rate
[Link]
P a g e 40 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link]
Decimal
[Link]
[Link]
String *** not used ***
eParty
[Link].
String *** not used ***
reference
[Link].
String *** not used ***
referenceDescr
[Link].
String *** not used ***
referenceTypeCd
[Link]
Object
mt
[Link]
Decimal
[Link]
[Link]
String ISO 3 Letter Currency codes
[Link]
[Link] Object
[Link] Decimal
[Link] Object
[Link].a
Decimal
mt
[Link].c
String ISO 3 Letter Currency codes
urrencyCd
[Link]
Object
mt
[Link]
Decimal
[Link]
[Link]
String ISO 3 Letter Currency codes
[Link]
[Link] Object
[Link] Decimal
[Link]
String ISO 3 Letter Currency codes
d
[Link] Object
P a g e 41 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link].
Object
accessorials
[Link]
String
[Link]
[Link]
Integer
[Link]
[Link]
[Link] String
quantityUom
[Link]
String
[Link]
[Link].o
Object
[Link]
[Link]
Decimal
[Link]
[Link]
String
[Link]
[Link]
Integer number of commodity items
[Link]
Examples:
SKD, PLT,
[Link]
String PCS, CRT, Type of Package
[Link]
BDL, BOX,
CAS
The total weight of a shipment of
[Link]
Object goods, including their packaging
[Link]
such as crates, pallets etc.
[Link]
Decimal
[Link]
[Link] Unit of measure for gross weight.
String LBS
[Link] MUST BE IN LBS.
The weight of the pallet or
[Link]
Object packaging used to ship a
[Link]
commodity.
[Link]
Decimal Tare weight measurement
[Link]
[Link] Unit of measurement for tare
String LBS
[Link] weight. MUST BE IN POUNDS
[Link]
Object Charge for the commodity
[Link]
[Link] Charge type code for the
String
[Link] commodity
[Link] Sequence number for the
Integer
[Link] commodity charge
[Link] Charge code for the commodity
String
[Link] charge
P a g e 42 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link]
Object
[Link]
[Link]
Decimal
[Link]
[Link]
[Link] String ISO 3 Letter Currency codes
d
[Link] Minimum charge indicator code for
Boolean
[Link] the commodity
[Link] Maximum charge indicator code
Boolean
[Link] for the commodity
[Link]
Object *** not used ***
[Link]
[Link]
Indicates calculation method: spot
[Link] String
quote or rate-based
dTypeCd
[Link]
Integer *** not used ***
[Link]
[Link]
[Link] String *** not used ***
OM
[Link]
[Link] Decimal Per unit rate of the commodity
te
[Link]
[Link] String *** not used ***
teEffDate
[Link]
[Link] Object
nfo
[Link] Currency Code in standard format
[Link] String e.g. USD. The exchange rate is to
cyCd convert from this currency.
[Link] Currency Code in standard format
[Link] String e.g. USD. The exchange rate is to
[Link] convert to thi s currency.
[Link] Currency code that is the basis for
[Link]. both the from and to conversions.
String
.[Link] For example - from SEK to USD
CrncyCd and from USD to EUR
[Link] The exchange rate to convert
[Link] String amount given in fromCrncyCd to
[Link] toCrncyCd.
[Link]
The dates on which this exchange
[Link] String
rate is effective.
[Link]
P a g e 43 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link]
[Link] String The source of the exchange rate
[Link]
[Link]
[Link] Decimal
eFactor
[Link]
String *** not used ***
[Link]
[Link]
String *** not used ***
[Link]
[Link]
Object *** not used ***
[Link]
[Link]
String *** not used ***
[Link]
[Link]
[Link] String *** not used ***
scr
[Link]
[Link] String *** not used ***
peCd
[Link]
Object Volume of the commodity
[Link]
[Link]
Decimal Volume measurement
[Link]
[Link]
String CFT Volume unit of measure
[Link]
[Link] String
[Link]
String
[Link]
[Link]
String
[Link]
[Link]
String
d
[Link].bill2Part
Object
y
[Link].bill2Part
String Database key for customer
[Link]
[Link].bill2Part
String Business key for customer
[Link]
[Link].bill2Part
Object
[Link]
[Link].bill2Part
String *** not used ***
[Link]
[Link].bill2Part
String *** not used ***
[Link]
P a g e 44 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link].bill2Part
String *** not used ***
[Link]
[Link].bill2Part
String *** not used ***
[Link].addressLine1
[Link].bill2Part
String *** not used ***
[Link].addressLine2
[Link].bill2Part
String *** not used ***
[Link]
[Link].bill2Part
String City name for Mexico city
[Link]
[Link].bill2Part
String *** not used ***
[Link]
[Link].bill2Part
String *** not used ***
[Link]
[Link].bill2Part
String Postal code for US or CA address
[Link]
[Link].bill2Part This is a 4 digit extension to US 5
String
[Link].usZip4 digit zip code.
[Link].
String Database key for customer
acctInstId
[Link].
String Business key for customer
madCd
[Link].
Object
address
[Link].
String *** not used ***
[Link]
[Link].
String *** not used ***
[Link]
[Link].
String *** not used ***
[Link]
[Link].
String *** not used ***
address.addressLine1
[Link].
String *** not used ***
address.addressLine2
[Link].
String *** not used ***
[Link]
[Link].
String City name for Mexico city
[Link]
[Link].
String *** not used ***
[Link]
[Link].
String *** not used ***
[Link]
[Link].
String Postal code for US or CA address
[Link]
[Link].
String *** not used ***
address.usZip4
P a g e 45 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link]
Object
ee
[Link]
String Database key for customer
[Link]
[Link]
String Business key for customer
[Link]
[Link]
Object
[Link]
[Link]
String *** not used ***
[Link]
[Link]
String *** not used ***
[Link]
[Link]
String *** not used ***
[Link]
[Link]
String *** not used ***
[Link].addressLine1
[Link]
String *** not used ***
[Link].addressLine2
[Link].
String *** not used ***
[Link]
[Link]
String City name of a Mexico city
[Link]
[Link]
String *** not used ***
[Link]
[Link]
String *** not used ***
[Link]
[Link]
String *** not used ***
[Link]
[Link]
String *** not used ***
[Link].usZip4
[Link]
integer *** not used ***
oConsigneeMiles
P(Prepaid)
[Link]
String or Shipment payment term code
TermCd
C(Collect)
[Link] “true” indicates the shipment
Boolean contains material that can be
leInd damaged by freezing
[Link] Set to True if there are any
Boolean
[Link] hazardous materials
[Link]
Dimensions of the commodity
[Link]
[Link]
decimal Length of the commodity
[Link]
[Link]
decimal Width of the commodity
[Link]
P a g e 46 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
[Link]
decimal Height of the commodity
[Link]
[Link]
String Unit of measure of the commodity
[Link]
[Link]
String Shipment date
tDate
Required if
shipping to
[Link]
Volume or from Shipment volume.
tVolume
Mexico or
Hawaii
[Link]
Number Volume measurement
[Link]
[Link] Volume unit of measure – this will
String CFT
[Link] be in cubic feet (CFT)
[Link]. Comments related to the rate
comment quote
[Link] Discount level used if no pricing
decimal
Level agreement was used.
[Link] Total number of pallets in the
short
t shipment.
Number of trailers required to
[Link] decimal
convey the shipment.
P a g e 47 | 72 Version 1.0
Less-Than-Truckload
Valid
Values or
Element Type Cardinality Description
Sample
Values
Delivery date as requested by the
[Link] Date
customer
Customer requested pickup date. If
[Link] Date not provided, then defaults to the
date the request was created.
Standard service transit (business)
days (excluding weekends and
[Link] Integer
holidays) to move from origin to
destination.
Earliest date by which the freight
[Link] Date should be picked up in order to
meet the requested delivery date.
Request URL:
[Link]
Response Message:
{
"code": "200",
"transactionTimestamp": 1525120373490,
"data": {
"ratequote": {
"confirmationNbr": "4833703479827",
"actlDiscountPct": 0,
"lnhChargeAmt": {
"chargeAmt": {
"amt": 0,
"currencyCd": "USD"
}
},
P a g e 48 | 72 Version 1.0
Less-Than-Truckload
"totAccessorialAmt": {
"amt": 381.72,
"currencyCd": "USD"
},
"totCharge": [
{
"amt": 2501.11,
"currencyCd": "USD"
}
],
"totDiscountAmt": {
"amt": 0,
"currencyCd": "USD"
},
"shipmentInfo": {
"accessorials": [
{
"accessorialCd": "DNC",
"currencyCd": "USD"
}
},
{
"accessorialCd": "CCS",
"accessorialDesc": "CALIFORNIA COMPLIANCE SURCHARGE",
"chargeAmt": {
"amt": 7.5,
"currencyCd": "USD"
}
},
{
"accessorialCd": "ZHM",
"accessorialDesc": "HAZARDOUS MATERIALS",
"chargeAmt": {
"amt": 33,
P a g e 49 | 72 Version 1.0
Less-Than-Truckload
"currencyCd": "USD"
}
},
{
"accessorialCd": "FSC",
"accessorialDesc": "FUEL SURCHARGE 16.10%",
"chargeAmt": {
"amt": 341.22,
"currencyCd": "USD"
}
},
{
"accessorialCd": "XLF",
"accessorialDesc": "LINEAL FOOT 959 MI X $2.21/MI",
"chargeAmt": {
"amt": 0,
"currencyCd": "USD"
}
}
],
"commodity": [
{
"dimensions": {
"length": 60,
"width": 51,
"height": 40,
"dimensionsUom": "INCH"
},
"pieceCnt": 9,
"grossWeight": {
"weight": 500,
"weightUom": "lbs"
},
"charge": {
"chargeAmt": {
"amt": 2119.39,
"currencyCd": "USD"
P a g e 50 | 72 Version 1.0
Less-Than-Truckload
},
"calcMethod": {
"perUnitRate": -1
}
},
"nmfcClass": "100.0"
}
],
"bill2Party": {
"acctInstId": "949252598"
},
"shipper": {
"address": {
"cityName": "BEVERLY HILLS",
"stateCd": "CA",
"countryCd": "US",
"postalCd": "90210"
}
},
"consignee": {
"address": {
"cityName": "PORTLAND",
"stateCd": "OR",
"countryCd": "US",
"postalCd": "97209"
}
},
"paymentTermCd": "C",
"shipmentDate": 1524726000000,
"comment": ""
}
},
"transitTime": {
"destStateCd": "OR",
"destPostalCd": "97209",
"destSicCd": "UPO",
"estdDlvrDate": 1525071600000,
P a g e 51 | 72 Version 1.0
Less-Than-Truckload
"garntInd": true,
"origPostalCd": "90210",
"origStateCd": "CA",
"origSicCd": "ULX",
"requestedPkupDate": 1524751200000,
"transitDays": 2
}
}
}
{
"code": "200",
"transactionTimestamp": 1525120586979,
"data": {
"ratequote": {
"confirmationNbr": "4833705632509",
"actlDiscountPct": 0,
"lnhChargeAmt": {
"chargeAmt": {
"amt": 0,
"currencyCd": "USD"
}
},
"totAccessorialAmt": {
"amt": 787.57,
"currencyCd": "USD"
},
"totCharge": [
{
"amt": 3831.25,
"currencyCd": "USD"
}
],
P a g e 52 | 72 Version 1.0
Less-Than-Truckload
"totDiscountAmt": {
"amt": 0,
"currencyCd": "USD"
},
"shipmentInfo": {
"accessorials": [
{
"accessorialCd": "CCS",
"accessorialDesc": "CALIFORNIA COMPLIANCE SURCHARGE",
"chargeAmt": {
"amt": 7.5,
"currencyCd": "USD"
}
},
{
"accessorialCd": "DNC",
"accessorialDesc": "DEST NOTIFICATION",
"chargeAmt": {
"amt": 10.5,
"currencyCd": "USD"
}
},
{
"accessorialCd": "ZHM",
"currencyCd": "USD"
}
},
{
"accessorialCd": "FSC",
"currencyCd": "USD"
}
P a g e 53 | 72 Version 1.0
Less-Than-Truckload
},
{
"accessorialCd": "XLF",
"accessorialDesc": "LINEAL FOOT 2238 MI X $1.36/MI",
"chargeAmt": {
"amt": 0,
"currencyCd": "USD"
}
}
],
"commodity": [
{
"dimensions": {
"length": 60,
"width": 51,
"height": 40,
"dimensionsUom": "INCH"
},
"pieceCnt": 9,
"grossWeight": {
"weight": 500,
"weightUom": "lbs"
},
"charge": {
"chargeAmt": {
"amt": 3043.68,
"currencyCd": "USD"
},
"calcMethod": {
"perUnitRate": -1
}
},
"nmfcClass": "100.0"
}
],
"shipper": {
"address": {
P a g e 54 | 72 Version 1.0
Less-Than-Truckload
"address": {
"cityName": "PERRYSBURG",
"stateCd": "OH",
"countryCd": "US",
"postalCd": "43551"
}
},
"paymentTermCd": "C",
"shipmentDate": 1524726000000,
"comment": ""
}
},
"transitTime": {
"destStateCd": "OH",
"destPostalCd": "43551",
"destSicCd": "XTO",
"estdDlvrDate": 1525330800000,
"garntInd": true,
"origPostalCd": "90210",
"origStateCd": "CA",
"origSicCd": "ULX",
"requestedPkupDate": 1524751200000,
"transitDays": 5
}
}
P a g e 55 | 72 Version 1.0
Less-Than-Truckload
5 getXpoLtlSpotQuote
This service is used to provide a XPO Less-Than-Truckload spot quote rate if available for
a single request using origin/destination zip codes, weight, class and commodity
dimensions.
P a g e 56 | 72 Version 1.0
Less-Than-Truckload
P a g e 57 | 72 Version 1.0
Less-Than-Truckload
109. Body 110. commodityLine 111. Array 112. 113. Y 114. One or more
repetitions (up to
10) of class,
weight,
dimensions, etc
115. Body 116. [Link]
117. 118.
String (3) “PLT”(Pallet),
119. Y 120. Type of packaging
Cd “SKD”(Skid), the commodity
“BDL”(Bundle), was originally
“CRT”(Carton), picked up in.
“DRM”(Drum),
“RCK”(Rack),
“TBN”(Tote)
121. Body 122. [Link]
123. Decimal
124. 125. Y 126. Weight of the
ight specified
commodity
127. Body 128. [Link]
129. Decimal
130. LBS 131. Defaults to
ightUom pounds.
132. Body 133. [Link]
134. Integer135. 1 to 9,999 136. Y 137. The number of
pieces or units of
specified
commodity
138. Body 139. [Link]
140. String (1)
141. “Y” or “N” 142. Y 143. Indicates if the
eInd packaged
commodity can be
stacked if the
height is less than
49 inches.
144. Body 145. [Link]
146. Integer147. Eg. 999.99148. Y 149. The length of the
specified
commodity
150. Body 151. [Link]
152. Integer153. Eg. 999.99154. Y 155. The width of the
specified
commodity
156. Body 157. [Link]
158. Integer159. Eg. 999.99160. Y 161. The height of the
specified
commodity
162. Body 163. [Link]
164. String 165. Eg. IN 166. 167. The uom for
nUom dimensions. Eg.
Inches
168. Body 169. [Link]
170. String 171. “50”, “55”, 172.
“60”, Y 173. The NMFC class
ss “65“,“70“,“775“, of the specified
“85“,“925“,“100“ commodity
, sequence
“110“,“125“,“15
0“, “175“,“200“,
“250“,
“300“,“400“,
“500“
174. Body 175. Reference 176. Array 177. 178. 179. Zero or more
repititions (up to
100) of reference
identifiers
P a g e 58 | 72 Version 1.0
Less-Than-Truckload
180. Body 181. reference 182. String 183. 184. 185. Will be returned in
the response
message
186. Body 187. typeCd 188. String 189. 190. 191. Will be returned in
the response
message
192. Body 193. Accessorials 194. Array 195. 196. 197.
198. Body 199. Quantity 200. Integer201. 202. 203.
204. Body 205. QuantityUom 206. String 207. 208. 209. Unit of measure
for quantity
210. Body 211. accessorialCd 212. String 213. 214. 215. Accessorial
Service charge
code
P a g e 59 | 72 Version 1.0
Less-Than-Truckload
Sample
Element Type Description
Values
[Link] String i.e. “12345” The reference type code from the spot
quote request.
Accessorials Array
accessorialDesc String Description of the accessorial charge
applied
accessorialCd String Accessorial Charge Code
chargeAmt Decimal Accessorial Charge Amount
"shipmentValue": {
{ "amt": 1000,
"currencyCd": "USD"
"requestedCurrency": "USD",
"pkupDate": "2016-01-21",
"shipperAcctId": 0,
"shipperPostalCd": "97209",
"consigneeAcctId": 0,
"consigneePostalCd": "97006",
"shipperBill2AcctId": 0,
"consigneeBill2AcctId": 0,
"thirdBill2AcctId": 0,
"serviceTypeCd": "",
"commodityLine": [
{ "pieceCnt": 3,
"packageCd": "PLT",
"stackableInd": "Y",
P a g e 60 | 72 Version 1.0
Less-Than-Truckload
"length": 48,
"width": 42,
"height": 48,
"dimensionUOM": "IN",
"grossWeight": 5700,
"grossWeightUOM": "LBS",
"nmfcClass": "60"
],
"reference": [ {
{ "reference": "",
"typeCd": ""
JSON REPLY:
{
"spotQuoteResponseDTODelegate":{
"requestDateTime":"[Link]()",
"spotQuoteNbr":"SQ2072704",
"spotQuoteEffDate":" 1453334400",
"spotQuoteExpDate":" 1453852800",
"transitDays":"1",
"rtgOrigZipCd":"97209",
"rtgDestZipCd":"97006",
"totWeightGross":"5000.0",
"totChargeAmt":"251.0",
"lnhChargeAmt":null,
"totAccessorialAmt":null,
"totFSCChargeAmt":null,
"totTaxAmt":null,
"currencyCd":"USD",
"exchangeRate":null,
"spotQuoteResponseReferenceDTO":null,
"spotQuoteResponseRateErrorsDTO":null
P a g e 61 | 72 Version 1.0
Less-Than-Truckload
6 listRateQuoteAccessorials
This service is used to get a list of valid accessorials, given an origin country and
destination country.
P a g e 62 | 72 Version 1.0
Less-Than-Truckload
Response URL:
{
"code": "200",
"transactionTimestamp": 1547577512204,
"data": {
"accessorial": [
{
"accessorialCd": "IBC",
"accessorialDesc": "IBC IN BOND TIR CARNET",
"accessorialType": "Destination"
},
{
"accessorialCd": "OLG",
"accessorialDesc": "OLG ORIG LIFTGATE SERVICE",
"accessorialType": "Origin"
},
{
"accessorialCd": "DPW",
"accessorialDesc": "DPW DEST PIER/WHARF LOAD/UNLOAD",
"accessorialType": "Destination"
},
{
"accessorialCd": "ELS",
"accessorialDesc": "ELS EXCESSIVE LENGTH SHIPMENT",
"accessorialType": "Both"
},
{
"accessorialCd": "TDC",
"accessorialDesc": "TDC TIME DATE CRITICAL/APPOINTMENT",
"accessorialType": "Both"
},
{
"accessorialCd": "CSD",
"accessorialDesc": "CSD CONSTR/UTILITY SITE DELIVERY",
"accessorialType": "Destination"
P a g e 63 | 72 Version 1.0
Less-Than-Truckload
},
{
"accessorialCd": "SRT",
"accessorialDesc": "SRT DEST PALLETIZE, SORT, SEGREGATE",
"accessorialType": "Destination"
},
{
"accessorialCd": "WHI",
"accessorialDesc": "INSIDE PKUP/DLVRY TRUCK LEVEL",
"accessorialType": "Hawaii"
},
{
"accessorialCd": "DSH",
"accessorialDesc": "DSH DEST SAT, SUN, HOLIDAY DELIVERY",
"accessorialType": "Destination"
},
{
"accessorialCd": "CIB",
"accessorialDesc": "CIB CUSTOMS INBOND U.S.",
"accessorialType": "Destination"
},
{
"accessorialCd": "WHN",
"accessorialDesc": "INSIDE PKUP/DLVRY NON-TRUCK LEVEL",
"accessorialType": "Hawaii"
},
{
"accessorialCd": "DID",
"accessorialDesc": "DID DEST INSIDE DELIVERY",
"accessorialType": "Destination"
},
{
"accessorialCd": "ZHM",
"accessorialDesc": "ZHM HAZMAT",
"accessorialType": "Origin"
},
{
"accessorialCd": "RSD",
"accessorialDesc": "RSD DEST RESIDENTIAL DELIVERY",
"accessorialType": "Destination"
},
{
"accessorialCd": "SSC",
"accessorialDesc": "SSC SINGLE SHIPMENT",
"accessorialType": "Origin"
},
{
"accessorialCd": "GUR",
"accessorialDesc": "GUR XPO LOGISTICS GUARANTEED!",
"accessorialType": "Both"
},
{
"accessorialCd": "OSH",
"accessorialDesc": "OSH ORIG SAT, SUN, HOLIDAY PICKUP",
"accessorialType": "Origin"
},
{
"accessorialCd": "DCF",
"accessorialDesc": "DCF DEST CONTAINER FREIGHT STATION",
"accessorialType": "Destination"
},
{
"accessorialCd": "DMS",
"accessorialDesc": "DMS GOVT AIRPORT MINE GAS OIL DLVRY",
"accessorialType": "Destination"
},
{
"accessorialCd": "DAH",
"accessorialDesc": "DAH AFTER BUSINESS HOURS DELIVERY",
"accessorialType": "Destination"
},
{
"accessorialCd": "RSO",
"accessorialDesc": "RSO ORIG RESIDENTIAL PICKUP",
P a g e 64 | 72 Version 1.0
Less-Than-Truckload
"accessorialType": "Origin"
},
{
"accessorialCd": "OSS",
"accessorialDesc": "OSS ORIG PALLETIZE, SORT, SEGREGATE",
"accessorialType": "Origin"
},
{
"accessorialCd": "PED",
"accessorialDesc": "PED DEST EXHIBITION SITES DELIVERY",
"accessorialType": "Destination"
},
{
"accessorialCd": "OCF",
"accessorialDesc": "OCF ORIG CONTAINER FREIGHT STATION",
"accessorialType": "Origin"
},
{
"accessorialCd": "OIP",
"accessorialDesc": "OIP ORIG INSIDE PICKUP",
"accessorialType": "Origin"
},
{
"accessorialCd": "DNC",
"accessorialDesc": "DNC DEST NOTIFICATION",
"accessorialType": "Destination"
},
{
"accessorialCd": "PEO",
"accessorialDesc": "PEO ORIG EXHIBITION SITES PICKUP",
"accessorialType": "Origin"
},
{
"accessorialCd": "DLG",
"accessorialDesc": "DLG DEST LIFTGATE SERVICE",
"accessorialType": "Destination"
},
{
"accessorialCd": "OCS",
"accessorialDesc": "OCS CONSTR/UTILITY SITE PICKUP",
"accessorialType": "Origin"
}
]
}
}
Response Message:
{
"code": "200",
"transactionTimestamp": 1547585543008,
"data": {
"accessorial": [
{
"accessorialCd": "SSC",
"accessorialDesc": "SSC SINGLE SHIPMENT",
"accessorialType": "Origin"
},
{
P a g e 65 | 72 Version 1.0
Less-Than-Truckload
"accessorialCd": "RSD",
"accessorialDesc": "RSD DEST RESIDENTIAL DELIVERY",
"accessorialType": "Destination"
},
{
"accessorialCd": "OLG",
"accessorialDesc": "OLG ORIG LIFTGATE SERVICE",
"accessorialType": "Origin"
},
{
"accessorialCd": "RSO",
"accessorialDesc": "RSO ORIG RESIDENTIAL PICKUP",
"accessorialType": "Origin"
},
{
"accessorialCd": "OSS",
"accessorialDesc": "OSS ORIG PALLETIZE, SORT, SEGREGATE",
"accessorialType": "Origin"
},
{
"accessorialCd": "DRA",
"accessorialDesc": "DRA BORDER CROSSING SERVICE",
"accessorialType": "Both"
},
{
"accessorialCd": "CSD",
"accessorialDesc": "CSD CONSTR/UTILITY SITE DELIVERY",
"accessorialType": "Destination"
},
{
"accessorialCd": "SRT",
"accessorialDesc": "SRT DEST PALLETIZE, SORT, SEGREGATE",
"accessorialType": "Destination"
},
{
"accessorialCd": "OIP",
"accessorialDesc": "OIP ORIG INSIDE PICKUP",
"accessorialType": "Origin"
},
{
"accessorialCd": "WHI",
"accessorialDesc": "INSIDE PKUP/DLVRY TRUCK LEVEL",
"accessorialType": "Hawaii"
},
{
"accessorialCd": "DNC",
"accessorialDesc": "DNC DEST NOTIFICATION",
"accessorialType": "Destination"
},
{
"accessorialCd": "DSH",
P a g e 66 | 72 Version 1.0
Less-Than-Truckload
P a g e 67 | 72 Version 1.0
Less-Than-Truckload
P a g e 68 | 72 Version 1.0
Less-Than-Truckload
242. 1.0 243. 6/07/2017 244. Included the XpoLtlSpotQuote operation (was previously
considered a unique API).
245. 1.0 246. 6/23/2017 247. XpoLtlSpotQuote: corrected the maximum amount of
commodityLine items to 10 (changed from 100). indicated the
valid range for [Link] is
[Link] is 1 – 9,999
248. XpoLtlRateQuote: indicated the valid range for
[Link] is 1 – 9,999
253. 1.0 254. 7/31/2017 Changed the format of the Endpoint Resource Value section
P a g e 69 | 72 Version 1.0
Less-Than-Truckload
263. 1.0 264. 3/1/2018 • The following spot quote request elements are mandatory (though 0
may be entered if the account ID is not available)
o consigneeAcctId
o shipperBill2AcctId
o thirdBill2AcctId
• Production endpoint changed
• Changed the Spot Quote request sample
• getLtlXpoRateQuote request –
o changed [Link] to
[Link]
o [Link] changed to mandatory
o [Link] – removed
mandatory requirement
269. 1.0 270. 5/04/2018 271. * Added dimension input for commodities, in order to calculate
lineal foot and excessive length accessorials. Note that these
must be entered as inches; and unit of measure must be
designated in inches. Applies to getXpoLtlRateQuote and
getXpoLtlRateQuoteDetails.
272. * Added transit time estimation in return from
getXpoLtlRateQuote and getXpoLtlRateQuoteDetails
273. * GetXpoLtlRateQuoteResp: Moved
[Link] to
[Link]
274. * [Link] – previously
LBS or KG were allowed; now only LBS are allowed.
275. * [Link] – previously
LBS or KG were allowed; now only LBS are allowed.
276. * [Link] -–
previously LBS or KG were allowed; now only LBS are allowed.
277. * [Link] -–
previously LBS or KG were allowed; now only LBS are allowed.
278. * [Link]
– previously LBS or KG were allowed; now only LBS are
allowed.
279. * [Link] -–
previously LBS or KG were allowed; now only LBS are allowed.
280. * [Link]
– previously LBS or KG were allowed; now only LBS are
allowed.
P a g e 70 | 72 Version 1.0
Less-Than-Truckload
281. * [Link] –
previously LBS or KG were allowed; now only LBS are allowed.
282. * grossWeight UOM – changed sample code value from “LB” to
“LBS:”
283. * [Link] –
changed this to ONLY accept CFT.
284. 1.0 285. 6/21/2018 286. Added to business rules that border crossing service is required
when crossing the US-Mexico border. If you wish to have XPO
Logistics perform the service, please enter a DRA accessorial
code.
287. GetXpoLtlSpotQuote – removed “Exhibition sites cannot be used
with spot quote” business rule.
288. 1.0 289. 7/11/2018 1. Deleted [Link] input from the input and response
of [Link] of this is deprecated by the GUR
accessorial.
2. Deleted [Link] from the
response of getXpoLtlRateQuote.
3. Removed garntInd:true from getXpoLtlRateQuote samples.
4. Fixed some object structural typos in [Link]
5. Added a note to use GUR to request guaranteed shipment
accessorial.
12. 1.0 13. 11/21/2018 14. Indicated that maximum total weight for any shipment is 99,999
pounds.
15. 1.0 16. 2/15/2019 17. Added the listRateQuoteAccessorials service; removed the
Accessorials appendix.
P a g e 71 | 72 Version 1.0
Less-Than-Truckload
33. 1.0 34. 5/26/2021 35. Added list of mutually exclusive conditions
P a g e 72 | 72 Version 1.0