User StoriesConsolidation of Shipments

Consolidation of Shipments

The user may want to consolidate multiple shipments under one HAWB. The consolidation is performed by creating a House Air Waybill object and referencing the shipments that should be consolidated. If later on other shipments need to be added or detached from the HAWB, then update the HAWB with the PUT endpoint.

POST /houseAirWaybill - Payload:

{
  "houseAirWaybillNumber": "19998887774",
  "airportDestination": "JFK",
  "airportOrigin": "FRA",
  "shipments": [
    {
      "shipmentId": "ab2634cd-1450-4cc4-9f9b-c7e8b7d3af9b"
    },
    {
      "alternativeReference": "F-679421356"
    }
  ]
}

The shipments are either referenced by “shipmentId” or the “alternativeReference”. In the above example two shipments are consolidated under the HAWB number “19998887774”.