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

# getSupplementTaskResult

Returns an intermediate result of calculated supplements for the provided task id and its current calculation state.<br> <br> Possible states of calculation are:<br> - INPROGRESS: entries (and ordering) might change in future calls. <br> - COMPLETE: ordering and entries fixed, all supplements are calculated. <br> <br> A new supplement task can be created by using createSupplementTask(CreateSupplementTaskRequestDTO).<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/getSupplementTaskResult": {
      "post": {
        "tags": [
          "Routing"
        ],
        "summary": "getSupplementTaskResult",
        "description": "Returns an intermediate result of calculated supplements for the provided task id and its current calculation state.<br> <br> Possible states of calculation are:<br> - INPROGRESS: entries (and ordering) might change in future calls. <br> - COMPLETE: ordering and entries fixed, all supplements are calculated. <br> <br> A new supplement task can be created by using createSupplementTask(CreateSupplementTaskRequestDTO).<br>",
        "operationId": "getSupplementTaskResult",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetSupplementTaskResultRequestDTO"
              },
              "examples": {
                "Basic data": {
                  "description": "Basic data",
                  "value": {
                    "clientSystemId": "MY_SYSTEM",
                    "clientIdentCode": "MY_CLIENT",
                    "userName": "MY_USERNAME",
                    "resultLanguageIsoCodes": [
                      "de"
                    ],
                    "taskId": "MY_SUPPLEMENT_TASK_ID"
                  }
                }
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/GetSupplementTaskResultRequestDTO"
              },
              "examples": {
                "Basic data": {
                  "description": "Basic data",
                  "value": {
                    "clientSystemId": "MY_SYSTEM",
                    "clientIdentCode": "MY_CLIENT",
                    "userName": "MY_USERNAME",
                    "resultLanguageIsoCodes": [
                      "de"
                    ],
                    "taskId": "MY_SUPPLEMENT_TASK_ID"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetSupplementTaskResultResponseDTO"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetSupplementTaskResultResponseDTO"
                }
              }
            }
          }
        },
        "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>"
          }
        }
      },
      "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>"
          }
        }
      },
      "ServiceDTO": {
        "type": "object",
        "description": "Representation of a service classified by a service code, a provider code and value-added service codes. <br> This DTO is used in context of creating a SupplementTask.",
        "properties": {
          "serviceIdentCode": {
            "type": "string",
            "description": "The ID of the service."
          },
          "serviceProviderIdentCode": {
            "type": "string",
            "description": "The ID of the provider."
          },
          "vasIdentCodes": {
            "type": "array",
            "description": "The IDs of the value added services.",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "serviceIdentCode",
          "serviceProviderIdentCode"
        ]
      },
      "PricingSupplementDataDTO": {
        "type": "object",
        "description": "Price information.",
        "properties": {
          "currencyIsoCode": {
            "type": "string",
            "description": "Currency of calculated price in client currency. <br> length = 3"
          },
          "value": {
            "type": "number",
            "description": "Value of calculated price in client currency. <br> length = 15, scale = 2"
          },
          "settlementPrices": {
            "type": "array",
            "description": "Settlement prices, grouped by currency. The settlement prices may be different to the price in client currency and may include prices in different currencies. The list includes all settlement item prices, grouped by settlement currency. Each currency group is summed up, so that only one entry per currency is in this list.",
            "items": {
              "$ref": "#/components/schemas/AmountOfMoneyDTO"
            }
          }
        },
        "required": [
          "currencyIsoCode",
          "settlementPrices",
          "value"
        ]
      },
      "RouteScheduleDTO": {
        "type": "object",
        "description": "DTO to provide a result of a schedule calculation. It's values are filled depending on the calculation state and the calculation mode.",
        "properties": {
          "state": {
            "type": "string",
            "description": "Calculation state of this schedule. Can have the following values:<br> - PENDING: The routing proposals are still to be calculated. <br> - PROCESSED: Calculation is complete and has valid values<br> - ABORTED: Carrier Select returns an exception.<br> - ERROR: An error was occurred in  the subsequent systems. E.g. Logistics Cost Management.<br> - EXCLUDED: No schedule was calculated as too many service proposals were determined for the request.<br>"
          },
          "configurationIdentCode": {
            "type": "string",
            "description": "Identcode of configuration used to calculate this DTO."
          },
          "additionalInfo": {
            "type": "array",
            "description": "Additional information about the route schedule. <p> length of the translated text=280 </p>",
            "items": {
              "$ref": "#/components/schemas/TextInLanguageDTO"
            }
          },
          "earliestShippingDate": {
            "$ref": "#/components/schemas/DateAndZoneDTO",
            "description": "The calculated earliest shipping date. Filled when the schedule calculation state is PROCESSED and there was a forward calculation."
          },
          "latestShippingDate": {
            "$ref": "#/components/schemas/DateAndZoneDTO",
            "description": "The calculated latest shipping date. Filled when the schedule calculation state is PROCESSED and there was a backwards calculation."
          },
          "earliestDeliveryDate": {
            "$ref": "#/components/schemas/DateAndZoneDTO",
            "description": "The calculated earliest delivery date. Filled when the schedule calculation state is PROCESSED and there was a forward calculation."
          },
          "latestDeliveryDate": {
            "$ref": "#/components/schemas/DateAndZoneDTO",
            "description": "The calculated latest delivery date. Filled when the schedule calculation state is PROCESSED and there was a backwards calculation."
          },
          "internalId": {
            "type": "string",
            "description": "The unique ID of the route schedule. Can be used to uniquely identify the route schedule when requesting the routing task results several times. This is a temporary, unique ID. In very rare cases you may get a different unique ID for the same route schedule and same taskId  (after server restart)."
          }
        },
        "required": [
          "configurationIdentCode",
          "state"
        ]
      },
      "RoutingSupplementDTO": {
        "type": "object",
        "description": "This supplement DTO is a container for additional information. One proposal can have multiple supplements. Supplements are calculated individually. A routing task can have multiple proposals whose supplements may not be synchronously calculated.",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of this supplement as configured the Routing Engine."
          },
          "state": {
            "type": "string",
            "description": "Calculation state of this supplement. Can have the following values:<br> - PROCESSED: Calculation is complete and has valid values.<br> - ABORTED: Carrier Select returns an exception.<br> - ERROR: An error was occurred in  the subsequent systems. E.g. Logistics Cost Management.<br>"
          },
          "dataType": {
            "type": "string",
            "description": "Data type contains (simple) name of class of the data holding field in RoutingSupplementDataDTO, i.e. <ul> <li>  ServiceVasValidationSupplementDataDTO </li><li> PricingSupplementDataDTO </li><li> StarRatingSupplementDataDTO </li><li> ValueRatingSupplementDataDTO </li></ul>"
          },
          "additionalInfo": {
            "type": "array",
            "description": "Additional information about the supplement. Depending on the kind of supplement a text with short and valuable content about the supplement. e.g. additional Information about prices, availabilty or errors that occured. <p> length of the translated text=280 </p>",
            "items": {
              "$ref": "#/components/schemas/TextInLanguageDTO"
            }
          },
          "data": {
            "$ref": "#/components/schemas/RoutingSupplementDataDTO",
            "description": "Holds three fields where each field contains individual data depending on its type. Only one data field is filled at the same for each RoutingSupplementDataDTO. The field dataType of RoutingSupplementDTO determines which data can be expectedto be filled. Expected data can be for example: <ul> <li> ServiceVasValidationSupplementDataDTO</li> <li> PricingSupplementDataDTO</li> <li> StarRatingSupplementDataDTO</li> </ul>"
          }
        },
        "required": [
          "dataType",
          "name",
          "state"
        ]
      },
      "RoutingSupplementDataDTO": {
        "type": "object",
        "description": "Container class for all supplement dependent data for BF. Contains additional data calculated by respective adapters based on a proposal for a routing task. Depending on the type of individual supplements, the data is hold in its respective field. Only one field may be filled at the same time.",
        "properties": {
          "validationData": {
            "$ref": "#/components/schemas/ServiceVasValidationSupplementDataDTO",
            "description": "Result on validation"
          },
          "pricingData": {
            "$ref": "#/components/schemas/PricingSupplementDataDTO",
            "description": "Price information."
          },
          "starRatingData": {
            "$ref": "#/components/schemas/StarRatingSupplementDataDTO",
            "description": "Star rating"
          },
          "valueRatingData": {
            "$ref": "#/components/schemas/ValueRatingSupplementDataDTO",
            "description": "Value rating"
          }
        }
      },
      "RoutingSupplementTypeDTO": {
        "type": "object",
        "description": "Each supplement is characterized by a unique name defined by the user and its dataType. It defines one type of supplement.",
        "properties": {
          "name": {
            "type": "string",
            "description": "Unique name of supplement <p> length=50 </p>"
          },
          "dataType": {
            "type": "string",
            "description": "Class short name of SupplementDataDTO e.g. 'StarRatingSupplementDataDTO'"
          }
        },
        "required": [
          "dataType",
          "name"
        ]
      },
      "ServiceVasValidationSupplementDataDTO": {
        "type": "object",
        "description": "Result of validation",
        "properties": {
          "validationResult": {
            "type": "string",
            "description": "Possible values: OK, UNDEFINED, REJECTED"
          }
        },
        "required": [
          "validationResult"
        ]
      },
      "StarRatingSupplementDataDTO": {
        "type": "object",
        "description": "Holds the star rating",
        "properties": {
          "starRatingValue": {
            "type": "integer",
            "format": "int32",
            "description": "Possible values: 1, 2, 3, 4, 5;"
          }
        },
        "required": [
          "starRatingValue"
        ]
      },
      "ValueRatingSupplementDataDTO": {
        "type": "object",
        "description": "Holds the value rating.",
        "properties": {
          "value": {
            "type": "string",
            "description": "Actual value for the rating <p>length=50</p>"
          }
        },
        "required": [
          "value"
        ]
      },
      "GetSupplementTaskResultResponseDTO": {
        "type": "object",
        "description": "Response DTO of a supplement task request.",
        "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"
            }
          },
          "supplementTaskResult": {
            "$ref": "#/components/schemas/SupplementTaskResultDTO",
            "description": "Contains information on the current calculation status for the requested supplement task."
          }
        }
      },
      "SupplementTaskResultDTO": {
        "type": "object",
        "description": "Contains a list of calculated supplements and information on the current calculation status for for the routing task with the given taskId.",
        "properties": {
          "state": {
            "type": "string",
            "description": "Possible states of calculation are:<br> - INPROGRESS: Some supplements have not been calculated yets.<br>- COMPLETE: All supplements have been calculated.<br>"
          },
          "taskId": {
            "type": "string",
            "description": "Unique taskId of the supplement task. <p>length=50</p>"
          },
          "referenceNumber": {
            "type": "string",
            "description": "The reference number for the supplement task. <p>length=50</p>"
          },
          "service": {
            "$ref": "#/components/schemas/ServiceDTO",
            "description": "The service of the task."
          },
          "routeSchedule": {
            "$ref": "#/components/schemas/RouteScheduleDTO",
            "description": "Schedule calculation information of the route. If not provided, no schedule calculation has been done for the route."
          },
          "supplements": {
            "type": "array",
            "description": "List of supplements for this service.",
            "items": {
              "$ref": "#/components/schemas/RoutingSupplementDTO"
            }
          },
          "supportedSupplementTypes": {
            "type": "array",
            "description": "List of supported supplements types that are calculated for this supplement task.",
            "items": {
              "$ref": "#/components/schemas/RoutingSupplementTypeDTO"
            }
          }
        },
        "required": [
          "service",
          "state",
          "supportedSupplementTypes",
          "taskId"
        ]
      },
      "GetSupplementTaskResultRequestDTO": {
        "type": "object",
        "description": "Request DTO to get the current calculation status for the supplement task defined by the provided task id.",
        "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"
            }
          },
          "taskId": {
            "type": "string",
            "description": "The task id is a unique value that was generated for requesting the results of the according supplement task. It is returned when the the supplement task is created. <p>length=50</p>"
          }
        },
        "required": [
          "taskId"
        ]
      }
    },
    "securitySchemes": {
      "SWAGGER_AUTH_KEY": {
        "type": "apiKey",
        "name": "X-XNSG_WEB_TOKEN",
        "in": "header"
      },
      "BASIC_AUTH": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-proxy-enabled": false
}
```