Skip to content

Instantly share code, notes, and snippets.

@joedeveloper
Last active February 1, 2016 04:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joedeveloper/be9f8c6b6b746eb1bb86 to your computer and use it in GitHub Desktop.
Save joedeveloper/be9f8c6b6b746eb1bb86 to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "/",
"type": "object",
"description": "Results returned by WIN UAT API for successful AWBno searches",
"properties": {
"AirlineName": {
"id": "AirlineName",
"type": "string",
"description": "Human Readable Airline name.",
"sample": "Lufthansa Cargo"
},
"AirlinePrefix": {
"id": "AirlinePrefix",
"type": "string",
"description": "AWB prefix for this airline.",
"sample": "020"
},
"AwbNumber": {
"id": "AwbNumber",
"type": "string",
"description": "AWB number used to query, minus prefix.",
"sample": "41040602"
},
"RoutingDetails": {
"id": "RoutingDetails",
"type": "array",
"items": {
"id": "RoutingDetail",
"type": "object",
"properties": {
"Origin": {
"id": "Origin",
"type": "object",
"properties": {
"Code": {
"id": "Code",
"type": "string",
"description": "Location Code"
},
"Name": {
"id": "Name",
"type": "string",
"description": "Long name of location"
},
"DepartureTime": {
"id": "DepartureTime",
"type": "string"
"description": "Time of Departure, local to departure location."
},
"Status": {
"id": "Status",
"type": "string",
"description": "Actual Time, Scheduled Time or Estimated Time"
}
},
"required": [
"Code",
"Name",
"DepartureTime",
"Status"
]
},
"Destination": {
"id": "Destination",
"type": "object",
"properties": {
"Code": {
"id": "Code",
"type": "string",
"description": "Location code"
},
"Name": {
"id": "Name",
"type": "string",
"description": "Long name of location"
},
"ArrivalTime": {
"id": "ArrivalTime",
"type": "string",
"description": "Time of Arrival, local to arrival location."
},
"Status": {
"id": "Status",
"type": "string",
"description": "Actual Time, Scheduled Time or Estimated Time"
}
}
},
"Transport": {
"id": "Transport",
"type": "object",
"properties": {
"Class": {
"id": "Class",
"type": "string",
"description": "class of transport: Air, Sea, Road, Rail"
},
"TransportNumber": {
"id": "TransportNumber",
"type": "string",
"description": "Transport Identifier",
"sample": "JL0708"
},
"Carrier": {
"id": "Carrier",
"type": "object",
"properties": {
"Code": {
"id": "Code",
"type": "string",
"description": "Carrier responsible for transport leg",
"sample": "JL"
},
"Name": {
"id": "Name",
"type": "string",
"description": "Carrier name",
"sample": "JAL Cargo"
},
"Prefix": {
"id": "Prefix",
"type": "string",
"description": "Carrier code prefix",
"sample": "131"
}
}
}
}
},
"Cargo": {
"id": "Cargo",
"type": "object",
"properties": {
"Weight": {
"id": "Weight",
"type": "object",
"properties": {
"UOM": {
"id": "UOM",
"type": "string"
},
"Value": {
"id": "Value",
"type": "string"
}
}
},
"NumberOfPieces": {
"id": "NumberOfPieces",
"type": "string"
}
}
}
},
"required": [
"Origin",
"Destination",
"Transport",
"Cargo"
]
},
"required": [
"RoutingDetail"
]
},
"Statuses": {
"id": "Statuses",
"type": "array",
"description": "This is an array of Status updates, grouped by Airport.",
"items": {
"id": "0",
"type": "object",
"description": "",
"properties": {
"AirportCode": {
"id": "AirportCode",
"type": "string",
"description": "Airport Code associated with contained events.",
"sample": "BKK"
},
"Details": {
"id": "Details",
"type": "array",
"description": "Array of Events for this Location.",
"items": {
"id": "0",
"type": "object",
"description": "Event Object.",
"properties": {
"Code": {
"id": "Code",
"type": "string",
"description": "Event Code",
"sample": "DEP"
},
"type": "string",
"description": "Description of Event",
"sample": "Goods departed"
},
"FlightNumber": {
"id": "FlightNumber",
"type": "string",
"description": "Flight associated with this event, if applicable.",
"sample": "OS026 "
},
"StatusDateTime": {
"id": "StatusDateTime",
"type": "string",
"description": "Local Datetime associated with event, regardless of type.",
"sample": "2015-09-08T23:45:00.000"
},
"NumberOfPieces": {
"id": "NumberOfPieces",
"type": "string",
"description": "Count of pieces of cargo",
"sample": "6"
},
"Location": {
"id": "Location",
"type": "string",
"description": "Location of Event",
"sample": "BKK"
},
"Weight": {
"id": "Weight",
"type": "object",
"description": "Object describing total weight of cargo",
"properties": {
"UOM": {
"id": "UOM",
"type": "string",
"description": "Unit of measure for weight KG / LB",
"sample": "KG"
},
"Value": {
"id": "Value",
"type": "string",
"description": "Weight Value",
"sample": "33.0"
}
}
},
"DepartureInfo": {
"id": "DepartureInfo",
"type": "object",
"description": "Departure information",
"properties": {
"DateTime": {
"id": "DateTime",
"type": "string",
"description": "Datetime, Local to Departure location",
"sample": "2015-09-08T23:45:00.000"
},
"Type": {
"id": "Type",
"type": "string",
"description": "Whether Datetime is planned or actual.",
"sample": "Actual Time"
}
}
},
"PortOfDeparture": {
"id": "PortOfDeparture",
"type": "object",
"description": "Location of Departure.",
"properties": {
"Code": {
"id": "Code",
"type": "string",
"description": "Location Code",
"sample": "BKK"
}
}
},
"PortOfArrival": {
"id": "PortOfArrival",
"type": "object",
"description": "Arrival information.",
"properties": {
"Code": {
"id": "Code",
"type": "string",
"description": "Code of Arrival location.",
"sample": "VIE"
}
}
},
"ArrivalInfo": {
"id": "ArrivalInfo",
"type": "object",
"description": "Arrival Information.",
"properties": {
"DateTime": {
"id": "DateTime",
"type": "string",
"description": "Datetime, local to place of Arrival.",
"sample": ""
},
"Type": {
"id": "Type",
"type": "string",
"description": "Whether Datetime is Actual or Planned",
"sample": ""
}
}
},
"Description": {
"id": "Description",
"type": "string",
"description": "Description details in case of discrepancy cases",
"sample": ""
},
"OtherControlInfo": {
"id": "OtherControlInfo",
"type": "array",
"description": "Other Customs, Security and Regulatory Control Information",
"items": {}
},
"ReceivedStatus": {
"id": "ReceivedStatus",
"type": "object",
"description": "Extra information regarding the status received.",
"properties": {
"Carrier": {
"id": "Carrier",
"type": "string",
"description": "Name of airline receiving the cargo",
"sample": ""
},
"Density": {
"id": "Density",
"type": "object",
"description": "Density of cargo",
"properties": {
"Group": {
"id": "Group",
"type": "string",
"description": "Code indicating density group",
"sample": ""
},
"Indicator": {
"id": "Indicator",
"type": "string",
"description": "Code indicating approximate density of goods",
"sample": ""
}
}
},
"From": {
"id": "From",
"type": "string",
"description": "Name of entity from whom cargo received.",
"sample": ""
},
"Received": {
"id": "Received",
"type": "string",
"description": "Name of entity accepting the cargo",
"sample": ""
},
"Volume": {
"id": "Volume",
"type": "object",
"description": "Volume of cargo.",
"properties": {
"UOM": {
"id": "UOM",
"type": "string",
"description": "Unit of Volume",
"sample": ""
},
"Value": {
"id": "Value",
"type": "null",
"description": "Volumetric weight of the cargo",
"sample": null
}
}
}
}
},
"ReferenceNumber": {
"id": "ReferenceNumber",
"type": "string",
"description": "Transfer Reference Number in case of transfer scenarios",
"sample": ""
},
"ULD": {
"id": "ULD",
"type": "array",
"description": "ULD Information",
"items": {}
}
}
}
}
}
}
},
"required": [
"AirlineName",
"AirlinePrefix",
"AwbNumber",
"Statuses"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment