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

# createRoutingTask

Creates a new routing task and returns a unique task id.<br> <br> In case of successful creation, the response will contain the unique taskId of the created routing task. The respective routing task can be found by this task id. Proposal calculation starts in an asynchronous process. The current state of calculation can be requested by handing over the provided task id via the call of getRoutingTaskResult(GetRoutingTaskResultRequestDTO) or waitForRoutingTaskResult(WaitForRoutingTaskResultRequestDTO).<br>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Carrier Select HTTP API",
    "description": "Thank you for using our HTTP API documentation.",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://rz3.aeb.de/demo1routing/rest"
    }
  ],
  "security": [
    {
      "SWAGGER_AUTH_KEY": []
    },
    {
      "BASIC_AUTH": []
    }
  ],
  "tags": [
    {
      "name": "Routing",
      "description": "API for the handling of routing tasks"
    }
  ],
  "paths": {
    "/RoutingBFBean/createRoutingTask": {
      "post": {
        "tags": [
          "Routing"
        ],
        "summary": "createRoutingTask",
        "description": "Creates a new routing task and returns a unique task id.<br> <br> In case of successful creation, the response will contain the unique taskId of the created routing task. The respective routing task can be found by this task id. Proposal calculation starts in an asynchronous process. The current state of calculation can be requested by handing over the provided task id via the call of getRoutingTaskResult(GetRoutingTaskResultRequestDTO) or waitForRoutingTaskResult(WaitForRoutingTaskResultRequestDTO).<br>",
        "operationId": "createRoutingTask",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRoutingTaskRequestDTO"
              },
              "examples": {
                "Basic data": {
                  "description": "Basic data",
                  "value": {
                    "clientSystemId": "MY_SYSTEM",
                    "clientIdentCode": "MY_CLIENT",
                    "userName": "MY_USERNAME",
                    "resultLanguageIsoCodes": [
                      "de"
                    ],
                    "routingTask": {
                      "referenceNumber": "REF_NO",
                      "handlingUnits": [
                        {
                          "numberOfHandlingUnits": 1,
                          "singleGrossWeight": {
                            "value": 5,
                            "unit": "kg"
                          },
                          "singleDimensions": {
                            "length": 10,
                            "width": 20,
                            "height": 30,
                            "quantityUnit": "cm"
                          },
                          "handlingUnitType": "PALLET",
                          "dangerousGoodsCode": {
                            "handlingCode": "NONE"
                          }
                        }
                      ],
                      "startLocation": {
                        "address": {
                          "referenceCode": "AEB",
                          "name": "AEB HQ",
                          "street": "Sigmaringer Straße 109",
                          "postcode": "70567",
                          "city": "Stuttgart",
                          "countryISOCode": "DE",
                          "stateRegion": "BW"
                        }
                      },
                      "endLocation": {
                        "address": {
                          "referenceCode": "AEB MZ",
                          "name": "AEB Mainz",
                          "street": "Dekan-Laist-Str. 13",
                          "postcode": "55129",
                          "city": "Mainz",
                          "countryISOCode": "DE",
                          "stateRegion": "RLP"
                        }
                      },
                      "decisiveDate": "2020-12-31"
                    }
                  }
                },
                "Complete data": {
                  "description": "Complete data",
                  "value": {
                    "clientSystemId": "MY_SYSTEM",
                    "clientIdentCode": "MY_CLIENT",
                    "userName": "MY_USERNAME",
                    "resultLanguageIsoCodes": [
                      "de"
                    ],
                    "routingTask": {
                      "referenceNumber": "REF_NO",
                      "routingParms": {
                        "ratingProfile": "DEFAULT"
                      },
                      "handlingUnits": [
                        {
                          "numberOfHandlingUnits": 1,
                          "singleGrossWeight": {
                            "value": 5,
                            "unit": "kg"
                          },
                          "singleDimensions": {
                            "length": 10,
                            "width": 20,
                            "height": 30,
                            "quantityUnit": "cm"
                          },
                          "handlingUnitType": "PALLET",
                          "dangerousGoodsCode": {
                            "handlingCode": "NONE"
                          }
                        }
                      ],
                      "parties": [
                        {
                          "address": {
                            "referenceCode": "AEB",
                            "name": "AEB SE",
                            "street": "Sigmaringer Straße 109",
                            "postcode": "70567",
                            "city": "Stuttgart",
                            "countryISOCode": "DE",
                            "stateRegion": "BW"
                          },
                          "partyRole": "SHIPPER"
                        }
                      ],
                      "startLocation": {
                        "address": {
                          "referenceCode": "AEB",
                          "name": "AEB SE",
                          "street": "Sigmaringer Straße 109",
                          "postcode": "70567",
                          "city": "Stuttgart",
                          "countryISOCode": "DE",
                          "stateRegion": "BW"
                        }
                      },
                      "endLocation": {
                        "hopRef": {
                          "identCode": "FRA"
                        }
                      },
                      "decisiveDate": "2020-12-31",
                      "readyForShippingDate": {
                        "dateInTimezone": "2020-12-24 12:00:00",
                        "timezone": "GMT+01:00"
                      },
                      "confirmedDeliveryDate": {
                        "dateInTimezone": "2020-12-31 18:00:00",
                        "timezone": "GMT+01:00"
                      },
                      "termsOfDeliveryCode": "DDP",
                      "requirements": [
                        {
                          "requirementType": "SERVICE_LEVEL",
                          "requirementCode": "EXPRESS"
                        }
                      ],
                      "isDocumentShipment": false,
                      "loadingMeters": 5,
                      "palletPlaces": 2,
                      "addFreightCalculationData": {
                        "modeOfTransportIdentCode": "AIR",
                        "distance": {
                          "value": 100,
                          "unit": "km"
                        },
                        "goodsValue": {
                          "value": 1000,
                          "currencyIso": "EUR"
                        },
                        "customsValue": {
                          "value": 500,
                          "currencyIso": "EUR"
                        },
                        "numberOfDeliveryNotes": 1,
                        "numberOfInvoices": 2
                      }
                    }
                  }
                }
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/CreateRoutingTaskRequestDTO"
              },
              "examples": {
                "Basic data": {
                  "description": "Basic data",
                  "value": {
                    "clientSystemId": "MY_SYSTEM",
                    "clientIdentCode": "MY_CLIENT",
                    "userName": "MY_USERNAME",
                    "resultLanguageIsoCodes": [
                      "de"
                    ],
                    "routingTask": {
                      "referenceNumber": "REF_NO",
                      "handlingUnits": [
                        {
                          "numberOfHandlingUnits": 1,
                          "singleGrossWeight": {
                            "value": 5,
                            "unit": "kg"
                          },
                          "singleDimensions": {
                            "length": 10,
                            "width": 20,
                            "height": 30,
                            "quantityUnit": "cm"
                          },
                          "handlingUnitType": "PALLET",
                          "dangerousGoodsCode": {
                            "handlingCode": "NONE"
                          }
                        }
                      ],
                      "startLocation": {
                        "address": {
                          "referenceCode": "AEB",
                          "name": "AEB HQ",
                          "street": "Sigmaringer Straße 109",
                          "postcode": "70567",
                          "city": "Stuttgart",
                          "countryISOCode": "DE",
                          "stateRegion": "BW"
                        }
                      },
                      "endLocation": {
                        "address": {
                          "referenceCode": "AEB MZ",
                          "name": "AEB Mainz",
                          "street": "Dekan-Laist-Str. 13",
                          "postcode": "55129",
                          "city": "Mainz",
                          "countryISOCode": "DE",
                          "stateRegion": "RLP"
                        }
                      },
                      "decisiveDate": "2020-12-31"
                    }
                  }
                },
                "Complete data": {
                  "description": "Complete data",
                  "value": {
                    "clientSystemId": "MY_SYSTEM",
                    "clientIdentCode": "MY_CLIENT",
                    "userName": "MY_USERNAME",
                    "resultLanguageIsoCodes": [
                      "de"
                    ],
                    "routingTask": {
                      "referenceNumber": "REF_NO",
                      "routingParms": {
                        "ratingProfile": "DEFAULT"
                      },
                      "handlingUnits": [
                        {
                          "numberOfHandlingUnits": 1,
                          "singleGrossWeight": {
                            "value": 5,
                            "unit": "kg"
                          },
                          "singleDimensions": {
                            "length": 10,
                            "width": 20,
                            "height": 30,
                            "quantityUnit": "cm"
                          },
                          "handlingUnitType": "PALLET",
                          "dangerousGoodsCode": {
                            "handlingCode": "NONE"
                          }
                        }
                      ],
                      "parties": [
                        {
                          "address": {
                            "referenceCode": "AEB",
                            "name": "AEB SE",
                            "street": "Sigmaringer Straße 109",
                            "postcode": "70567",
                            "city": "Stuttgart",
                            "countryISOCode": "DE",
                            "stateRegion": "BW"
                          },
                          "partyRole": "SHIPPER"
                        }
                      ],
                      "startLocation": {
                        "address": {
                          "referenceCode": "AEB",
                          "name": "AEB SE",
                          "street": "Sigmaringer Straße 109",
                          "postcode": "70567",
                          "city": "Stuttgart",
                          "countryISOCode": "DE",
                          "stateRegion": "BW"
                        }
                      },
                      "endLocation": {
                        "hopRef": {
                          "identCode": "FRA"
                        }
                      },
                      "decisiveDate": "2020-12-31",
                      "readyForShippingDate": {
                        "dateInTimezone": "2020-12-24 12:00:00",
                        "timezone": "GMT+01:00"
                      },
                      "confirmedDeliveryDate": {
                        "dateInTimezone": "2020-12-31 18:00:00",
                        "timezone": "GMT+01:00"
                      },
                      "termsOfDeliveryCode": "DDP",
                      "requirements": [
                        {
                          "requirementType": "SERVICE_LEVEL",
                          "requirementCode": "EXPRESS"
                        }
                      ],
                      "isDocumentShipment": false,
                      "loadingMeters": 5,
                      "palletPlaces": 2,
                      "addFreightCalculationData": {
                        "modeOfTransportIdentCode": "AIR",
                        "distance": {
                          "value": 100,
                          "unit": "km"
                        },
                        "goodsValue": {
                          "value": 1000,
                          "currencyIso": "EUR"
                        },
                        "customsValue": {
                          "value": 500,
                          "currencyIso": "EUR"
                        },
                        "numberOfDeliveryNotes": 1,
                        "numberOfInvoices": 2
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateRoutingTaskResponseDTO"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/CreateRoutingTaskResponseDTO"
                }
              }
            }
          }
        },
        "security": [
          {
            "BASIC_AUTH": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "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
          }
        }
      },
      "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"
          }
        }
      },
      "DateAndZoneDTO": {
        "type": "object",
        "description": "Date and timezone.",
        "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>"
          }
        }
      },
      "CreateRoutingTaskResponseDTO": {
        "type": "object",
        "description": "Response DTO for create routing rask.",
        "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"
            }
          },
          "taskId": {
            "type": "string",
            "description": "The taskId is a unique value that is generated for a requested routing task. Use this taskId to request the calculation result in a separate call of getRoutingTaskResult(GetRoutingTaskResultRequestDTO). <p>length=50</p>"
          }
        }
      },
      "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>"
          }
        }
      },
      "BillingAdditionalFreightCalculationDataDTO": {
        "type": "object",
        "description": "The BillingAdditionalFreightCalculationDataDTO provides data to send to Logistics Costs Management. It fills some fields BFreightTransportExtendedDataDTO, but not all. In addition it provides a list of custom fields which must be also customized with the same field name in Logistics Costs Management.",
        "properties": {
          "modeOfTransportIdentCode": {
            "type": "string",
            "description": "Identifier for the mode of transport. Can be empty, if not needed or if it is not known."
          },
          "distance": {
            "$ref": "#/components/schemas/QuantityDTO",
            "description": "Distance of the transport relation, precalculated by the client system. Can be empty."
          },
          "goodsValue": {
            "$ref": "#/components/schemas/AmountOfMoneyDTO",
            "description": "goods value."
          },
          "customsValue": {
            "$ref": "#/components/schemas/AmountOfMoneyDTO",
            "description": "customs value."
          },
          "numberOfDeliveryNotes": {
            "type": "integer",
            "format": "int32",
            "description": "represents the number of delivery notes."
          },
          "numberOfInvoices": {
            "type": "integer",
            "format": "int32",
            "description": "represents the number of invoices."
          },
          "cusBillingFields": {
            "type": "array",
            "description": "Custom fields for Logistics Cost Management.  Every custom field must also be defined in Logistics Cost Management  in a structured type of a Smart-Rules module with the same field name and type.",
            "items": {
              "$ref": "#/components/schemas/CusBillingFieldDTO"
            }
          }
        }
      },
      "CreateRoutingTaskRequestDTO": {
        "type": "object",
        "description": "Request DTO for create routing task.",
        "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"
            }
          },
          "routingTask": {
            "$ref": "#/components/schemas/RoutingTaskDTO",
            "description": "The single routing task which should be routed."
          }
        },
        "required": [
          "routingTask"
        ]
      },
      "CuboidDimensionsDTO": {
        "type": "object",
        "description": "Dimensions of a cuboid with length, width, height and quantityUnit.",
        "properties": {
          "length": {
            "type": "number",
            "description": "Represents the length of the dimensions. <br> length = 20, scale = 6"
          },
          "width": {
            "type": "number",
            "description": "Represents the width of the dimensions. <br> length = 20, scale = 6"
          },
          "height": {
            "type": "number",
            "description": "Represents the height of the dimensions. <br> length = 20, scale = 6"
          },
          "quantityUnit": {
            "type": "string",
            "description": "Identifier of the quantity unit. <br> length = 10"
          }
        }
      },
      "CusBillingFieldDTO": {
        "type": "object",
        "description": "This is a standard DTO class, which holds customized content. Custom field dto, send to Logistics Cost Management. Must also be defined in Logistics Cost Management, otherwise the field is ignored.",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the field. This name must be identical to the configured, customized field in Logistic Costs Management, otherwise this custom field is ignored."
          },
          "type": {
            "type": "string",
            "description": "type of the field. Supported types are: string, int, boolean, decimal , etc. see also constants of this class."
          },
          "value": {
            "type": "string",
            "description": "<p>Value of the custom 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> </ul>"
          }
        },
        "required": [
          "name",
          "type",
          "value"
        ]
      },
      "DangerousGoodsCodeDTO": {
        "type": "object",
        "description": "Information about dangerous goods.",
        "properties": {
          "handlingCode": {
            "type": "string",
            "default": "NONE",
            "description": "Indicates the type of dangerous goods Valid values are: <li>NONE\t\t(no dangerous goods) <li>NORMAL \t(dangerous goods) <li>LQ\t\t(limited quantities) <li>EQ\t\t(excepted quantities)",
            "enum": [
              "NONE",
              "NORMAL",
              "EQ",
              "LQ"
            ]
          }
        },
        "required": [
          "handlingCode"
        ]
      },
      "HopReferenceDTO": {
        "type": "object",
        "description": "Representation of a handover point as a defined entity",
        "properties": {
          "identCode": {
            "type": "string",
            "description": "IdentCode of the hand over point <br> length = 50 "
          }
        },
        "required": [
          "identCode"
        ]
      },
      "QuantityDTO": {
        "type": "object",
        "description": "A quantity with a value and a quantity unit. Quantity units are encoded by using AEB unit codes mainly based on the International System of Unit (e.g. 'Gram' is encoded by the code 'gr') or - if supported - UNECE unit codes (e.g. 'Gram' is encoded by the code 'GRM').<br>Recoding of the quantity unit code from capital letters to small letters (e.g. from 'LB' to 'lb') may be supported, depending on the AEB product.<br>The quantity unit type is specified by the usage context, i.e. if this quantity is a weight, a volume or similar.",
        "properties": {
          "value": {
            "type": "number",
            "description": "The value of the quantity.",
            "maximum": 999999999999.999,
            "multipleOf": 0.001
          },
          "unit": {
            "type": "string",
            "description": " \t\t\tIdentifier of the quantity unit. Use quantity units known from your AEB application or alternatively domain specific or legacy quantity codes, but not the UNECE code.\n \t\t\tFor UNECE unit codes use the 'uneceUnit' field, if supported.\n\n \t\t\tWeight unit codes:\n \t\t\t* kg - Kilogram\n         \t* gr - Gram\n         \t* t - Metric ton\n         \t* lb - Pound\n         \t* oz - Ounce\n\n         \tLength unit codes:\n         \t* m - Meter\n         \t* mm - Milimeter\n         \t* cm - Centimeter\n         \t* dm - Decimeter\n         \t* km - Kilometer\n         \t* ft - Foot\n         \t* in - Inch\n         \t* mi - Mile\n         \t* nm - Nanometer\n         \t* µm - Micrometer\n\n         \tVolume unit codes:\n         \t* ccm - Cubic centimeter\n         \t* cdm - Cubic decimeter\n         \t* m3 - Cubic meter\n         \t* ml - Milliliter\n         \t* cl - Centiliter\n         \t* hl - Hectoliter\n         \t* l - Liter\n         \t* cuin - Cubic inch\n         \t* cuft - Cubic foot\n\n         \tQuantity unit codes:\n         \t* St - Piece\n         \t* Paar - Pair\n\n         \tDensity unit codes:\n         \t* g/ccm - grams per cubic centimeter\n         \t* kg/m3 - kilogram per cubic meter\n\n         \tTime unit codes:\n         \t* h - Hour\n         \t* stu - Hour\n         \t* std - Hour\n         \t* oph - Operational hour\n         \t* s - Second\n         \t* min - Minute\n         \t* 15m - 15 mins\n         \t* d - Day\n         \t* tag - Day\n         \t* wch - Week\n         \t* mon - Month\n         \t* jhr - Year\n         \t* mis - Millisecond\n         \t* ms - Microsecond\n         \t* ns - Nanosecond\n         \t* ps - Picosecond\n\n         \tArea unit codes:\n \t\t\t* qm - Square meter\n         \t* qmm - Square millimeter\n         \t* qcm - Square centimeter\n         \t* qdm - Square decimeter\n",
            "example": "kg",
            "maxLength": 10
          },
          "uneceUnit": {
            "type": "string",
            "description": " \t\t\tIdentifier of the quantity unit based on 'Recommendation No. 20 - Units of Measure used in International Trade'.<br/>\n \t\t\tThe #uneceUnit can be specified alternatively to #unit but is currently not supported by all AEB services. Please speak to your contact person at AEB if you are unsure whether #uneceUnit is supported or not.\n\n \t\t\tWeight unit codes:\n \t\t\t* `KGM` - Kilogram\n \t\t\t* `GRM` - Gram (10⁻³ kg)\n \t\t\t* `TNE` - Metric ton (10³ kg)\n \t\t\t* `LBR` - Pound (0,453 592 37 kg)\n \t\t\t* `ONZ` - Ounce (2,834 952 x 10⁻² kg)\n\n \t\t\tLength unit codes:\n \t\t\t* `MTR` - Meter\n \t\t\t* `CMT` - Centimeter (10⁻² m)\n \t\t\t* `MMT` - Millimeter (10⁻³ m)\n \t\t\t* `KMT` - Kilometer (10³ m)\n \t\t\t* `YRD` - Yard (0,914 4 m)\n \t\t\t* `FOT` - Foot (0,304 8 m)\n \t\t\t* `INH` - Inch (25,4 x 10⁻³ m)\n \t\t\t* `SMI` - Mile (statute mile) (1609,344 m)\n\n \t\t\tVolume unit codes:\n \t\t\t* `MTQ` - Cubic meter\n \t\t\t* `CMQ` - Cubic centimeter (10⁻⁶ m³)\n \t\t\t* `HLT` - Hectoliter (10⁻¹ m³)\n \t\t\t* `LTR` - Liter (10⁻³ m³)\n \t\t\t* `MLT` - Milliliter (10⁻⁶ m³)\n \t\t\t* `YDQ` - Cubic yard (0,764 555 m³)\n \t\t\t* `FTQ` - Cubic foot (2,831 685 x 10⁻² m³)\n \t\t\t* `INQ` - Cubic inch (16,387 064 x 10⁻⁶ m³)\n\n \t\t\tArea unit codes:\n \t\t\t* `MTK` - Square meter\n \t\t\t* `CMK` - Square centimeter (10⁻⁴ m²)\n \t\t\t* `MMK` - Square millimeter (10⁻⁶ m²)\n \t\t\t* `YDK` - Square yard (8.361 274 x 10⁻¹ m² )\n \t\t\t* `FTK` - Square foot (9,290 304 x 10⁻² m²)\n \t\t\t* `INK` - Square inch (6,451 6 x 10⁻⁴ m²)\n\n \t\t\tQuantity unit codes:\n \t\t\t* `NAR` - Number of articles\n \t\t\t* `NPR` - Number of pairs\n \t\t\t* `CEN` - A unit of count defining the number of units in multiples of 100\n \t\t\t* `MIL` - A unit of count defining the number of units in multiples of 1000\n",
            "example": "NAR",
            "maxLength": 3
          }
        }
      },
      "RoutingAddressDTO": {
        "type": "object",
        "description": "DTO to provide address data",
        "properties": {
          "referenceCode": {
            "type": "string",
            "description": "Reference code,  <p>length=50</p>"
          },
          "name": {
            "type": "string",
            "description": "First address line  <p>length=40</p>"
          },
          "street": {
            "type": "string",
            "description": "Street (line 1) of the address. Is required because some validation requires streets. <p>length=40</p>"
          },
          "postcode": {
            "type": "string",
            "description": "Postcode of the address. Postcode is checked with the postcode format of the given country. <p>length=10</p>"
          },
          "city": {
            "type": "string",
            "description": "City of the address. <p>length=40</p>"
          },
          "countryISOCode": {
            "type": "string",
            "description": "Country of address <p>length=2</p>"
          },
          "stateRegion": {
            "type": "string",
            "description": "The state or region <p>length=40</p>"
          }
        },
        "required": [
          "city",
          "countryISOCode",
          "name",
          "referenceCode",
          "street"
        ]
      },
      "RoutingParmsDTO": {
        "type": "object",
        "description": "Detailed settings for proposal, supplement and ranking calculations.",
        "properties": {
          "ratingProfile": {
            "type": "string",
            "description": "The ident code of the profile that will be used in routing. A profile contains configured strategies and options how  routing for this task will be done. If no profile is set a default profile will be used. <p>length=50</p>"
          }
        }
      },
      "RoutingPartyDTO": {
        "type": "object",
        "description": "A party contains a company with information on the address of the given party. Furthermore, the company fulfills one or more certain roles within the routing context, which are also stored in this DTO.",
        "properties": {
          "address": {
            "$ref": "#/components/schemas/RoutingAddressDTO",
            "description": "Address data of the party."
          },
          "partyRole": {
            "type": "string",
            "description": "<p> Role of the location, might be shipping point, consignee. </p> <p> Possible values are: (may be more in the future). </p> <ul> <li>\"SHIPPER\"</li> <li>\"SHIPPINGPOINT\"</li> <li>\"CONSIGNEE\"</li> </ul>",
            "enum": [
              "SHIPPER",
              "SHIPPINGPOINT",
              "CONSIGNEE"
            ]
          }
        },
        "required": [
          "address",
          "partyRole"
        ]
      },
      "RoutingRequirementDTO": {
        "type": "object",
        "description": "Representation of a requirement, classified by a requirement type and a requirement code. <br> This DTO is used in context of creating a RoutingTasks.",
        "properties": {
          "requirementType": {
            "type": "string",
            "description": "Type of requirement.<br> for example: serviceLevel, mode of transport, special treatment COD, insurance <p> length=50 </p>"
          },
          "requirementCode": {
            "type": "string",
            "description": "Name of requirement.<br> for example: Economy, Standard, Express Sea, Road, Air A, B, C Cash, Cheque, <p>length=50</p>"
          }
        },
        "required": [
          "requirementCode",
          "requirementType"
        ]
      },
      "RoutingTaskDTO": {
        "type": "object",
        "description": "The RoutingTaskDTO is the main representation of a routing task. The data describes a set of different handling units which shall be transported in one process. Additionally, involved parties, important dates, requirements and other parameters of the request are stored within this DTO. <br> <br> Based on these data, the process of preselection calculates valid proposals. Furthermore, the data of this RoutingTaskDTO might be used during the process of supplement calculation.",
        "properties": {
          "referenceNumber": {
            "type": "string",
            "description": "The clients reference number for the task. <p>length=50</p>"
          },
          "routingParms": {
            "$ref": "#/components/schemas/RoutingParmsDTO",
            "description": "The parms for routing."
          },
          "handlingUnits": {
            "type": "array",
            "description": "The handling units of the routing task.",
            "items": {
              "$ref": "#/components/schemas/RoutingTaskHandlingUnitDTO"
            }
          },
          "parties": {
            "type": "array",
            "description": "The parties of the routing task. ",
            "items": {
              "$ref": "#/components/schemas/RoutingPartyDTO"
            }
          },
          "startLocation": {
            "$ref": "#/components/schemas/RoutingTaskLocationDTO",
            "description": "The start location of the routing task"
          },
          "endLocation": {
            "$ref": "#/components/schemas/RoutingTaskLocationDTO",
            "description": "The end location of the routing task"
          },
          "decisiveDate": {
            "type": "string",
            "description": "The string representation of the Date  in the format yyyy-MM-dd. The date is used when it comes to exclude configuration elements that have a validity date. <p>length=10</p>"
          },
          "readyForShippingDate": {
            "$ref": "#/components/schemas/DateAndZoneDTO",
            "description": "Ready for shipping date as timestamp and zone. If provided, a timestamp (yyyy-MM-dd HH:mm:ss) and  timezone (valid timezone id) have to be supplied. There is no fallback and if a zone should be assumed, UTC can be provided."
          },
          "confirmedDeliveryDate": {
            "$ref": "#/components/schemas/DateAndZoneDTO",
            "description": "Confirmed delivery date of the routing task as timestamp and zone. If provided, a timestamp (yyyy-MM-dd HH:mm:ss) and  timezone (valid timezone id) have to be supplied. There is no fallback and if a zone should be assumed, UTC can be provided."
          },
          "termsOfDeliveryCode": {
            "type": "string",
            "description": "The clients terms of delivery code. Value is not checked in routing but will be checked in carrier validation and is probably needed for freight calculation.   * <p>length=20</p>"
          },
          "requirements": {
            "type": "array",
            "description": "The requirements of the routing task.",
            "items": {
              "$ref": "#/components/schemas/RoutingRequirementDTO"
            }
          },
          "isDocumentShipment": {
            "type": "boolean",
            "description": "Indicates whether the routing task is a document shipment or goods shipment.<br> If true, the shipment is a document shipment.<br> If false, the shipment is a goods shipment.<br> False (= goods shipment) is the default when no value is supplied."
          },
          "loadingMeters": {
            "type": "number",
            "description": "The loading meters of the routing task. <p>length=15, scale = 3</p>"
          },
          "palletPlaces": {
            "type": "number",
            "description": "The pallet places of the routing task. <p>length=15, scale = 3</p>"
          },
          "addFreightCalculationData": {
            "$ref": "#/components/schemas/BillingAdditionalFreightCalculationDataDTO",
            "description": "Additional and custom fields for Logistics Cost Management. You do not need to fill this DTO if no freight costs are calculated by Carrier Select. The BillingAdditionalFreightCalculationData provides data to send to Logistics Costs Management. It fills some fields BFreightTransportExtendedDataDTO, but not all. In addition it provides a simple list of custom fields which must be also customized with the same field name  in Logistics Costs Management."
          },
          "procedureIndicator": {
            "type": "string",
            "description": "(Special) procedure indicator."
          },
          "deliveryPriority": {
            "type": "string",
            "description": "Delivery priority or delivery condition."
          },
          "shippingCondition": {
            "type": "string",
            "description": "Shipping condition."
          }
        },
        "required": [
          "decisiveDate",
          "endLocation",
          "handlingUnits",
          "startLocation"
        ]
      },
      "RoutingTaskHandlingUnitDTO": {
        "type": "object",
        "description": "Basic data of a handling unit which shall be transported as defined in the RoutingTaskDTO.",
        "properties": {
          "numberOfHandlingUnits": {
            "type": "integer",
            "format": "int32",
            "description": "Number of handling units. Maximum value is 999. <p>length=3</p>"
          },
          "singleGrossWeight": {
            "$ref": "#/components/schemas/QuantityDTO",
            "description": "The gross weight of a single handling unit."
          },
          "singleDimensions": {
            "$ref": "#/components/schemas/CuboidDimensionsDTO",
            "description": "The dimensions of the package."
          },
          "handlingUnitType": {
            "type": "string",
            "description": "The identCode of the handling unit type. length=50"
          },
          "processingIndicator": {
            "type": "string",
            "description": "Indicator that specifies how the handling unit is to be handled during transport, e.g. hanging, vertical, upright, or roll-transport. length=50"
          },
          "dangerousGoodsCode": {
            "$ref": "#/components/schemas/DangerousGoodsCodeDTO",
            "description": "Dangerous goods data concerning the handling unit. Only relevant when shipping dangerous goods. If the dangerous goods code depends on the mode of transport, and the mode of transport is not fix probably two separate routing tasks should be transmitted. In this case the requirements should be used to ensure that only proposals for the mode of transport will be calculated that match with the dangerous goods code"
          }
        },
        "required": [
          "handlingUnitType",
          "numberOfHandlingUnits",
          "singleDimensions",
          "singleGrossWeight"
        ]
      },
      "RoutingTaskLocationDTO": {
        "type": "object",
        "description": "Class for location based routing task data for BF. Contains data of a complete address or a reference to a hand over point and its location/address in the master data. Either the address or the hopRef is required, the other value must be null.",
        "properties": {
          "address": {
            "$ref": "#/components/schemas/RoutingAddressDTO",
            "description": "The address data."
          },
          "hopRef": {
            "$ref": "#/components/schemas/HopReferenceDTO",
            "description": "Reference to a handover point."
          }
        }
      }
    },
    "securitySchemes": {
      "SWAGGER_AUTH_KEY": {
        "type": "apiKey",
        "name": "X-XNSG_WEB_TOKEN",
        "in": "header"
      },
      "BASIC_AUTH": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-proxy-enabled": false
}
```