{
  "metadata": {
    "source": "document-validation",
    "messageType": "consignment-main",
    "timeStamp": "2019-01-02T13:14:15.6780000+01:00"
  },
  "consignments": [
    {
      "header": {
        "events": [
          "documentApproved",
          "bookingConfirmedChargeable"
        ],
        "id": "IF_789012070_1",
        "businessUnitCode": "IF",
        "cancelled": false,
        "allTasksDone": true
      },
      "planDepartment": {
        "name": "International Transport"
      },
      "charter": {
        "number": "123456",
        "name": "Worlds Best Charters",
        "contact": {
          "name": null,
          "emailDetails": [
            {
              "type": "normal",
              "value": "something@worldsbestcharters.com"
            }
          ],
          "telephoneDetails": [
            {
              "type": "normal",
              "value": "+31655523456"
            }
          ],
          "faxNumber": "+31655534567"
        },
        "code": null
      },
      "costsAndCharges": [
        {
          "amount": 669,
          "currencyCode": "EUR",
          "invoiceReference": "300000001"
        }
      ],
      "activities": [
        {
          "id": "IF_0AXH4watMGHcf59qYSM",
          "sequenceNumber": 1,
          "type": "loading",
          "party": {
            "name": "Great Factory Inc.",
            "number": null,
            "code": "BUD GREA",
            "address": {
              "locationCode": "BUD",
              "name1": "Great Factory Inc.",
              "line1": "Great Factory Street 55",
              "city": "Budapest Airport",
              "postalCode": "1234",
              "countryName": "Hungary",
              "countryCode": "HU",
              "longitude": 19.12345,
              "latitude": 47.1245
            },
            "contact": {
              "emailDetails": [
                {
                  "type": "normal",
                  "value": "info@greatfactoryinc.com"
                }
              ]
            },
            "remarks": null
          },
          "dateTimes": {
            "start": "2025-03-11T19:00:00+01:00",
            "end": "2025-03-11T20:00:00+01:00",
            "opening": "2025-03-11T19:00:00+01:00",
            "closing": "2025-03-11T19:00:00+01:00"
          },
          "pulledUnit": {
            "number": null,
            "preDefined": false,
            "licensePlate": null
          },
          "freightUnits": [
            
          ],
          "shipmentNumbers": [
            "100000000001",
            "100000000002"
          ]
        },
        {
          "id": "IF_xWRsLslx92NUqQhDS8z",
          "sequenceNumber": 2,
          "type": "waypoint",
          "party": {
            "name": "Place to wait",
            "number": null,
            "code": "OTOPWAIT",
            "address": {
              "locationCode": "ROOTP",
              "name1": "Place to wait",
              "line1": "Place to wait Road 69",
              "city": "Otopeni",
              "postalCode": "5678",
              "countryName": "Romania",
              "countryCode": "RO",
              "longitude": 26.655,
              "latitude": 44.988
            },
            "contact": {
              
            },
            "remarks": null
          },
          "dateTimes": {
            "start": "2025-03-12T20:37:00+01:00",
            "end": "2025-03-12T21:37:00+01:00",
            "opening": "2025-03-12T20:37:00+01:00",
            "closing": "2025-03-12T21:37:00+01:00"
          },
          "pulledUnit": {
            "number": null,
            "preDefined": false,
            "licensePlate": null
          },
          "freightUnits": [
            
          ],
          "shipmentNumbers": [
            
          ]
        },
        {
          "id": "IF_ilU4qgWld04rqRjY4Jv",
          "sequenceNumber": 3,
          "type": "unloading",
          "party": {
            "name": "Small Shop and Son",
            "number": null,
            "code": "OTOPSMAL",
            "address": {
              "locationCode": "ROOTP",
              "name1": "Small Shop and Son",
              "line1": "Small Shop Street 33",
              "city": "Otopeni",
              "postalCode": "5678",
              "countryName": "Romania",
              "countryCode": "RO",
              "longitude": 26.555,
              "latitude": 44.888
            },
            "contact": {
              
            },
            "remarks": null
          },
          "dateTimes": {
            "start": "2025-03-12T20:37:00+01:00",
            "end": "2025-03-12T21:37:00+01:00",
            "opening": "2025-03-12T20:00:00+01:00",
            "closing": "2025-03-12T20:00:00+01:00"
          },
          "pulledUnit": {
            "number": null,
            "preDefined": false,
            "licensePlate": null
          },
          "freightUnits": [
            
          ],
          "shipmentNumbers": [
            "100000000001",
            "100000000002"
          ]
        }
      ],
      "shipments": [
        {
          "number": "100000000001",
          "order": {
            "departmentCode": "100"
          },
          "creationDateTime": "2025-03-10T12:12:00+01:00",
          "reference": "SHIPMENT-0001",
          "requirements": {
            "freightUnitType": "unspecified",
            "roadTrain": false,
            "dangerousCargo": false,
            "urgent": false,
            "heater": false,
            "cooler": false,
            "exclusive": false,
            "maximumTemperature": null,
            "minimumTemperature": null,
            "pharmaceuticals": false
          },
          "security": {
            "secured": false,
            "level": null
          },
          "transportInstructions": "2039 kg, 10 cbm; ;",
          "generalInstructions": null,
          "measurement": {
            "grossWeight": null,
            "quantity": 2,
            "loadIndex": 6.4,
            "volume": null,
            "palletPlaces": 6.4,
            "volumeWeight": null
          },
          "goodsLines": [
            {
              "id": "1",
              "mark": null,
              "packageType": "planePlate",
              "packageDescription": "pallet position",
              "measurement": {
                "grossWeight": null,
                "quantity": 2,
                "loadIndex": 6.4,
                "volume": null,
                "palletPlaces": null,
                "volumeWeight": null
              },
              "goodsType": "airCargo",
              "goodsDescription": "general",
              "dimensions": {
                "length": null,
                "width": null,
                "height": 2.65
              },
              "detailLines": [
                {
                  "id": "0",
                  "mark": null,
                  "packageType": "planePlate",
                  "packDescription": null,
                  "measurement": {
                    "grossWeight": null,
                    "quantity": 2,
                    "loadIndex": 6.4,
                    "volume": null,
                    "palletPlaces": null,
                    "volumeWeight": null
                  },
                  "goodsType": "airCargo",
                  "goodsDescription": "general"
                }
              ],
              "dangerousGoods": [
                
              ]
            }
          ],
          "remarks": null,
          "originalLoading": {
            "party": {
              "name": "Great Factory Inc.",
              "number": null,
              "code": "BUD GREA",
              "address": {
                "locationCode": "BUD",
                "name1": "Great Factory Inc.",
                "line1": "Great Factory Street 55",
                "city": "Budapest Airport",
                "postalCode": "1234",
                "countryName": "Hungary",
                "countryCode": "HU",
                "longitude": 19.12345,
                "latitude": 47.1245
              },
              "contact": {
                "emailDetails": [
                  {
                    "type": "normal",
                    "value": "info@greatfactoryinc.com"
                  }
                ]
              },
              "remarks": null
            },
            "reference": null,
            "dateTimes": {
              "opening": "2025-03-11T19:00:00+01:00",
              "closing": "2025-03-11T19:00:00+01:00"
            }
          },
          "finalUnloading": {
            "party": {
              "name": "Small Shop and Son",
              "number": null,
              "code": "OTOPSMAL",
              "address": {
                "locationCode": "ROOTP",
                "name1": "Small Shop and Son",
                "line1": "Small Shop Street 33",
                "city": "Otopeni",
                "postalCode": "5678",
                "countryName": "Romania",
                "countryCode": "RO",
                "longitude": 26.555,
                "latitude": 44.888
              },
              "contact": {
                
              },
              "remarks": null
            },
            "reference": null,
            "dateTimes": {
              "opening": "2025-03-12T20:00:00+01:00",
              "closing": "2025-03-12T20:00:00+01:00"
            }
          },
          "container": null
        },
        {
          "number": "100000000002",
          "order": {
            "departmentCode": "100"
          },
          "creationDateTime": "2025-03-10T12:12:00+01:00",
          "reference": "SHIPMENT-0001",
          "requirements": {
            "freightUnitType": "unspecified",
            "roadTrain": false,
            "dangerousCargo": false,
            "urgent": false,
            "heater": false,
            "cooler": false,
            "exclusive": false,
            "maximumTemperature": null,
            "minimumTemperature": null,
            "pharmaceuticals": false
          },
          "security": {
            "secured": false,
            "level": null
          },
          "transportInstructions": "2039 kg, 10 cbm; ;",
          "generalInstructions": null,
          "measurement": {
            "grossWeight": null,
            "quantity": 2,
            "loadIndex": 6.4,
            "volume": null,
            "palletPlaces": 6.4,
            "volumeWeight": null
          },
          "goodsLines": [
            {
              "id": "1",
              "mark": null,
              "packageType": "planePlate",
              "packageDescription": "pallet position",
              "measurement": {
                "grossWeight": null,
                "quantity": 2,
                "loadIndex": 6.4,
                "volume": null,
                "palletPlaces": null,
                "volumeWeight": null
              },
              "goodsType": "airCargo",
              "goodsDescription": "general",
              "dimensions": {
                "length": null,
                "width": null,
                "height": 2.65
              },
              "detailLines": [
                {
                  "id": "0",
                  "mark": null,
                  "packageType": "planePlate",
                  "packDescription": null,
                  "measurement": {
                    "grossWeight": null,
                    "quantity": 2,
                    "loadIndex": 6.4,
                    "volume": null,
                    "palletPlaces": null,
                    "volumeWeight": null
                  },
                  "goodsType": "airCargo",
                  "goodsDescription": "general"
                }
              ],
              "dangerousGoods": [
                
              ]
            }
          ],
          "remarks": null,
          "originalLoading": {
            "party": {
              "name": "Great Factory Inc.",
              "number": null,
              "code": "BUD GREA",
              "address": {
                "locationCode": "BUD",
                "name1": "Great Factory Inc.",
                "line1": "Great Factory Street 55",
                "city": "Budapest Airport",
                "postalCode": "1234",
                "countryName": "Hungary",
                "countryCode": "HU",
                "longitude": 19.12345,
                "latitude": 47.1245
              },
              "contact": {
                "emailDetails": [
                  {
                    "type": "normal",
                    "value": "info@greatfactoryinc.com"
                  }
                ]
              },
              "remarks": null
            },
            "reference": null,
            "dateTimes": {
              "opening": "2025-03-11T19:00:00+01:00",
              "closing": "2025-03-11T19:00:00+01:00"
            }
          },
          "finalUnloading": {
            "party": {
              "name": "Somewhere else Co.",
              "number": null,
              "code": "VERYSOME",
              "address": {
                "locationCode": "VERYF",
                "name1": "Somewhere else Co.",
                "line1": "Somewhere else Way 33",
                "city": "Veryfar",
                "postalCode": "9999",
                "countryName": "Romania",
                "countryCode": "RO",
                "longitude": 27.555,
                "latitude": 45.888
              },
              "contact": {
                
              },
              "remarks": null
            },
            "reference": null,
            "dateTimes": {
              "opening": "2025-03-12T20:00:00+01:00",
              "closing": "2025-03-12T20:00:00+01:00"
            }
          },
          "container": null
        }
      ],
      "vehicle": {
        "licensePlate": null
      },
      "pulledUnit": {
        "number": null,
        "preDefined": false,
        "licensePlate": null
      },
      "tasks": [
        {
          "type": "acceptConsignment",
          "completedDateTime": "2025-08-04T14:58:37.064743Z",
          "required": true
        },
        {
          "type": "driverName",
          "sequenceNumber": 1,
          "value": "Pietje Puk",
          "completedDateTime": "2025-08-04T14:58:37.064743Z",
          "required": true
        },
        {
          "type": "pulledUnitLicensePlate",
          "value": "BB-22-BB",
          "completedDateTime": "2025-08-04T14:58:37.064743Z",
          "required": true
        },
        {
          "type": "vehicleLicensePlate",
          "value": "AA-11-AA",
          "completedDateTime": "2025-08-04T14:58:37.064743Z",
          "required": true
        },
        {
          "type": "startMilestone",
          "activityId": "IF_0AXH4watMGHcf59qYSM",
          "value": "2024-06-14T12:09:41.15+02:00",
          "completedDateTime": "2025-08-04T14:58:37.064743Z",
          "required": true
        },
        {
          "type": "endMilestone",
          "activityId": "IF_0AXH4watMGHcf59qYSM",
          "value": "2024-06-14T13:09:41.15+02:00",
          "completedDateTime": "2025-08-04T14:58:37.064743Z",
          "required": true
        },
        {
          "type": "startMilestone",
          "activityId": "IF_ilU4qgWld04rqRjY4Jv",
          "value": "2024-06-14T15:09:41.15+02:00",
          "completedDateTime": "2025-08-04T14:58:37.064743Z",
          "required": true
        },
        {
          "type": "endMilestone",
          "activityId": "IF_ilU4qgWld04rqRjY4Jv",
          "value": "2024-06-14T16:09:41.15+02:00",
          "completedDateTime": "2025-08-04T14:58:37.064743Z",
          "required": true
        },
        {
          "type": "approvedDocument",
          "possibilities": [
            "cmr"
          ],
          "activityId": "IF_ilU4qgWld04rqRjY4Jv",
          "shipmentNumber": "100000000001",
          "possibility": "cmr",
          "value": "scanned-cmr-31681864",
          "completedDateTime": "2025-08-04T14:59:00.723561Z",
          "required": true
        },
        {
          "type": "approvedDocument",
          "possibilities": [
            "manifest",
            "cmr"
          ],
          "activityId": "IF_ilU4qgWld04rqRjY4Jv",
          "shipmentNumber": "100000000002",
          "possibility": "cmr",
          "value": "scanned-cmr-31681864",
          "completedDateTime": "2025-08-04T14:59:00.723561Z",
          "required": true
        },
        {
          "type": "finalPriceConfirmation",
          "completedDateTime": "2025-08-04T14:58:42.217451Z",
          "required": true
        },
        {
          "type": "driverName",
          "sequenceNumber": 2,
          "value": "Jan Jansen",
          "completedDateTime": "2025-08-04T14:58:37.064743Z",
          "required": false
        },
        {
          "type": "arrivalMilestone",
          "activityId": "IF_0AXH4watMGHcf59qYSM",
          "value": "2024-06-14T11:09:41.15+02:00",
          "completedDateTime": "2025-08-04T14:58:37.064743Z",
          "required": false
        },
        {
          "type": "arrivalMilestone",
          "activityId": "IF_ilU4qgWld04rqRjY4Jv",
          "value": "2024-06-14T14:09:41.15+02:00",
          "completedDateTime": "2025-08-04T14:58:37.064743Z",
          "required": false
        },
        {
          "type": "approvedDocument",
          "activityId": "IF_ilU4qgWld04rqRjY4Jv",
          "shipmentNumber": "100000000001",
          "possibility": "manifest",
          "value": "scanned-cmr-31681864",
          "completedDateTime": "2025-08-04T14:58:57.719729Z",
          "required": false
        }
      ],
      "documentResult": {
        "activityId": "IF_ilU4qgWld04rqRjY4Jv",
        "sentForShipmentNumbers": [
          "100000000001",
          "100000000002"
        ],
        "sufficientForShipmentNumbers": [
          "100000000001",
          "100000000002"
        ],
        "id": "scanned-cmr-31681864",
        "hash": "qt8yUARKWAcKz2dbjvu7C5j3GKpWe6RhbvDQ+OqgD/0=",
        "isOk": true,
        "result": "ok",
        "resultText": "Document is approved"
      }
    }
  ]
}