BagJourney API

The BagJourney API can be tested from the following developer common tools:

  1. SOAP UI Tool
  2. curl Command in Linux
  3. wget Command in Linux

SOAP UI Tool

Following is the snapshot of the SOAP UI tool. The URL is constructed based on the above details. The API key should be put in the header section as shown below, with the header name as api_key and the value will be the api key value.

Key Example
https://bagjourney.sita.aero/baggage/history/v1.0/tag/0125243458/flightdate/2014-10-21 Get Bag tag events for tag for 0125243458 for October 21, 2014

Expected Result
SOAP UI Tool

curl Command in Linux

curl -k -H "api_key: 848c4e02011114c626cae31b20fe10f1" https://bagjourney.sita.aero/baggage/history/v1.0/tag/0125243458/flightdate/2014-10-21


Expected Result
{"success":true,"bag":{"bagtag":"0125243458","passenger_first_name":"CLAUDEMR","passenger_last_name":"GROULX"},"events":[{"airport":"ORD","event_code":"EXPECTED","event_desc":"Bag Expected","flight_info":{"outbound":{"date":"21OCT","dest_airport":"YYZ","flight":"9982","airline":"AC"},"inbound":{"date":"21OCT","flight":"9924","airline":"US","orig_airport":"LAX"},"onward":[{"date":"21OCT","dest_airport":"YYC","flight":"9902","airline":"AC"}]},"frequent_flyer":"BD662503","local_date_time":"2014-10-21T12:40:52.160-05:00","passenger_status":"S","pnr":"8ZZX3YS","utc_date_time":"2014-10-21T17:40:52.160Z"}]}

wget Command in Linux

wget --header='api_key:848c4e02011114c626cae31b20fe10f1' https://bagjourney.sita.aero/baggage/history/v1.0/tag/0125243458/flightdate/2014-10-21--no-check-certificate -qO-

Expected Result
{"success":true,"bag":{"bagtag":"0125243458","passenger_first_name":"CLAUDEMR","passenger_last_name":"GROULX"},"events":[{"airport":"ORD","event_code":"EXPECTED","event_desc":"Bag Expected","flight_info":{"outbound":{"date":"21OCT","dest_airport":"YYZ","flight":"9982","airline":"AC"},"inbound":{"date":"21OCT","flight":"9924","airline":"US","orig_airport":"LAX"},"onward":[{"date":"21OCT","dest_airport":"YYC","flight":"9902","airline":"AC"}]},"frequent_flyer":"BD662503","local_date_time":"2014-10-21T12:40:52.160-05:00","passenger_status":"S","pnr":"8ZZX3YS","utc_date_time":"2014-10-21T17:40:52.160Z"}]}