---
updatedAt: 2026-02-12T13:55:28.000Z
agentTools:
  projectIndex: https://transport-freight-management.docs.developers.aeb.com/llms.txt
---

# getShipmentsEvents

Returns the resolved events of the given shipments sorted by CESTrackingEventResponseDTO's eventDate in ascending order, taking the time zone into account.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Carrier Event Service",
    "description": "Thank you for using our HTTP API documentation.",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://xnsg.dc.aeb.com/demo1ces/rest"
    }
  ],
  "security": [
    {
      "SWAGGER_AUTH_KEY": []
    },
    {
      "BASIC_AUTH": []
    }
  ],
  "tags": [
    {
      "name": "CarrierEventServiceBFBean",
      "description": "Carrier event service related business facade methods. Supports methods for shipments, events and configuration."
    }
  ],
  "paths": {
    "/CarrierEventServiceBFBean/getShipmentsEvents": {
      "post": {
        "tags": [
          "CarrierEventServiceBFBean"
        ],
        "summary": "getShipmentsEvents",
        "description": "Returns the resolved events of the given shipments sorted by CESTrackingEventResponseDTO's eventDate in ascending order, taking the time zone into account.",
        "operationId": "getShipmentsEvents",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetShipmentsEventsRequestDTO"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/GetShipmentsEventsRequestDTO"
              }
            }
          }
        },
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetShipmentsEventsResponseDTO"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetShipmentsEventsResponseDTO"
                }
              }
            }
          }
        },
        "security": [
          {
            "BASIC_AUTH": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "CESShipmentReferenceDTO": {
        "type": "object",
        "properties": {
          "shipmentNumber": {
            "maxLength": 20,
            "type": "string",
            "description": "Client unique shipmentNumber used to identify a shipment <p>length=20</p>",
            "example": "0181374"
          },
          "transactionId": {
            "maxLength": 250,
            "type": "string",
            "description": "ID uniquely referencing the corresponding business transaction in the host system.  <p> length = 250 </p>",
            "example": "WA1-100696235133571361984584754FZOD-2110"
          },
          "clientSystemId": {
            "maxLength": 20,
            "type": "string",
            "description": "Host system ID. The installation ID more precisely identifies the host system from which the shipping order was originally imported. Data for one client can be imported from different host systems. <p> length = 20 </p>",
            "example": "PS4_100"
          },
          "organizationUnitClientSystem": {
            "maxLength": 255,
            "type": "string",
            "description": "Additional organizational unit of the host system for further specification of the data source. <p> length = 255 </p>",
            "example": "AL_US"
          }
        },
        "description": "Reference that identifies a shipment"
      },
      "ResponseMessageDTO": {
        "type": "object",
        "properties": {
          "messageType": {
            "type": "string",
            "description": "<p>Message type</p><p>If not stated otherwise, the possible types are:</p><ul><li>ERROR</li><li>WARNING</li><li>INFO</li></ul><p>Maximum length: 50</p>",
            "example": "WARNING"
          },
          "messageIdentCode": {
            "type": "string",
            "description": "<p>Optional identification code for further classification of the message type.</p><p>Maximum length: 50</p>",
            "example": "5627"
          },
          "messageTexts": {
            "type": "array",
            "description": "<p>Detailed message texts in the requested languages.</p>",
            "items": {
              "$ref": "#/components/schemas/TextInLanguageDTO"
            }
          },
          "indentationLevel": {
            "type": "integer",
            "description": "<p>The indentation level of the message.</p><p>'0' indicates a top level message.</p>",
            "format": "int32",
            "example": 0
          }
        },
        "description": "Result messages like errors or warnings."
      },
      "TextInLanguageDTO": {
        "type": "object",
        "properties": {
          "languageISOCode": {
            "type": "string",
            "description": "<p>2-letter ISO code of the language.</p><p>length=2</p>",
            "example": "en"
          },
          "text": {
            "type": "string",
            "description": "The translated text.",
            "example": "Some free-form text"
          }
        },
        "description": "A translated text in one of the specified languages."
      },
      "DateAndZoneDTO": {
        "type": "object",
        "properties": {
          "dateInTimezone": {
            "type": "string",
            "description": "<p>String representation of the date/time stamp in the format yyyy-MM-dd HH:mm:ss</p> <p>Length: 19</p>"
          },
          "timezone": {
            "type": "string",
            "description": "<p>Time zone of the time stamp.</p> <p>Examples of valid time zones: \"GMT+01:00\" or \"GMT-02:00\".</p> <p>Maximum length: 50</p>"
          }
        },
        "description": "Date and timezone."
      },
      "CESAddressResponseDTO": {
        "type": "object",
        "properties": {
          "street": {
            "maxLength": 40,
            "type": "string",
            "description": "Street of the address. <p>length=40</p>",
            "example": "Sigmaringer Str. 109"
          },
          "postcode": {
            "maxLength": 10,
            "type": "string",
            "description": "Postcode of the address. <p>length=10</p>",
            "example": "70567"
          },
          "city": {
            "maxLength": 40,
            "type": "string",
            "description": "City of the address. <p>length=40</p>",
            "example": "Stuttgart"
          },
          "countryISOCode": {
            "maxLength": 2,
            "minLength": 2,
            "type": "string",
            "description": "Country of address <p>length=2</p>",
            "example": "DE"
          },
          "stateRegion": {
            "maxLength": 40,
            "type": "string",
            "description": "The state or region <p>length=40</p>",
            "example": "Baden-Württemberg"
          }
        },
        "description": "Address data to be provided in responses. @see CESAddressDTO"
      },
      "CESEventTextDTO": {
        "type": "object",
        "properties": {
          "standardEventText": {
            "type": "array",
            "description": "Standard name and description linked to event identCode provided in the requested languages",
            "items": {
              "$ref": "#/components/schemas/CEStandardEventTextDTO"
            }
          },
          "originalDescription": {
            "type": "string",
            "description": "Description text linked to originalIdentCode and originalReason of a tracking event.",
            "example": "Some original description from the carrier"
          }
        },
        "description": "DTO for event text explaining the event ident codes, originalCodes and originalReason"
      },
      "CESGeoCoordinatesResponseDTO": {
        "type": "object",
        "properties": {
          "latitude": {
            "type": "number",
            "description": "The decimal degree value of the latitude.  <p>length = 10, scale = 7</p>",
            "example": -6.2649875
          },
          "longitude": {
            "type": "number",
            "description": "The decimal degree value of the longitude.  <p>length = 10, scale = 7</p>",
            "example": 106.8766384
          }
        },
        "description": "Location data represented by geographic coordinates formatted as decimal degrees."
      },
      "CESLocationIdentifierResponseDTO": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "<p>The functional type of the identifier.</p> <p>Possible values: <ul> <li>IATAAIRPORTCODE</li> <li>UNLOCODE</li> <li>GENERIC</li> <li>CARRIER_LOCATION_CODE</li> </ul> </p>",
            "example": "UNLOCODE"
          },
          "value": {
            "type": "string",
            "description": "The value of the identifier. <p>length = 100</p>",
            "example": "KRSEL"
          }
        },
        "description": "Location data represented by an identifier"
      },
      "CESTrackingEventAdditionalDataDTO": {
        "type": "object",
        "properties": {
          "additionalDataType": {
            "type": "string",
            "description": "Type of the additional data. Possible types are:  <table> <tr><td>POD_SIGNATURE</td><td> Signature of a consignee, usually available on delivery events. </td></tr> <tr><td>MISCELLANEOUS</td><td> General additional information, notes or fields with value. It is possible to have more than one field of this type if there are different texts. </td></tr> <tr><td>MASTER_AIRWAYBILL_NUMBER</td><td> This tracking number identifies the cargo of a complete aircraft. </td></tr> <tr><td>HOUSE_AIRWAYBILL_NUMBER</td><td> This tracking number identifies a single shipping order. </td></tr> <tr><td>PORT_OF_LOADING_CODE</td><td> Port or airport code where the goods are loaded. </td></tr> <tr><td>PORT_OF_DISCHARGE_CODE</td><td> Port or airport code where the goods are unloaded. </td></tr> <tr><td>AIRLINE</td><td> The airline is a company that transports people or freight against payment. </td></tr> <tr><td>FLIGHT_NUMBER</td><td> The flight number is an ordinal number that is used to identify a specific flight connection of an airline. </td></tr> <tr><td>SCHENKERAIR_SST_NUMBER</td><td> Schenker Air specific type: SST number</td></tr> <tr><td>HOUSE_BILL_OF_LADING_NUMBER</td><td> EDIFACT qualifier BH, reference number assigned to a house bill of lading.</td></tr> <tr><td>IMPORTER_REFERENCE_NUMBER</td><td> EDIFACT qualifier ABQ</td></tr> <tr><td>PRIMARY_REFERENCE</td><td> EDIFACT qualifier AES</td></tr> <tr><td>SHIPMENT_REFERENCE_NUMBER</td><td> The shipment reference number. When tracking is on shipment, this might be the tracking number.</td></tr> <tr><td>HOUSE_SHIPMENT_REFERENCE</td><td> The house shipment reference number.</td></tr> <tr><td>CARRIER_NOTE</td><td> Note by the carrier.</td></tr> <tr><td>CONTAINER_NUMBER</td><td> The container number.</td></tr> <tr><td>VESSEL_NAME</td><td>  The vessel name can be used to identify a specific vessel.</td></tr> <tr><td>VOYAGE_NUMBER</td><td> The voyage number is an ordinal number that is used to identify a specific voyage of a vessel.</td></tr><tr><td>ETA</td><td> The ETA is a string containing a date/timestamp of the estimated time of arrival. The format of the string is based on the ISO 8601 standard and depends on the information provided by the carrier. It contains either, a date, a date time or a date time with time zone information. Example: 2021-11-30T13:37:01.87+01:00[Europe/Berlin]. </td></tr> <tr><td>TRANSPORT_TYPE</td><td> The transport type</td></tr>",
            "example": "CARRIER_NOTE"
          },
          "value": {
            "maxLength": 50,
            "type": "string",
            "description": "Value for this information type <p> length=50 </p>",
            "example": "Some carrier note"
          }
        },
        "description": "DTO with additional information provided for the carrier for the event"
      },
      "CESTrackingEventLocationResponseDTO": {
        "type": "object",
        "properties": {
          "address": {
            "$ref": "#/components/schemas/CESAddressResponseDTO"
          },
          "geoCoordinates": {
            "$ref": "#/components/schemas/CESGeoCoordinatesResponseDTO"
          },
          "identifier": {
            "$ref": "#/components/schemas/CESLocationIdentifierResponseDTO"
          },
          "description": {
            "type": "string",
            "description": "The event location description.",
            "example": "Some description of the location used by the carrier"
          }
        },
        "description": "DTO with location data for a tracking event. Fields and substructures only filled as provided."
      },
      "CESTrackingEventResponseDTO": {
        "type": "object",
        "properties": {
          "identCode": {
            "maxLength": 20,
            "type": "string",
            "description": "The standardized AEB ident code of the event. <p> length = 20 </p>",
            "example": "IOD"
          },
          "originalIdentCode": {
            "maxLength": 20,
            "type": "string",
            "description": "The original ident code of the event provided by the carrier. <p> length = 20 </p>",
            "example": "L420"
          },
          "originalReason": {
            "maxLength": 20,
            "type": "string",
            "description": "The original reason that the carrier has transmitted for the event. <p> length = 20 </p>",
            "example": "BZ"
          },
          "eventDate": {
            "$ref": "#/components/schemas/DateAndZoneDTO"
          },
          "originalLocation": {
            "$ref": "#/components/schemas/CESTrackingEventLocationResponseDTO"
          },
          "additionalData": {
            "type": "array",
            "description": "Depending on the type of the event additional information  could be linked to the event.",
            "items": {
              "$ref": "#/components/schemas/CESTrackingEventAdditionalDataDTO"
            }
          },
          "eventText": {
            "$ref": "#/components/schemas/CESEventTextDTO"
          }
        },
        "description": "DTO for the real event data."
      },
      "CEStandardEventTextDTO": {
        "type": "object",
        "properties": {
          "languageISOCode": {
            "type": "string",
            "description": "<p>2-letter ISO code of the language.</p><p>length=2</p>",
            "example": "en"
          },
          "name": {
            "type": "string",
            "description": "The translated name.",
            "example": "Delivered"
          },
          "description": {
            "type": "string",
            "description": "The translated description.",
            "example": "The shipment was delivered"
          }
        },
        "description": "DTO to provide the name and description in multiple languages"
      },
      "CESShipmentEventResponseDTO": {
        "type": "object",
        "properties": {
          "hasErrors": {
            "type": "boolean",
            "description": "True, if there are any error messages. If an error has occured the messages contain more details about the errors."
          },
          "hasWarnings": {
            "type": "boolean",
            "description": "True, if there are any warning messages."
          },
          "messages": {
            "type": "array",
            "description": "Messages for the whole request, e.g. for errors or warnings.<br>",
            "items": {
              "$ref": "#/components/schemas/ResponseMessageDTO"
            }
          },
          "shipmentReference": {
            "$ref": "#/components/schemas/CESShipmentReferenceDTO"
          },
          "referenceNumber1": {
            "type": "string",
            "description": "Reference number that assigns the shipment to a process in another system.",
            "example": "704503458358845172150809"
          },
          "trackingObjects": {
            "type": "array",
            "description": "Tracking objects associated with this shipment.",
            "items": {
              "$ref": "#/components/schemas/CESTrackingObjectResponseDTO"
            }
          }
        },
        "description": "DTO for the shipment containing tracking objects with its events."
      },
      "CESTrackingObjectResponseDTO": {
        "type": "object",
        "properties": {
          "trackingNumber": {
            "maxLength": 250,
            "type": "string",
            "description": "The almost unique tracking number of the carrier that is used to identify the package or shipment in the carriers world. <p> length = 250 </p>",
            "example": "AB486 083 50"
          },
          "isReturnTrackingObject": {
            "type": "boolean",
            "description": "True when the tracking object is a return tracking object (retoure), else false"
          },
          "trackingObjectType": {
            "type": "string",
            "description": "Type or trackingObject Possible types are: <ul> <li>SHIPMENT</li> <li>PACKAGE</li> </ul>",
            "example": "SHIPMENT"
          },
          "trackingStart": {
            "$ref": "#/components/schemas/DateAndZoneDTO"
          },
          "trackingFinish": {
            "$ref": "#/components/schemas/DateAndZoneDTO"
          },
          "trackingEvents": {
            "type": "array",
            "description": "The list of tracking events associated with this tracking object. It is returned sorted by date in ascending order, taking the time zone into account.",
            "items": {
              "$ref": "#/components/schemas/CESTrackingEventResponseDTO"
            }
          }
        },
        "description": "DTO for tracking object with its tracking events."
      },
      "GetShipmentsEventsResponseDTO": {
        "type": "object",
        "properties": {
          "hasErrors": {
            "type": "boolean",
            "description": "<p>True, if there are any error messages.</p><p>An error usually means that the request could not be performed.</p><p>Error details are provided in the messages[] array.</p>",
            "example": false
          },
          "hasOnlyRetryableErrors": {
            "type": "boolean",
            "description": "<p>True, if there are any error messages.</p><p>Error details are provided in the messages[] array.</p>",
            "example": true
          },
          "hasWarnings": {
            "type": "boolean",
            "description": "<p>True, if there are any error messages.</p><p>Error details are provided in the messages[] array.</p>",
            "example": true
          },
          "messages": {
            "type": "array",
            "description": "<p>Error or warning messages at the request level.</p><p>There may be additional messages[] arrays at lower data levels as specified in the documentation.</p>",
            "items": {
              "$ref": "#/components/schemas/ResponseMessageDTO"
            }
          },
          "shipments": {
            "type": "array",
            "description": "Collection of shipments responses containing tracking objects and event lists.",
            "items": {
              "$ref": "#/components/schemas/CESShipmentEventResponseDTO"
            }
          }
        },
        "description": "Response DTO for a request for shipment events.",
        "xml": {
          "name": "getShipmentsEventsResponseDTO"
        }
      },
      "GetShipmentsEventsRequestDTO": {
        "type": "object",
        "properties": {
          "clientSystemId": {
            "type": "string",
            "description": "<p>Id of the sending client system.</p><p>e.g. Installation ID of the sending host or ERP system.</p><p>Maximum length: 20</p>",
            "example": "TEST_ID"
          },
          "clientIdentCode": {
            "type": "string",
            "description": "<p>Client identification code.</p><p>Maximum length: 10</p>",
            "example": "APITEST"
          },
          "userName": {
            "type": "string",
            "description": "<p>User who initiated the request from the client system.</p><p>If the user is found either in the system's user management or in a connected LDAP directory, the request runs under this user's roles.</p><p>If the user is not found, the request is only granted the basic 'I_EVERYONE' role. The user name may be used for logging purposes in this case.</p><p>Actual authentication is handled separately via the request's headers, so no password is required in the request's data.</p>",
            "example": "API_TEST"
          },
          "resultLanguageIsoCodes": {
            "type": "array",
            "description": "<p>2-letter ISO codes of the languages in which texts will be returned.</p><p>English ('en') and German ('de') are typically supported by default. Other languages may be supported.</p><p>Translations will be looked up in the order of the provided language codes. If a translation is not available in one language, the next language is used instead.</p>",
            "example": [
              "en",
              "de"
            ],
            "items": {
              "type": "string",
              "description": "<p>2-letter ISO codes of the languages in which texts will be returned.</p><p>English ('en') and German ('de') are typically supported by default. Other languages may be supported.</p><p>Translations will be looked up in the order of the provided language codes. If a translation is not available in one language, the next language is used instead.</p>",
              "example": "[\"en\",\"de\"]"
            }
          },
          "shipmentReferences": {
            "type": "array",
            "description": "References representing shipments. An event list should be returned for each reference provided.",
            "items": {
              "$ref": "#/components/schemas/CESShipmentReferenceDTO"
            }
          },
          "isStandardEventTextIncluded": {
            "type": "boolean",
            "description": "Controls, if the name and description that explain the identCode of the event is included in the response. If this option is set to true, there will be a name and a description for each requested language",
            "example": true,
            "default": false
          },
          "isOriginalDescriptionIncluded": {
            "type": "boolean",
            "description": " Controls, if the description of the carriers codelist that explain the originalIdentCode and originalReasonn of the event is included in the response. If this option is set to true, there will be a name and a description for each requested language if available",
            "example": true,
            "default": false
          }
        },
        "description": "Request DTO to request events for shipment references.",
        "xml": {
          "name": "getShipmentsEventsRequestDTO"
        }
      }
    },
    "securitySchemes": {
      "SWAGGER_AUTH_KEY": {
        "type": "apiKey",
        "name": "X-XNSG_WEB_TOKEN",
        "in": "header"
      },
      "BASIC_AUTH": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-proxy-enabled": false,
  "x-readme": {}
}
```