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

# addShipmentAttachments

Adds attachments to a shipment (e.g. invoices, origin documents, etc.).

# 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/addShipmentAttachments": {
      "post": {
        "tags": [
          "Shipping"
        ],
        "summary": "addShipmentAttachments",
        "description": "Adds attachments to a shipment (e.g. invoices, origin documents, etc.).",
        "operationId": "addShipmentAttachments",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DLAddShipmentAttachmentsRequestDTO"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/DLAddShipmentAttachmentsRequestDTO"
              }
            }
          }
        },
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DLAddShipmentAttachmentsResponseDTO"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/DLAddShipmentAttachmentsResponseDTO"
                }
              }
            }
          }
        },
        "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>"
          }
        }
      },
      "DLAddShipmentAttachmentsResponseDTO": {
        "type": "object",
        "description": " Response DTO for the addShipmentAttachments 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": "addShipmentAttachmentsResponseDTO"
        }
      },
      "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
          }
        }
      },
      "DLAddShipmentAttachmentsRequestDTO": {
        "type": "object",
        "description": "Request DTO for the addShipmentAttachments 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> Reference of the shipment the attachments belong to. Mandatory field. </p>"
          },
          "mode": {
            "type": "string",
            "description": "Manages how the system should react if an attachment already exists. If empty mode 'ADD' will be used. The filter criteria for an existing attachment is the file name and an existing content.<p> Possible values: <ul> <li> ADD</li> <li> UPDATE</li> <li> SKIP</li> </ul> </p>"
          },
          "attachments": {
            "type": "array",
            "description": "List of attachments to add.",
            "items": {
              "$ref": "#/components/schemas/DLAttachmentDTO"
            }
          }
        },
        "required": [
          "shipmentReference"
        ],
        "xml": {
          "name": "addShipmentAttachmentsRequestDTO"
        }
      },
      "DLAttachmentDTO": {
        "type": "object",
        "description": "DTO to hold attachment data.",
        "properties": {
          "filename": {
            "type": "string",
            "description": "File name including a file extension <p>lenght = 250 </p>."
          },
          "mimeType": {
            "type": "string",
            "description": "The MIME type of the document. Possible values: <ol> <li>\"application/pdf\" document is in PDF format <li>\"printer/raw\" document is in printer language (e.g. ZPL or EPL) and can be directly sent to a printer <li>\"image/<code>format</code>\" document is a printable image. <code>format</code> can be \"png\", \"jpeg\", etc. </ol> <p> length = 30 </p>"
          },
          "data": {
            "type": "string",
            "format": "byte",
            "description": "Attachment data/content."
          },
          "contentType": {
            "type": "string",
            "description": "Attachment type.<br> Indicates the business content of the document towards the carrier. If empty, the carrier's default is used. <p> Possible values: <ul> <li> COMMERCIAL_INVOICE</li> <li> PRO_FORMA_INVOICE</li> <li> CERTIFICATE_OF_ORIGIN</li> <li> NAFTA_CERTIFICATE_OF_ORIGIN</li> <li> EXPORT_ACCOMPANYING_DOCUMENT</li><li> PACKING_LIST</li><li> WEIGHT_DECLARATION</li><li> SHIPPERS_DECLARATION</li><li> DELIVERY_NOTE</li><li> MOVEMENT_CERTIFICATE_ATR</li><li> MOVEMENT_CERTIFICATE_EUR1</li><li> LETTER_OF_CREDIT</li><li> CERTIFICATE_OF_COMPLIANCE</li><li> CERTIFICATE_OF_MANUFACTURER</li><li> CERTIFICATE_OF_WARRANTY</li><li> CERTIFICATE_OF_WEIGHTANDQUANTITY</li><li> NONWOOD_PACKING_DECLARATION</li><li> OTHER</li> </ul> </p> <p> length=32 </p>"
          }
        }
      }
    },
    "securitySchemes": {
      "SWAGGER_AUTH_KEY": {
        "type": "apiKey",
        "name": "X-XNSG_WEB_TOKEN",
        "in": "header"
      },
      "BASIC_AUTH": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-proxy-enabled": false
}
```