Transit Time Web Service
A. Duie Pyle provides shipment transit times via the MyPyle web site as a screen display or as a web service. Any customer with a MyPyle login may determine a shipment transit time by sending a specially formatted URL and receiving the transit information as either a JSON object or an XML document.
Example cURL Request
curl -G https://www.aduiepyle.com/publicdocs/LTLTransitTimeXML1 \
-d MyPyleID="MyPyleID" \
-d orig_zip="zip" \
-d dest_zip="zip" \
-d pickup_date="date" \
-d json=1
Parameters
- Name
MyPyleID
- Description
This parameter contains your MyPyle login which is normally your E-mail address. This is a required parameter. Example:
?MyPyleID=duie@aduiepyle.com
- Name
orig_zip
- Description
This parameter contains the originating zip code. Only the standard five digit United States zip code or the six character Canadian postal code should be used. Example:
&orig_zip=12345
- Name
dest_zip
- Description
This parameter contains the destination zip code. Only the standard five digit United States zip code or the six character Canadian postal code should be used. Example:
&dest_zip=98765
- Name
pickup_date
- Description
This parameter contains the pickup date. This is an optional parameter and if not passed then the current date will be used. Example:
&pickup_date=2019-12-02
- Name
json
- Description
Return the result as a JSON object. The default is an XML document. Example:
json=1
Examples
The following example will request a transit time XML document from Exton, PA (19341) to Montpelier, VT (05602).
Example cURL Request
curl -G https://www.aduiepyle.com/publicdocs/LTLTransitTimeXML1 \
-d MyPyleID="aduiepyle@aduiepyle.com" \
-d orig_zip=19341 \
-d dest_zip=05602 \
-d pickup_date="2019-12-02" \
-d json=1
Example Response
{
"originZip": "08016",
"originTerminal": "WESTAMPTON, NJ",
"originCarrier": "A. Duie Pyle",
"destZip": "19381",
"destTerminal": "WEST CHESTER, PA",
"destCarrier": "A. Duie Pyle",
"pickupDate": "2019-12-02T00:00:00",
"serviceDays": 1,
"deliveryDate": "2019-12-03T00:00:00",
"PylePriority": {
"pps10am": "YES",
"pps12pm": "YES",
"pps5pm": "YES"
},
"queryDatetime": "2019-11-27T09:01:47.0312852-05:00",
"errors": null
}
Please note that EDI Services and Web Services are not available between 12 Midnight and 12:15 AM Eastern Time during our server maintenance window.
All customers using the Web Services should sign up for Web Services Notification to be informed whenever one of the Web Service interfaces is updated.
Revision 4 – 11/27/2019