openapi: 3.2.0 info: title: Product Classification HTTP Material BF Bean API description: Thank you for using our HTTP API documentation. version: '4.0' servers: - url: https://rz3.aeb.de/test2cl/rest security: - SWAGGER_AUTH_KEY: [] - BASIC_AUTH: [] tags: - name: MaterialBFBean description: API for maintaining and requesting classification master data. paths: /MaterialBFBean/materials/partnerSystems: put: tags: - MaterialBFBean description: Adds a new partner system to the materials. If a partner system subscription exists, journal entries will be created for the partner system. operationId: addPartnersystem parameters: - name: clientSystemId in: query description: clientSystemId Required. The id of the client system. Used to identify the origin of the update. schema: maxLength: 20 type: string - name: clientIdentCode in: query description: The unique identification code of the client. If empty, the client of the authentication is used. schema: maxLength: 10 type: string - name: userName in: query description: Names the user from the client system. Used to identify the origin of the update. schema: maxLength: 254 type: string - name: setOwner in: query description: setOwner Optional. If true, the clientSystemId is set as owner of the material. Default value is false. schema: type: boolean default: false requestBody: description: materials Required. A list of material numbers (max. 100) which identify a material uniquely for the client. content: application/json: schema: $ref: '#/components/schemas/MaterialNumbersDTO' responses: default: description: default response content: application/json: schema: $ref: '#/components/schemas/AddPartnersystemToMaterialResponseDTO' delete: tags: - MaterialBFBean description: Removes a partner system from the materials. operationId: deletePartnersystem parameters: - name: clientSystemId in: query description: clientSystemId Required. The id of the client system. Used to identify the origin of the update. schema: maxLength: 20 type: string - name: clientIdentCode in: query description: The unique identification code of the client. If empty, the client of the authentication is used. schema: maxLength: 10 type: string - name: userName in: query description: Names the user from the client system. Used to identify the origin of the update. schema: maxLength: 254 type: string requestBody: description: materials Required. A list of material numbers which identify a material uniquely for the client. content: application/json: schema: $ref: '#/components/schemas/MaterialNumbersDTO' responses: default: description: default response content: application/json: schema: $ref: '#/components/schemas/DeletePartnersystemOfMaterialRepsonseDTO' /MaterialBFBean/materials/{materialNumber}: get: tags: - MaterialBFBean summary: Get the data for one material. operationId: getMaterial parameters: - name: materialNumber in: path description: The material number which identifies a material uniquely for the client. required: true schema: maxLength: 50 type: string - name: clientSystemId in: query description: The id of the client system. Used to identify the origin of the call. schema: maxLength: 20 type: string - name: clientIdentCode in: query description: The code of the client. If empty, the client of the authentication is used. schema: maxLength: 10 type: string - name: userName in: query description: Names the user from the client system. Used to identify the origin of the call. schema: maxLength: 254 type: string - name: decisiveDate in: query description: 'If specified, only classification values that are valid on the specified date are returned. Defaults to today, if empty. Format: yyyy-MM-dd.' schema: type: string format: date - name: ignoreMaterialDetails in: query description: If true, material details are ommited in the response. schema: type: boolean default: false - name: ignoreMaterialDescriptions in: query description: If true, material descriptions are ommited in the response. schema: type: boolean default: false - name: ignoreLinkAttachments in: query description: If true, attachments are ommited in the response. schema: type: boolean default: false - name: ignoreFeatures in: query description: If true, features are ommited in the response. schema: type: boolean default: false - name: ignoreClassifications in: query description: If true, classifications are ommited in the response. schema: type: boolean default: false - name: ignoreClassificationValues in: query description: If true, classification values are ommited in the response. schema: type: boolean default: false - name: ignoreCertificates in: query description: If true, certificates are ommited in the response. schema: type: boolean default: false responses: default: description: default response content: application/json: schema: $ref: '#/components/schemas/GetMaterialResultDTO' delete: tags: - MaterialBFBean description: Initiates the deletion of a material if the caller is owner of the material. If this is not the case, the partnersystem with the caller's clientSystemId is removed from the material. operationId: deleteMaterial parameters: - name: materialNumber in: path description: The material number which identifies a material uniquely for the client. required: true schema: maxLength: 50 type: string - name: clientSystemId in: query description: The id of the client system. Used to identify the origin of the call. schema: maxLength: 20 type: string - name: clientIdentCode in: query description: The code of the client. If empty, the client of the authentication is used. schema: maxLength: 10 type: string - name: userName in: query description: Names the user from the client system. Used to identify the origin of the call. schema: maxLength: 254 type: string responses: default: description: default response content: application/json: schema: $ref: '#/components/schemas/DeleteMaterialResponseDTO' patch: tags: - MaterialBFBean summary: Update the data of one material. operationId: updateMaterial parameters: - name: materialNumber in: path description: The material number which identifies a material uniquely for the client. required: true schema: maxLength: 50 type: string - name: clientSystemId in: query description: The id of the client system. Used to identify the origin of the update. schema: maxLength: 20 type: string - name: clientIdentCode in: query description: The code of the client. If empty, the client of the authentication is used. schema: maxLength: 10 type: string - name: userName in: query description: Names the user from the client system. Used to identify the origin of the update. schema: maxLength: 254 type: string - name: transferMode in: query description: 'The mode in which the data specified in the request body shall be applied.
Optionally returns all classification values which have been maintained for this classification.
Optionally updates the workflow fields (priority/due date) regarding the worst-case principle:
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' classificationValues: type: array description: Container with the classification values that belong to the requested classification. items: $ref: '#/components/schemas/ClassificationValueDTO' description: 'Response DTO for #requestClassifications' GetMaterialResultDTO: 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' material: $ref: '#/components/schemas/MaterialDataDTO' description: 'Response DTO for #getMaterial' GetBusinessObjectResponseDTO: 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' businessObject: $ref: '#/components/schemas/GenericDataRecordDTO' description: Response DTO forIMaterialBF#getBusinessObject.
DeletePartnersystemOfMaterialRepsonseDTO:
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' description: Response DTO forIMaterialBF#deletePartnersystem.
DeleteMaterialResponseDTO:
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' description: 'Response DTO for #deleteMaterial' MaterialNumbersDTO: type: object properties: materialNumbers: type: array description: The list of material numbers. items: type: string description: The list of material numbers. description: DTO to hold multiple material numbers. NamedGenericDataRecordDTO: type: object properties: name: type: string description: The name of this record, i.e. the role the record plays in the enclosing record.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' description: 'Response DTO for #updateFileAttachment' GetMaterialsResultDTO: 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' materials: type: array description: List of DTOs with the data of the requested materials. items: $ref: '#/components/schemas/MaterialDataDTO' description: 'Response DTO for #getMaterials' MaterialDetailsDTO: type: - object - 'null' properties: alternativeMaterialNumber: maxLength: 50 type: string description: An alternative material number. This is typically a representation of the materialNumber that has a better readability. attribute: maxLength: 10 type: string description: Some attribute to better this material easier. priority: maxLength: 10 type: string description: 'Not used anymore. Sent values will be mapped to #attribute' validFrom: type: string description: Date from which the material is valid. format: date validTo: type: string description: Date to which the material is valid. format: date description: The container for material specific details. CertificateDTO: required: - data - type type: - object - 'null' properties: clientSystemCertificateId: maxLength: 255 type: string description: Unique-ID for this certificate set by the client system. Can be left empty, if the client system does not need this id. engineCertificateId: maxLength: 36 type: string description: Unique-ID for this certificate generated by the engine. If empty, a new certificate will be created in the engine. referenceTypeName: maxLength: 40 type: string description: The name of the reference type of the linked reference value. referenceValue: maxLength: 800 type: string description: The textual value of the referenced classification value. approved: type: boolean description: The certificate is complete and approved. revisionNote: maxLength: 1000 type: string description: The note of the revision which contains additional information about the revision reason. type: $ref: '#/components/schemas/CertificateTypeDTO' data: $ref: '#/components/schemas/CertificateDataDTO' description: DTO holding the information about a certificate. CertificateTypeDTO: required: - code - countryOfCertificate type: object properties: countryOfCertificate: maxLength: 2 minLength: 2 type: string description: Country that issued this certificate. code: maxLength: 5 type: string description: Code of this certificate type. qualifier: maxLength: 3 type: string description: Qualifier for further specification of the type. division: maxLength: 1 type: string description: The division of this certificate. validFrom: type: string description: The first day this certificate is valid. format: date validTo: type: string description: The last day this certificate is valid. format: date description: DTO holding information about the type of the certificate. GenericDataFieldDTO: type: object properties: name: type: string description:Name of this field, i.e. the role the field plays in the enclosing record.
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.
value: type: string description:Value of the field.
The format follows the conventions of xml schema encoding, see http://www.w3.org/TR/xmlschema-2/.
Data type of the field.
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.
The format follows the conventions of xml schema encoding, see http://www.w3.org/TR/xmlschema-2/.
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' classificationsOfMaterials: type: array description: Container with the classification values of each material that belong to the requested classification. items: $ref: '#/components/schemas/ClassificationValuesOfMaterialDTO' description: Response DTO forIMaterialBF#getClassificationForMaterials.
CertificateDataDTO:
required:
- geoId
type: object
properties:
geoId:
maxLength: 10
type: string
description: Country (ISO code) or area (area code) of destination for which the certificate is valid.
reference:
maxLength: 35
type: string
description: Classifying feature of submitted certificate, e.g. its number.
dateOfIssue:
type: string
description: The date the certificate was issued.
format: date
endOfValidity:
type: string
description: The last day this certificate is valid.
format: date
detail:
maxLength: 12
type: string
description: Detailed information on a referenced certificate.
additionalExplanation:
maxLength: 35
type: string
description: Supplement to certificate submitted.
description: DTO holding information about the certificate instance.
AttachmentLinkDTO:
type:
- object
- 'null'
properties:
name:
maxLength: 1000
type: string
description: The displayed name of the attachment link. Attachments are identified via the name.
targetURL:
maxLength: 250
type: string
description: The URL to the attachment file or a web page.
description: DTO holding information about an attachment.
ClassificationDTO:
required:
- profileCode
type:
- object
- 'null'
properties:
profileCode:
maxLength: 40
type: string
description: The code of the classification profile.
remark:
type:
- string
- 'null'
description: Remark concerning special notes and reasons for this classification.
priority:
type:
- integer
- 'null'
description: Value between 0 and 999. It's only possible to update to a lower priority (= more urgency).
format: int32
dueDate:
type:
- string
- 'null'
description: Date by which this classification shall be completed. It's only possible to update to an earlier date (= more urgency).
format: date
reference:
maxLength: 255
type:
- string
- 'null'
description: Provides tracking the priority/due date; e.g. an order number. Only taken into account if priority or dueDate is updated.
description: A DTO containing the profile code of a classification that has been requested, or is about to be requested
FeatureDTO:
required:
- group
- name
type:
- object
- 'null'
properties:
group:
maxLength: 30
type: string
description: The group of the feature.
name:
maxLength: 100
type: string
description: The short name of the feature.
value:
maxLength: 1000
type: string
description: The value of the feature.
description: DTO holding information about a feature.
AddPartnersystemToMaterialResponseDTO:
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' description: Response DTO forIMaterialBF#addPartnersystem.
GenericDataRecordDTO:
type: object
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'
description: A generic record of data.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' description: 'Response DTO for #updateMaterial' 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. GetClassificationResultDTO: 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' classificationValues: type: array description: Container with the classification values that belong to the requested classification. items: $ref: '#/components/schemas/ClassificationValueDTO' description: Response DTO forIMaterialBF#getClassification.
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. securitySchemes: SWAGGER_AUTH_KEY: type: apiKey name: X-XNSG_WEB_TOKEN in: header BASIC_AUTH: type: http scheme: basic x-proxy-enabled: false