openapi: 3.2.0
info:
title: Trade Compliance Management HTTP License Management API
description: Thank you for using our HTTP API documentation.
version: '4.0'
servers:
- url: https://rz3.aeb.de/test4ce/rest
security:
- SWAGGER_AUTH_KEY: []
- BASIC_AUTH: []
tags:
- name: License Management
description: API for License Management
paths:
/LicenseManagement/getTransactionApprovalsCustomsData:
post:
tags:
- License Management
summary: Get the customs data of the approvals for one or more check transactions.
description: Returns the customs data associated with the approvals for one or more check transactions.
operationId: getTransactionApprovalsCustomsData
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TransactionApprovalsCustomsDataRequestDTO'
application/xml:
schema:
$ref: '#/components/schemas/TransactionApprovalsCustomsDataRequestDTO'
responses:
'200':
description: OK. The operation response. See response schema documentation for details.
content:
application/json:
schema:
$ref: '#/components/schemas/TransactionApprovalsCustomsDataResponseDTO'
application/xml:
schema:
$ref: '#/components/schemas/TransactionApprovalsCustomsDataResponseDTO'
'400':
description: Bad request.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorData'
application/xml:
schema:
$ref: '#/components/schemas/ErrorData'
'401':
description: Unauthorized. Missing or invalid authorization token.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorData'
application/xml:
schema:
$ref: '#/components/schemas/ErrorData'
'405':
description: Method not allowed. Use POST.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorData'
application/xml:
schema:
$ref: '#/components/schemas/ErrorData'
'406':
description: Not Acceptable. This resource produces application/json or application/xml.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorData'
application/xml:
schema:
$ref: '#/components/schemas/ErrorData'
'415':
description: Unsupported Media Type. This resource accepts application/json or application/xml.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorData'
application/xml:
schema:
$ref: '#/components/schemas/ErrorData'
'500':
description: Internal server error. See errorMessage for details.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorData'
application/xml:
schema:
$ref: '#/components/schemas/ErrorData'
components:
schemas:
ApprovalCustomsDataDTO:
type: object
properties:
customsProcessCountry:
maxLength: 2
type: string
description: The country for which the approval may be used for customs declaration, e.g. US, GB or DE.
The special value EU is used for approvals which may be used for declaration in all EU countries, unless a more specific ApprovalCustomsDataDTO with a concrete country code (e.g. DE) and typically a more specific value for customsLicenseTypeCode is also returned in another ApprovalCustomsDataDTO.
example: GB
customsLicenseTypeCode:
maxLength: 81
type: string
description: A code for the customs system for the license type.
For EU and GB, this is the concatenation of code/qualifier of a produced document for the license type.
licenseNumber:
maxLength: 100
type: string
description: The license number or the ID of a license exception (US) or a general license (EU), associated with the approval.
licenseItemNumber:
maxLength: 100
type: string
description: The license item number, if the approval was associated to a license with items.
licenseValidFromDate:
type: string
description: Start of the validity of the license.
format: yyyy-MM-dd
example: '2016-09-21'
licenseExpirationDate:
type: string
description: End of the validity of the license.
format: yyyy-MM-dd
example: '2016-09-21'
valueBooked:
type: number
description: The value booked from the license, if the license supports value booking.
The number has up to 13 digits before the decimal point and exactly 2 digits after the decimal point.
valueBookedCurrency:
maxLength: 3
type: string
description: The currency of the value booked from the license.
quantityBooked:
type: number
description: The quantity booked from the license, if the license supports quantity booking.
The number has up to 20 digits before the decimal point and exactly 7 digits after the decimal point.
quantityBookedUnit:
maxLength: 20
type: string
description: The unit of the quantity booked from the license.
extensions:
type: array
description: Encodes country specific data.
items:
$ref: '#/components/schemas/ApprovalCustomsDataExtensionDTO'
description: For every jurisdiction there may be zero or 1 approval for a transaction item.
For every approval, at least one ApprovalCustomsDataDTO is returned.
For approvals which may be declared to customs in more than one country (which especially may be true for countries in the EU), one ApprovalCustomsDataDTO per country may be returned.
ResponseMessageDTO:
type: object
properties:
messageType:
type: string
description: '
Message type
If not stated otherwise, the possible types are:
Maximum length: 50
' example: WARNING messageIdentCode: type: string description: 'Optional identification code for further classification of the message type.
Maximum length: 50
' example: '5627' messageTexts: type: array description:Detailed message texts in the requested languages.
items: $ref: '#/components/schemas/TextInLanguageDTO' indentationLevel: type: integer description:The indentation level of the message.
'0' indicates a top level message.
format: int32 example: 0 description: Result messages like errors or warnings. ErrorData: type: object properties: errorMessage: type: string errorCause: type: string TransactionApprovalsCustomsDataDTO: type: object properties: transactionIdHost: maxLength: 255 type: string description: The transactionIdHost of the transaction. items: type: array description: The items of the transaction. items: $ref: '#/components/schemas/TransactionItemApprovalsCustomsDataDTO' description: Provides the customs data (based on approvals) of the transaction with the specifiedtransactionIdHost.
TransactionApprovalsCustomsDataRequestDTO:
required:
- transactionIdsHost
type: object
properties:
clientSystemId:
type: string
description: 'Id of the sending client system.
e.g. Installation ID of the sending host or ERP system.
Maximum length: 20
' example: TEST_ID clientIdentCode: type: string description: 'Client identification code.
Maximum length: 10
' example: APITEST userName: type: string description:User who initiated the request from the client system.
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.
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.
Actual authentication is handled separately via the request's headers, so no password is required in the request's data.
example: API_TEST resultLanguageIsoCodes: type: array description:2-letter ISO codes of the languages in which texts will be returned.
English ('en') and German ('de') are typically supported by default. Other languages may be supported.
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.
example: - en - de items: type: string description:2-letter ISO codes of the languages in which texts will be returned.
English ('en') and German ('de') are typically supported by default. Other languages may be supported.
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.
example: '["en","de"]' transactionIdsHost: type: array description: 'The transaction ids for which the approvals customs data are requested./ExportControl/v2/checkTransaction.10 transactions is currently allowed to be requested here.255'
items:
type: string
description: 'The transaction ids for which the approvals customs data are requested./ExportControl/v2/checkTransaction.10 transactions is currently allowed to be requested here.255'
description: Request DTO for /LicenseManagementBF/getTransactionApprovalsCustomsData
TextInLanguageDTO:
type: object
properties:
languageISOCode:
type: string
description: 2-letter ISO code of the language.
length=2
example: en text: type: string description: The translated text. example: Some free-form text description: A translated text in one of the specified languages. ApprovalCustomsDataExtensionDTO: type: object properties: fieldName: maxLength: 255 type: string description: 'The field name of the extension. The following names are allowed:producedDocumentReference: Field "Referenz" for produced document for ATLAS (German customs)producedDocumentAddition: Field "Zusatz" for produced document for ATLAS (German customs)quantityUnitLicenseAuthorityGermany: Quantity unit used by BAFA (German license authority)exportControlNumberEU_DE: Export control number, either of EU or of German jurisdiction. (Export control numbers of other EU countries are not supported.)ApprovalCustomsDataDTO.
TransactionApprovalsCustomsDataResponseDTO:
type: object
properties:
hasErrors:
type: boolean
description: True, if there are any error messages.
An error usually means that the request could not be performed.
Error details are provided in the messages[] array.
example: false hasOnlyRetryableErrors: type: boolean description:True, if there are any error messages.
Error details are provided in the messages[] array.
example: true hasWarnings: type: boolean description:True, if there are any error messages.
Error details are provided in the messages[] array.
example: true messages: type: array description:Error or warning messages at the request level.
There may be additional messages[] arrays at lower data levels as specified in the documentation.
items: $ref: '#/components/schemas/ResponseMessageDTO' transactions: type: array description: For each element ofTransactionApprovalsCustomsDataRequestDTO.transactionIdsHost, one TransactionApprovalsCustomsDataDTO is returned, unless the number of requested transactions exceeds 10.
items:
$ref: '#/components/schemas/TransactionApprovalsCustomsDataDTO'
description: Response DTO for /LicenseManagementBF/getTransactionApprovalsCustomsData
TransactionItemApprovalsCustomsDataDTO:
type: object
properties:
itemIdHost:
maxLength: 255
type: string
description: The itemIdHost of the item of the transaction.
approvals:
type: array
description: Customs data of the approvals available for the item.
items:
$ref: '#/components/schemas/ApprovalCustomsDataDTO'
description: Provides the customs data (based on approvals) of the item with the specified itemIdHost.
securitySchemes:
SWAGGER_AUTH_KEY:
type: apiKey
name: X-XNSG_WEB_TOKEN
in: header
BASIC_AUTH:
type: http
scheme: basic
x-proxy-enabled: false