LTL Help Center

XML

XML (extensible markup language) is a flexible, text-based data-formatting method of marking data (e.g., a shipment status report) in such a way in which it can be easily read, converted and understood by data systems used with other applications and computer systems.

XML is commonly used in enterprise application integration, linking legacy systems to newer systems, such as intranets and websites. XML makes it easy to send data from any application to any Internet or desktop application (application-to-application integration). XPO’s customers can use their own front-end applications and seamlessly access our rating, tracking and reporting capabilities.

Applications currently available include:

  • Tracking (by PRO number, as well as customer reference numbers)
  • Rating (generic and customer-specific, including transit time calculator)
  • Bill of lading with optional pickup request
  • Manifests
  • Service center lookup
  • Imaging
  • Tracking history

XPO is helping customers integrate the tracking and rating services with their systems, verifying user accounts on the site and sending technical staff the interface guidelines (and sample code if needed) to make this happen.

INTERFACE GUIDELINES AND SAMPLE CODE

XML Test Harnesses

Bill of Lading Generic File a bill of lading with an optional pickup request. (US/CA)
  Customer-specific File a bill of lading using a XPO account number. (US/CA)
Image Retrieval Generic Retrieve images of delivery receipts, BOLs, etc. in PDF and other image formats.
Rate Quote Generic Get a generic rate quote with XPO transit time. (US/CA)
  Generic (Puerto Rico) Get a generic rate quote with XPO transit time. (US/CA with Puerto Rico origin or destination)
  Generic (Hawaii) Get a generic rate quote with XPO transit time. (US/CA with Hawaii origin or destination)
  Customer-specific Get a rate quote with XPO transit time, based upon your pricing agreement with XPO. (US/CA)
Service Center Details View Service Center Details for a given postal code/country or Service Center Code (SIC).
Tracking Appointment Schedule View appointment schedule details for a specific shipment.
  Manifest View your manifest of shipment statuses for your XPO account number.
  Reference Numbers View all your reference numbers for a specific shipment.
  Shipment History View event history for a specific shipment.
  Shipment Status Track your shipment status.

*Note: The testmode attribute on the root element of the BOL request defaults to "Y," if not explicitly entered, to ensure that you do not generate real bills of lading when you are only testing the interface. For real business, make sure you set the testmode attribute to "N."

XML Interface Code Samples

  Bill of Lading Image Retrieval Rate Quote Service Center Track­ing
ASP ASP   ASP ASP ASP
C#.net C#.net C#.net C#.net C#.net C#.net
Cold­Fusion Cold­Fusion   Cold­Fusion Cold­Fusion Cold­Fusion
Java Java Java Java Java Java
JSP JSP   JSP JSP JSP
Perl Perl Perl Perl Perl Perl
PHP4 PHP4 PHP4 PHP4 PHP4 PHP4
PHP5 PHP5 PHP5 PHP5 PHP5 PHP5
Python Python Python Python Python Python

XML SCHEMA DOCUMENTATION AND VALIDATION TESTING

Test your XML documents for XSD schema validity here.

See a list of shipment status codes and definitions.

XML SCHEMA LIBRARY/XSD

Bill of Lading
Request
Response

Image Retrieval
Request
Response

Rate Quote
Request
Response

Shipment Status (Track by PRO#)
Request
Response

Shipment Reference Numbers (get all by PRO#)
Request
Response

Shipment History (retrieve by PRO#)
Request
Response

Others
Invoice
StateList

Type Schemas
BillOfLadingType
ComponentTypes
CustomerTypes
GenericTypes
LocationTypes
ServiceCenterTypes
ShipmentTypes

Questions? Contact us