---
updatedAt: 2026-05-27T04:04:04.000Z
agentTools:
  projectIndex: https://transport-freight-management.docs.developers.aeb.com/llms.txt
---

# cancelShipment

Cancels a shipment.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Carrier Connect HTTP API",
    "description": "Thank you for using our HTTP API documentation.",
    "version": "3.0"
  },
  "servers": [
    {
      "url": "https://rz3.aeb.de/demo1cai/rest"
    }
  ],
  "security": [
    {
      "SWAGGER_AUTH_KEY": []
    },
    {
      "BASIC_AUTH": []
    }
  ],
  "tags": [
    {
      "name": "Shipping",
      "description": "API for the CarrierEngine service"
    }
  ],
  "paths": {
    "/DLCarrierBFBean/cancelShipment": {
      "post": {
        "tags": [
          "Shipping"
        ],
        "summary": "cancelShipment",
        "description": "Cancels a shipment.",
        "operationId": "cancelShipment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DLCancelShipmentRequestDTO"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/DLCancelShipmentRequestDTO"
              }
            }
          }
        },
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DLCancelShipmentResponseDTO"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/DLCancelShipmentResponseDTO"
                }
              }
            }
          }
        },
        "security": [
          {
            "BASIC_AUTH": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "TextInLanguageDTO": {
        "type": "object",
        "description": "A translated text in one of the specified languages.",
        "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"
          }
        }
      },
      "DLShipmentReferenceDTO": {
        "type": "object",
        "description": "DTO for uniquely identifying a DLShipment within a specific client.",
        "properties": {
          "transactionId": {
            "type": "string",
            "description": "ID of the corresponding transaction in the client system.<br> Usually sufficient for identifying a shipment. <p> length=250 </p>"
          },
          "referenceNumber1": {
            "type": "string",
            "description": "Another client system system reference number for the shipment. <p> length=50 </p>"
          },
          "shipmentNumber": {
            "type": "string",
            "description": "The shipment number internally generated by the carrier engine.<br> Usually sufficient for identifying a shipment. <p> length=20 </p>"
          }
        }
      },
      "ResponseMessageDTO": {
        "type": "object",
        "description": "Result messages like errors or warnings.",
        "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",
            "format": "int32",
            "description": "<p>The indentation level of the message.</p><p>'0' indicates a top level message.</p>",
            "example": 0
          }
        }
      },
      "DLCancelShipmentResponseDTO": {
        "type": "object",
        "description": "Response DTO for the cancelShipment business facade method",
        "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"
            }
          }
        },
        "xml": {
          "name": "cancelShipmentResponseDTO"
        }
      },
      "DLCancelShipmentRequestDTO": {
        "type": "object",
        "description": "Request DTO for the cancelShipment business facade method",
        "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"
            }
          },
          "shipmentReference": {
            "$ref": "#/components/schemas/DLShipmentReferenceDTO",
            "description": "<p> The shipment to be cancelled. </p>"
          },
          "processParms": {
            "$ref": "#/components/schemas/DLShipmentCancelParmsDTO",
            "description": "The process parameters for the cancel operation.<br> When no process parms are specified, the default values of the DLShipmentCancelParmsDTO fields apply."
          }
        },
        "required": [
          "processParms",
          "shipmentReference"
        ],
        "xml": {
          "name": "cancelShipmentRequestDTO"
        }
      },
      "DLProcessModeDTO": {
        "type": "object",
        "description": "DTO specifying the mode in which an operation is processed.",
        "properties": {
          "mode": {
            "type": "string",
            "description": "<p> The mode in which the operation is processed. Valid values are: <li>BASIC the operation is processed in an asynchronous job. <li>EXTENDED the operation is executed directly within the webservice request transaction and no response is returned until the process is finished. </p> <br> <p> length=10 </p>"
          }
        },
        "required": [
          "mode"
        ]
      },
      "DLShipmentCancelParmsDTO": {
        "type": "object",
        "description": "Parameters for the cancle operation for a shipment.",
        "properties": {
          "processMode": {
            "$ref": "#/components/schemas/DLProcessModeDTO",
            "description": "<p> Sets the process mode for the cancel operation.<br> <li>'BASIC': the shipment is cancelled asynchronously by a job. Therefore the response doesn't contain any errors or warnings of the cancel process itself. This is the default which is used, when no parms are specified. <li>'EXTENDED': the cancel operation is processed synchronously. The response contains all errors or warnings that occurred during the cancel process. </p> <br> <p> Keep in mind that processMode 'EXTENDED' consumes more system resources and reduces the effect of load balancing. It should only be used in case the client system needs an immediate response (e.g. if the client system makes subsequent business facade calls which have to rely on a successful cancellation) </p>"
          }
        },
        "required": [
          "processMode"
        ]
      }
    },
    "securitySchemes": {
      "SWAGGER_AUTH_KEY": {
        "type": "apiKey",
        "name": "X-XNSG_WEB_TOKEN",
        "in": "header"
      },
      "BASIC_AUTH": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-proxy-enabled": false
}
```