Use this API to retrieve your status events associated with your IBC account in batch mode. You can receive the data as a JSON object, an array of strings or download a CSV file directly.
For Air AMS Events use this URL:
For IBC Pactrak Events use this URL (when IBC is your final mile provider):
The requested time frame of events is between start_dt and end_dt parameters, these should always be in the past!.
NOTE: Maximum time frame is 8 hours
Recommendation is to use 1 connection per attempt and cover a specified time fram from NOW back to 10, 15, 30, 45 minutes or 1, 4, 6, 8 hours in past!
Once you have covered that time period you don't need to retrieve that time frame again!
Examples date parameters for a single day using 3 separate connections: (8 hour intervals)
request #1: start_dt="2024-01-01 00:00"&end_dt="2024-01-01 08:00"
request #2: start_dt="2024-01-01 08:00"&end_dt="2024-01-01 16:00"
request #3: start_dt="2024-01-01 16:00"&end_dt="2024-01-02 00:00"
{
"hostname": "",
"message": "",
"developer_message": "",
"code": 200,
"is_error": false,
"result": [
{
"event_date_time": "YYYY-MM-DD HH:MM", /* time the event is reported */
"ibc_id": "0", /* internal id for reference */
"track_number": "0", /* ibc_track number */
"full_track": "0", /* if track number is langer than 11 chars should appear here */
"reference": "0", /* reference number reported to ibc */
"vendor_reference": "0", /* reference number reported to ibc */
"station": "MIA", /* IBC station reported */
"event_code": "_A", /* event code - see event code list */
"event_description": "AAMS DATA RECEIVED", /* event description */
},
],
"execution_time": 0
}
the "result" key will contain an array of strings if 'as=text' is passed as a URL parameter, [ []string ]
"result": [
["event_date_time", "ibc_id", "track_number", "full_track", "reference",
"vendor_reference", "station", "event_code", "event_description"],
["2023-01-01 10:00", "111111", "1126464", "AB1126464", "", "", "MIA", "_A", "AAMS DATA RECEIVED"],
["2023-01-01 10:00", "111112", "1126465", "AB1126465", "", "", "MIA", "_A", "AAMS DATA RECEIVED"],
.....
]
Code | Description |
---|---|
_A | Data Received |
CC | Cleared Customs |
GR | Gateway Received |
_P | Delivered to Last Mile Provider |
Code | Description |
---|---|
_A | Gatewayed at Station |
_B | Bagged at Station |
_M | Prepared for Outbound |
OF | Out for Delivery |
_P | Delivered |
For a full list of IBC events download this resource.
sample to retrieve a file using the start and end date and store the output locally to 'output.csv'
sample to retrieve a file using the start and end date and store the output locally to 'output.csv'
Alternatively you can also encode the quote marks ( " ) as '%22' and space ( ) as '%20' and add them directly to URL ex:
start_dt=%222023-12-27%2016:00%22&end_date=....
event_date_time, ibc_id, track_number, full_track, reference, vendor_reference, station, event_code, event_description
2023-01-01 10:00, 111111, 1126464, AB1126464, , , MIA, _A, AAMS DATA RECEIVED
2023-01-01 10:00, 111112, 1126465, AB1126465, , , MIA, _A, AAMS DATA RECEIVED
Station to Time Zone Reference
Station | Location | Time Zone | Gmt Offset | Daylight |
---|---|---|---|---|
LAX | Los Angeles CA, US | PST | -8 | -7 |
DFW | Dallas TX, US | CST | -6 | -5 |
ORD | Chicago IL, US | CST | -6 | -5 |
NYC | New York NY, US | EST | -5 | -4 |
MIA | Miami FL, US | EST | -5 | -4 |
Local times change at 2:00 a.m. EST to 3:00 a.m. EDT on the second Sunday in March, and return from 2:00 a.m. EDT to 1:00 a.m. EST on the first Sunday in November