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

# updateCustomsData

Updates customs data for one existing shipment. Updates data on shipment and item level. Updates customs relevant data only.

# 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/updateCustomsData": {
      "post": {
        "tags": [
          "Shipping"
        ],
        "summary": "updateCustomsData",
        "description": "Updates customs data for one existing shipment. Updates data on shipment and item level. Updates customs relevant data only.",
        "operationId": "updateCustomsData",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DLUpdateCustomsDataRequestDTO"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/DLUpdateCustomsDataRequestDTO"
              }
            }
          }
        },
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DLUpdateCustomsDataResponseDTO"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/DLUpdateCustomsDataResponseDTO"
                }
              }
            }
          }
        },
        "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"
          }
        }
      },
      "AmountOfMoneyDTO": {
        "type": "object",
        "description": "An amount of money with a value and an currency ISO code.",
        "properties": {
          "value": {
            "type": "number",
            "description": "The value of the amount of money. <p>length=15, scale=2</p>"
          },
          "currencyIso": {
            "type": "string",
            "description": "The three letter ISO code of the currency of the amount of money. <p>length=3</p>"
          }
        }
      },
      "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>"
          }
        }
      },
      "GenericDataFieldDTO": {
        "type": "object",
        "description": "A field of a generic data record.",
        "properties": {
          "name": {
            "type": "string",
            "description": "<p>Name of this field, i.e. the role the field plays in the enclosing record.</p>  <p>When the same name is repeated in the context of the same parent record,  it is assumed that the parent defines this element as a repeatable (array) element.</p>"
          },
          "value": {
            "type": "string",
            "description": "<p>Value of the field.</p>  <p>The format follows the conventions of xml schema encoding, see <a href=\"http://www.w3.org/TR/xmlschema-2/\">http://www.w3.org/TR/xmlschema-2/</a>.</p> <h3>Currently implemented formats:</h3>  <ul>  <li>string - the plain string</li> <li>int - digits base10, +-2^31</li> <li>long - digits base10, +-2^63</li> <li>decimal - +-123456.789</li> <li>boolean - the literals 'true' and 'false'</li> <li>dateTime - yyyy-MM-ddTHH:mm:ss</li> <li>base64Binary - binary data in base64 encoding</li> </ul>"
          },
          "type": {
            "type": "string",
            "description": "<p>Data type of the field.</p> <p>This is not strictly necessary since the receiving entity should be able to infer the structure  with its own meta data; it may be used however for sanity checks.</p> <p>The format follows the conventions of xml schema encoding, see <a href=\\\"http://www.w3.org/TR/xmlschema-2/\\\">http://www.w3.org/TR/xmlschema-2/</a>.</p> <h3>Currently implemented formats:</h3>  <ul>  <li>string</li> <li>int</li> <li>long</li> <li>decimal</li> <li>boolean</li> <li>dateTime</li> <li>base64Binary</li> </ul>"
          }
        }
      },
      "GenericDataRecordDTO": {
        "type": "object",
        "description": "A generic record of data.<br>Each field is qualified by name and type and has a value.",
        "properties": {
          "fields": {
            "type": "array",
            "description": "The fields of the record.",
            "items": {
              "$ref": "#/components/schemas/GenericDataFieldDTO"
            }
          },
          "subrecords": {
            "type": "array",
            "description": "Subrecords of the record.",
            "example": [
              {
                "name": "child",
                "record": {
                  "fields": [],
                  "subrecords": []
                }
              }
            ],
            "items": {
              "$ref": "#/components/schemas/NamedGenericDataRecordDTO"
            }
          }
        }
      },
      "NamedGenericDataRecordDTO": {
        "type": "object",
        "description": "A generic data record with a name.<br> Wrapper class to encapsulate subrecords with their name and with the ability to have explicit null records.",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of this record, i.e. the role the record plays in the enclosing record.<br> When the same name is repeated in the context of the same parent record,  it is assumed that the parent defines this element as a repeatable (array) element."
          },
          "record": {
            "$ref": "#/components/schemas/GenericDataRecordDTO",
            "description": "The record associated with the name.<br> Especially in case, where the name is repeated in the context of the same parent record, this field may be null to indicate a null in a list of records."
          }
        }
      },
      "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
          }
        }
      },
      "DLUpdateCustomsDataResponseDTO": {
        "type": "object",
        "description": "Response DTO for the updateCustomsData 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": "updateCustomsDataResponseDTO"
        }
      },
      "DLReferenceTextUCDDTO": {
        "type": "object",
        "description": "DTO for reference numbers and texts of a certain (predefined) type.",
        "properties": {
          "type": {
            "type": "string",
            "description": "<p> The type of the reference number or text. Valid values are:  <li>ACID_NUMBER - Advance Cargo Information Approval Number used to identify a pre-arrival cargo information filing within customs or governmental clearance processes. <li>CUSTOMS_AGENT_DUTY_DEFERMENT_NUMBER - Customs agent duty deferment number. <li>CUSTOMS_AGENT_EORI_NUMBER - Customs agent EORI number. <li>CUSTOMS_AGENT_UKIMS_NUMBER - Customs agent UKIMS number. <li>CUSTOMS_AGENT_VAT_NUMBER - Customs agent VAT number. <li>CUSTOMS_REGISTRATION_NUMBER - Customs registration number. <li>EKAER_NUMBER - EKAER number. <li>IMPORTER_DUTY_DEFERMENT_NUMBER - Importer duty deferment number. <li>IMPORTER_EORI_NUMBER - Importer EORI number. <li>IMPORTER_UKIMS_NUMBER - Importer UKIMS number. <li>IMPORTER_VAT_NUMBER - Importer VAT number. <li>INVOICE_NUMBER - Invoice number. <li>ITN_NUMBER - International Transaction Number (ITN). <li>RECEIVER_DUTY_DEFERMENT_NUMBER - Receiver duty deferment number. <li>RECEIVER_EORI_NUMBER - Receiver EORI number. <li>RECEIVER_UKIMS_NUMBER - Receiver UKIMS number. <li>RECEIVER_VAT_NUMBER - Receiver VAT number. <li>SENT_NUMBER - SENT number. <li>SHIPPER_IOSS_NUMBER - Shipper IOSS (Import OneStopShop) registration number. <li>SHIPPER_PVA_NUMBER - Shipper PVA (British Postponed VAT Accounting) registration number. <li>SHIPPER_VOEC_NUMBER - Shipper VOEC (Norwegian VAT on eCommerce) registration number. <li>UIT_NUMBER - UIT number. </P> <p> Shortened aliases (up to 30 chars) are supported for inbound APIs (towards CCO), e.g.: <li>CUSTOMS_AGENT_DUTYDEFERMENT_NO instead of CUSTOMS_AGENT_DUTY_DEFERMENT_NUMBER </p> <p> Outbound APIs always return the original long values for backward compatibility. </p> <p> length=35 </p>"
          },
          "value": {
            "type": "string",
            "description": "The value of the reference number or text. <p> length=500 </p>"
          }
        }
      },
      "DLShipmentItemReferenceTextUCDDTO": {
        "type": "object",
        "description": "DTO for reference numbers and texts of a certain (predefined) type. This is the same DTO like DLShipmentItemReferenceTextDTO, but supports fewer types.",
        "properties": {
          "type": {
            "type": "string",
            "description": "<p>\nThe type of the reference number or text. Valid values are:\n\n<li>GTIN - Global trade item number</li>\n<li>MODEL_NUMBER - Model number</li>\n<li>MPN - Manufacturer part number</li>\n<li>PART_NUMBER - Part number</li>\n<li>SKU - Stock keeping unit</li>\n\n</p>\n<p>length=30</p>\n"
          },
          "value": {
            "type": "string",
            "description": "The value of the reference number or text. <p> length=500 </p>"
          }
        }
      },
      "DLShipmentItemReferenceUCDDTO": {
        "type": "object",
        "description": "DTO for uniquely identifying an item within a shipment.",
        "properties": {
          "itemTransactionId": {
            "type": "string",
            "description": "The number of the client system uniquely referencing an item in a shipment. <p> length=50 </p>"
          },
          "referenceNumber1": {
            "type": "string",
            "description": "Another item reference number. May be used, when an item was not created by the client system and therefore has no <code>itemTransactionId</code>. If both fields are filled, they both must match the item. <p> length=50 </p>"
          }
        }
      },
      "DLUpdateCustomsDataRequestDTO": {
        "type": "object",
        "description": "Request DTO for the updateCustomsData 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 to be updated. Mandatory field. </p>"
          },
          "customsShipmentData": {
            "$ref": "#/components/schemas/DLUpdateCustomsShipmentRequestDataDTO",
            "description": "Shipment data. The field may be empty when there's no need to update shipment data. Only a few customs fields in shipment are supported."
          },
          "customsItemData": {
            "type": "array",
            "description": "Item data. The field may be empty when there's no need to update any existing item. Only customs fields for items are supported.",
            "items": {
              "$ref": "#/components/schemas/DLUpdateCustomsItemRequestDataDTO"
            }
          },
          "customsReferencesTexts": {
            "type": "array",
            "description": "Updates references and texts data. The field may be empty when there's no need to update any references and texts. This update deletes all existing references with the types included in this request from the shipment and adds the references and texts from the request to the shipment. Remember: All references of every reference type included in this request will be deleted! Only customs relevant references and texts are accepted. Therefore the following reference types are allowed only: <li>TYPE_CUSTOMS_REGISTRATION_NUMBER</li> <li>TYPE_IMPORTER_EORI_NUMBER</li> <li>TYPE_RECEIVER_EORI_NUMBER</li> <li>TYPE_IMPORTER_VAT_NUMBER</li> <li>TYPE_RECEIVER_VAT_NUMBER</li> <li>TYPE_INVOICE_NUMBER</li> <li>TYPE_SHIPPER_IOSS_NUMBER</li> <li>TYPE_SHIPPER_PVA_NUMBER</li> <li>TYPE_SHIPPER_VOEC_NUMBER</li> <li>TYPE_RECEIVER_UKIMS_NUMBER</li> <li>TYPE_IMPORTER_UKIMS_NUMBER</li> <li>TYPE_RECEIVER_DUTY_DEFERMENT_NUMBER</li> <li>TYPE_IMPORTER_DUTY_DEFERMENT_NUMBER</li> <li>TYP_CUSTOMS_AGENT_EORI_NUMBER</li> <li>TYPE_CUSTOMS_AGENT_VAT_NUMBER</li> <li>TYPE_CUSTOMS_AGENT_UKIMS_NUMBER</li> <li>TYPE_CUSTOMS_AGENT_DUTY_DEFERMENT_NUMBER</li> <li>TYPE_SENT_NUMBER</li> <li>TYPE_EKAER_NUMBER</li> <li>TYPE_UIT_NUMBER</li> <li>TYPE_ITN_NUMBER</li>",
            "items": {
              "$ref": "#/components/schemas/DLReferenceTextUCDDTO"
            }
          },
          "additionalValues": {
            "$ref": "#/components/schemas/GenericDataRecordDTO",
            "description": "Additional values for the shipment. The definition of the included fields depends on the carrier. Only field names defined in the carrier customizing are allowed here.<br> Use the <code>getCarrierProperties</code> business facade call to retrieve all valid field names for a specific carrier."
          }
        },
        "required": [
          "shipmentReference"
        ],
        "xml": {
          "name": "updateCustomsDataRequestDTO"
        }
      },
      "DLUpdateCustomsItemRequestDataDTO": {
        "type": "object",
        "description": "DTO for a few shipment item fields which can be updated after the initial creation of the shipment. This DTO includes customs data ONLY. No item net / gross weight or quantity is included, because this causes problems with packed items and is in most cases incompatible with the default shipping process. E.g. gross weight is often printed onto the label, updating weight after label printing is too late.",
        "properties": {
          "shipmentItemReference": {
            "$ref": "#/components/schemas/DLShipmentItemReferenceUCDDTO",
            "description": "Reference of the shipment item to be updated. Mandatory field."
          },
          "customsTariffNumber": {
            "type": "string",
            "description": "The customs tariff number of the shipping item's contents. <p> length=11 </p>"
          },
          "description": {
            "type": "string",
            "description": "The shipping item's description. <p> length=250 </p>"
          },
          "countryOfOriginsISOCode": {
            "type": "string",
            "description": "Country of origins. <p> length=2 </p>"
          },
          "certificateOfOrigins": {
            "type": "string",
            "description": "Certificate of origins. <p> length=50 </p>"
          },
          "customsValue": {
            "$ref": "#/components/schemas/AmountOfMoneyDTO",
            "description": "Total customs value of all item articles."
          },
          "goodsValue": {
            "$ref": "#/components/schemas/AmountOfMoneyDTO",
            "description": "Total goods value of all item articles."
          },
          "customsReferencesTexts": {
            "type": "array",
            "description": "Updates reference texts data.\nThe field may be empty when there's no need to update any references and texts.<br>\nThis update deletes all existing references with the types included in this request from the item\nand adds the references and texts from the request to the item.\n",
            "items": {
              "$ref": "#/components/schemas/DLShipmentItemReferenceTextUCDDTO"
            }
          },
          "additionalValues": {
            "$ref": "#/components/schemas/GenericDataRecordDTO",
            "description": "Additional values for the shipping item. The definition of the included fields depends on the carrier. Only field names defined in the carrier customizing are allowed here.<br> Use the <code>getCarrierProperties</code> business facade call to retrieve all valid field names for a specific carrier."
          }
        },
        "required": [
          "shipmentItemReference"
        ]
      },
      "DLUpdateCustomsShipmentRequestDataDTO": {
        "type": "object",
        "description": "Request DTO for a few shipment fields which can be updated after the initial creation of the shipment.",
        "properties": {
          "customsValue": {
            "$ref": "#/components/schemas/AmountOfMoneyDTO",
            "description": "Customs value of the shipment. Updates customs value if both fields value & currency are filled. You cannot reset or delete an existing customs value."
          },
          "goodsValue": {
            "$ref": "#/components/schemas/AmountOfMoneyDTO",
            "description": "Goods value of the shipment. Update goods value if both fields value & currency are filled. You cannot reset or delete an existing goods value."
          },
          "invoiceValue": {
            "$ref": "#/components/schemas/AmountOfMoneyDTO",
            "description": "Invoice value of the shipment. Update invoice value if both fields value & currency are filled. You cannot reset or delete an existing invoice value."
          }
        }
      }
    },
    "securitySchemes": {
      "SWAGGER_AUTH_KEY": {
        "type": "apiKey",
        "name": "X-XNSG_WEB_TOKEN",
        "in": "header"
      },
      "BASIC_AUTH": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-proxy-enabled": false
}
```