openapi: 3.0.1
info:
  title: IDP Integration API
  version: v1.0.0
servers:
  - url: https://integration.idp.de2.retarus.com/
    description: Local
security:
  - bearerAuth: []
paths:
  /get-xml-result/{processUuid}:
    get:
      tags:
        - process-content-controller
      summary: Get the resulting XML document
      operationId: getXmlResult
      parameters:
        - name: processUuid
          in: path
          required: true
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
        '400':
          description: Bad Request
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '404':
          description: Not Found
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
  /get-document-pdf/{processUuid}:
    get:
      tags:
        - process-content-controller
      summary: Get PDF document assembled from input document pages
      operationId: getDocumentPdfFromPageImages
      parameters:
        - name: processUuid
          in: path
          required: true
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: string
                format: byte
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
        '400':
          description: Bad Request
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '404':
          description: Not Found
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
  /get-status:
    get:
      tags:
        - process-search-controller
      summary: Get a very short info for a single process instance
      operationId: getProcessStatus
      parameters:
        - name: processId
          in: query
          required: true
          style: FORM
          explode: true
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ProcessStatusCompactResponse'
                exampleSetFlag: false
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
  /get-process-list:
    get:
      tags:
        - process-administration-controller
      summary: Get a list of processes
      operationId: getProcessList
      parameters:
        - name: range-from
          in: query
          required: true
          style: FORM
          explode: true
          schema:
            type: string
            format: date-time
            exampleSetFlag: false
            types:
              - string
        - name: range-to
          in: query
          required: true
          style: FORM
          explode: true
          schema:
            type: string
            format: date-time
            exampleSetFlag: false
            types:
              - string
        - name: range-type
          in: query
          required: true
          style: FORM
          explode: true
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
            enum:
              - INGESTION
              - PROCESS_FINISHED
              - LAST_ACTIVITY
        - name: page-size
          in: query
          required: false
          style: FORM
          explode: true
          schema:
            maximum: 100
            minimum: 0
            type: integer
            format: int64
            exampleSetFlag: false
            types:
              - integer
            default: 100
        - name: page-no
          in: query
          required: false
          style: FORM
          explode: true
          schema:
            minimum: 0
            type: integer
            format: int64
            exampleSetFlag: false
            types:
              - integer
            default: 0
        - name: ai-pipeline-code
          in: query
          required: false
          style: FORM
          explode: true
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: process-status
          in: query
          required: false
          style: FORM
          explode: true
          schema:
            type: array
            exampleSetFlag: false
            items:
              type: string
              exampleSetFlag: false
              types:
                - string
              enum:
                - RECEIVED
                - PROCESSING
                - VALIDATION
                - HITL_QUEUE
                - HITL_PROCESSING
                - EXPORTED
                - REJECTED
            types:
              - array
            default: []
        - name: download-ack
          in: query
          required: false
          style: FORM
          explode: true
          schema:
            type: boolean
            exampleSetFlag: false
            types:
              - boolean
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ProcessListResponse'
                exampleSetFlag: false
              exampleSetFlag: false
        '400':
          description: Bad Request
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
  /acknowledge-result-download:
    post:
      tags:
        - process-administration-controller
      summary: Update download acknowledge count
      operationId: updateDownloadAcknowledgeCount
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AcknowledgeResultDownloadRequest'
              exampleSetFlag: false
            exampleSetFlag: false
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
        '400':
          description: Bad Request
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
  /upload-pdf:
    post:
      tags:
        - common-upload-controller
      summary: Upload new document to processing
      operationId: processUploadPdf
      parameters:
        - name: channel-reference
          in: header
          required: true
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: channel-name
          in: header
          required: true
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: customer-billing-code
          in: header
          required: false
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: comparisonId
          in: header
          required: false
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: ai-pipeline-code
          in: header
          required: false
          deprecated: true
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: ai-preset-code
          in: header
          required: false
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
      requestBody:
        content:
          multipart/form-data:
            schema:
              required:
                - file
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  exampleSetFlag: false
                  types:
                    - string
              exampleSetFlag: false
              types:
                - object
            exampleSetFlag: false
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonIngressResponseModel'
                exampleSetFlag: false
              exampleSetFlag: false
        '400':
          description: Bad Request
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '412':
          description: Precondition Failed
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '422':
          description: Unprocessable Entity
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
  /upload-jpeg:
    post:
      tags:
        - common-upload-controller
      summary: Upload new document to processing
      operationId: processUploadPdf
      parameters:
        - name: channel-reference
          in: header
          required: true
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: channel-name
          in: header
          required: true
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: customer-billing-code
          in: header
          required: false
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: comparisonId
          in: header
          required: false
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: ai-pipeline-code
          in: header
          required: false
          deprecated: true
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: ai-preset-code
          in: header
          required: false
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
      requestBody:
        content:
          multipart/form-data:
            schema:
              required:
                - file
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  exampleSetFlag: false
                  types:
                    - string
              exampleSetFlag: false
              types:
                - object
            exampleSetFlag: false
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonIngressResponseModel'
                exampleSetFlag: false
              exampleSetFlag: false
        '400':
          description: Bad Request
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '412':
          description: Precondition Failed
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '422':
          description: Unprocessable Entity
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
  /upload-png:
    post:
      tags:
        - common-upload-controller
      summary: Upload new document to processing
      operationId: processUploadPdf
      parameters:
        - name: channel-reference
          in: header
          required: true
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: channel-name
          in: header
          required: true
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: customer-billing-code
          in: header
          required: false
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: comparisonId
          in: header
          required: false
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: ai-pipeline-code
          in: header
          required: false
          deprecated: true
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: ai-preset-code
          in: header
          required: false
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
      requestBody:
        content:
          multipart/form-data:
            schema:
              required:
                - file
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  exampleSetFlag: false
                  types:
                    - string
              exampleSetFlag: false
              types:
                - object
            exampleSetFlag: false
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonIngressResponseModel'
                exampleSetFlag: false
              exampleSetFlag: false
        '400':
          description: Bad Request
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '412':
          description: Precondition Failed
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '422':
          description: Unprocessable Entity
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
  /upload-tiff:
    post:
      tags:
        - common-upload-controller
      summary: Upload new document to processing
      operationId: processUploadPdf
      parameters:
        - name: channel-reference
          in: header
          required: true
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: channel-name
          in: header
          required: true
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: customer-billing-code
          in: header
          required: false
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: comparisonId
          in: header
          required: false
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: ai-pipeline-code
          in: header
          required: false
          deprecated: true
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
        - name: ai-preset-code
          in: header
          required: false
          style: SIMPLE
          explode: false
          schema:
            type: string
            exampleSetFlag: false
            types:
              - string
      requestBody:
        content:
          multipart/form-data:
            schema:
              required:
                - file
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  exampleSetFlag: false
                  types:
                    - string
              exampleSetFlag: false
              types:
                - object
            exampleSetFlag: false
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonIngressResponseModel'
                exampleSetFlag: false
              exampleSetFlag: false
        '400':
          description: Bad Request
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '412':
          description: Precondition Failed
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '422':
          description: Unprocessable Entity
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
  /import/open-order/csv:
    post:
      tags:
        - import-api-controller
      summary: Import open order CSV
      operationId: importOpenOrderCsv
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              required:
                - file
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  exampleSetFlag: false
                  types:
                    - string
              exampleSetFlag: false
              types:
                - object
            exampleSetFlag: false
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ImportApiResponse'
                exampleSetFlag: false
              exampleSetFlag: false
        '400':
          description: Bad Request
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/BadRequestProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '422':
          description: Unprocessable Entity
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/UnprocessableEntityProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/InternalErrorProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
  /api/validate/open-order/csv:
    post:
      tags:
        - validation-api-controller
      summary: Validate open order CSV
      operationId: validateOpenOrderCsv
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              required:
                - file
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  exampleSetFlag: false
                  types:
                    - string
              exampleSetFlag: false
              types:
                - object
            exampleSetFlag: false
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ValidationApiResponse'
                exampleSetFlag: false
              exampleSetFlag: false
        '422':
          description: Unprocessable Entity
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
  /import/supplier/csv:
    post:
      tags:
        - import-api-controller
      summary: Import supplier CSV
      operationId: importSupplierCsv
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              required:
                - file
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  exampleSetFlag: false
                  types:
                    - string
              exampleSetFlag: false
              types:
                - object
            exampleSetFlag: false
        required: true
      responses:
        '200':
          description: Successfully imported
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ImportApiResponse'
                exampleSetFlag: false
              exampleSetFlag: false
        '400':
          description: Bad request
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/BadRequestProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '422':
          description: Unable to import file due to validation errors
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/UnprocessableEntityProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '500':
          description: Internal server error
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/InternalErrorProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
  /validate/supplier/csv:
    post:
      tags:
        - validation-api-controller
      summary: Validate supplier CSV
      operationId: validateSupplierCsv
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              required:
                - file
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  exampleSetFlag: false
                  types:
                    - string
              exampleSetFlag: false
              types:
                - object
            exampleSetFlag: false
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ValidationApiResponse'
                exampleSetFlag: false
              exampleSetFlag: false
        '422':
          description: Unprocessable Entity
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
  /import/customer-material/csv:
    post:
      tags:
        - import-api-controller
      summary: Import customer material CSV
      operationId: importCustomerMaterialCsv
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              required:
                - file
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  exampleSetFlag: false
                  types:
                    - string
              exampleSetFlag: false
              types:
                - object
            exampleSetFlag: false
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ImportApiResponse'
                exampleSetFlag: false
              exampleSetFlag: false
        '400':
          description: Bad Request
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/BadRequestProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '422':
          description: Unprocessable Entity
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/UnprocessableEntityProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/InternalErrorProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
  /validate/customer-material/csv:
    post:
      tags:
        - validation-api-controller
      summary: Validate customer material CSV
      operationId: validateCustomerMaterialCsv
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              required:
                - file
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  exampleSetFlag: false
                  types:
                    - string
              exampleSetFlag: false
              types:
                - object
            exampleSetFlag: false
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ValidationApiResponse'
                exampleSetFlag: false
              exampleSetFlag: false
        '422':
          description: Unprocessable Entity
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
  /import/customer-master/csv:
    post:
      tags:
        - import-api-controller
      summary: Import customer master CSV
      operationId: importCustomerMasterCsv
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              required:
                - file
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  exampleSetFlag: false
                  types:
                    - string
              exampleSetFlag: false
              types:
                - object
            exampleSetFlag: false
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ImportApiResponse'
                exampleSetFlag: false
              exampleSetFlag: false
        '400':
          description: Bad Request
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/BadRequestProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '422':
          description: Unprocessable Entity
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/UnprocessableEntityProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/InternalErrorProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
  /validate/customer-master/csv:
    post:
      tags:
        - validation-api-controller
      summary: Validate customer master CSV
      operationId: validateCustomerMasterCsv
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              required:
                - file
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  exampleSetFlag: false
                  types:
                    - string
              exampleSetFlag: false
              types:
                - object
            exampleSetFlag: false
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ValidationApiResponse'
                exampleSetFlag: false
              exampleSetFlag: false
        '422':
          description: Unprocessable Entity
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
  /import/customer-product/csv:
    post:
      tags:
        - import-api-controller
      summary: Import customer product CSV
      operationId: importCustomerProductCsv
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              required:
                - file
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  exampleSetFlag: false
                  types:
                    - string
              exampleSetFlag: false
              types:
                - object
            exampleSetFlag: false
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ImportApiResponse'
                exampleSetFlag: false
              exampleSetFlag: false
        '400':
          description: Bad Request
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/BadRequestProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '422':
          description: Unprocessable Entity
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/UnprocessableEntityProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/InternalErrorProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
  /validate/customer-product/csv:
    post:
      tags:
        - validation-api-controller
      summary: Validate customer product CSV
      operationId: validateCustomerProductCsv
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              required:
                - file
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  exampleSetFlag: false
                  types:
                    - string
              exampleSetFlag: false
              types:
                - object
            exampleSetFlag: false
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ValidationApiResponse'
                exampleSetFlag: false
              exampleSetFlag: false
        '422':
          description: Unprocessable Entity
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
  /import/customer-ship-to/csv:
    post:
      tags:
        - import-api-controller
      summary: Import customer ship to CSV
      operationId: importCustomerShipToCsv
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              required:
                - file
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  exampleSetFlag: false
                  types:
                    - string
              exampleSetFlag: false
              types:
                - object
            exampleSetFlag: false
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ImportApiResponse'
                exampleSetFlag: false
              exampleSetFlag: false
        '400':
          description: Bad Request
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/BadRequestProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '422':
          description: Unprocessable Entity
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/UnprocessableEntityProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/InternalErrorProblemDetail'
                exampleSetFlag: false
              exampleSetFlag: false
  /validate/customer-ship-to/csv:
    post:
      tags:
        - validation-api-controller
      summary: Validate customer ship to CSV
      operationId: validateCustomerShipToCsv
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              required:
                - file
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  exampleSetFlag: false
                  types:
                    - string
              exampleSetFlag: false
              types:
                - object
            exampleSetFlag: false
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ValidationApiResponse'
                exampleSetFlag: false
              exampleSetFlag: false
        '422':
          description: Unprocessable Entity
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                type: string
                exampleSetFlag: false
                types:
                  - string
              exampleSetFlag: false
components:
  schemas:
    ProblemDetail:
      type: object
      properties:
        type:
          type: string
          format: uri
          exampleSetFlag: false
          types:
            - string
        title:
          type: string
          exampleSetFlag: false
          types:
            - string
        status:
          type: integer
          format: int32
          exampleSetFlag: false
          types:
            - integer
        detail:
          type: string
          exampleSetFlag: false
          types:
            - string
        instance:
          type: string
          format: uri
          exampleSetFlag: false
          types:
            - string
        properties:
          type: object
          additionalProperties:
            type: object
            exampleSetFlag: false
            types:
              - object
          exampleSetFlag: false
          types:
            - object
      exampleSetFlag: false
      types:
        - object
    MarkForReviewRequest:
      required:
        - note
        - processId
      type: object
      properties:
        processId:
          type: string
          exampleSetFlag: false
          types:
            - string
        note:
          type: string
          exampleSetFlag: false
          types:
            - string
      exampleSetFlag: false
      types:
        - object
    AcknowledgeResultDownloadRequest:
      required:
        - processId
      type: object
      properties:
        processId:
          type: string
          exampleSetFlag: false
          types:
            - string
      exampleSetFlag: false
      types:
        - object
    DebugPackageResponse:
      type: object
      properties:
        uuid:
          type: string
          exampleSetFlag: false
          types:
            - string
        message:
          type: string
          exampleSetFlag: false
          types:
            - string
      exampleSetFlag: false
      types:
        - object
    ProcessStatusCompactResponse:
      type: object
      properties:
        processId:
          type: string
          exampleSetFlag: false
          types:
            - string
        processStep:
          type: string
          exampleSetFlag: false
          types:
            - string
          enum:
            - RECEIVED
            - PROCESSING
            - PARKED
            - VALIDATION
            - HITL_QUEUE
            - HITL_PROCESSING
            - EXPORTED
            - REJECTED
        latestActivity:
          type: string
          format: date-time
          exampleSetFlag: false
          types:
            - string
      exampleSetFlag: false
      types:
        - object
    PipelineInfo:
      type: object
      properties:
        code:
          type: string
          exampleSetFlag: false
          types:
            - string
        name:
          type: string
          exampleSetFlag: false
          types:
            - string
      exampleSetFlag: false
      types:
        - object
    ProcessQueryResponse:
      type: object
      properties:
        processList:
          type: array
          exampleSetFlag: false
          items:
            $ref: '#/components/schemas/ProcessStatus'
            exampleSetFlag: false
          types:
            - array
        page:
          $ref: '#/components/schemas/ResultPageInfo'
          exampleSetFlag: false
        responseTimestamp:
          type: string
          format: date-time
          exampleSetFlag: false
          types:
            - string
      exampleSetFlag: false
      types:
        - object
    ProcessStatus:
      type: object
      properties:
        name:
          type: string
          exampleSetFlag: false
          types:
            - string
        preset:
          $ref: '#/components/schemas/PipelineInfo'
          exampleSetFlag: false
        processId:
          type: string
          exampleSetFlag: false
          types:
            - string
        receivedOn:
          type: string
          format: date-time
          exampleSetFlag: false
          types:
            - string
        processStep:
          type: string
          exampleSetFlag: false
          types:
            - string
          enum:
            - RECEIVED
            - PROCESSING
            - PARKED
            - VALIDATION
            - HITL_QUEUE
            - HITL_PROCESSING
            - EXPORTED
            - REJECTED
        hitlLoops:
          type: integer
          format: int32
          exampleSetFlag: false
          types:
            - integer
        latestActivity:
          type: string
          format: date-time
          exampleSetFlag: false
          types:
            - string
        hasDocumentPreview:
          type: boolean
          exampleSetFlag: false
          types:
            - boolean
        hasDownloadExport:
          type: boolean
          exampleSetFlag: false
          types:
            - boolean
        hasReview:
          type: boolean
          exampleSetFlag: false
          types:
            - boolean
        documentPreviewPages:
          type: integer
          format: int32
          exampleSetFlag: false
          types:
            - integer
        processingUser:
          $ref: '#/components/schemas/UserInfo'
          exampleSetFlag: false
        archivingStatus:
          type: string
          exampleSetFlag: false
          types:
            - string
          enum:
            - ALIVE
            - ARCHIVED
            - PURGED
      exampleSetFlag: false
      types:
        - object
    ResultPageInfo:
      type: object
      properties:
        pageNumber:
          type: integer
          format: int32
          exampleSetFlag: false
          types:
            - integer
        numberOfPages:
          type: integer
          format: int32
          exampleSetFlag: false
          types:
            - integer
        pageSize:
          type: integer
          format: int32
          exampleSetFlag: false
          types:
            - integer
        totalCount:
          type: integer
          format: int32
          exampleSetFlag: false
          types:
            - integer
      exampleSetFlag: false
      types:
        - object
    UserInfo:
      type: object
      properties:
        id:
          type: string
          exampleSetFlag: false
          types:
            - string
        username:
          type: string
          exampleSetFlag: false
          types:
            - string
        firstName:
          type: string
          exampleSetFlag: false
          types:
            - string
        lastName:
          type: string
          exampleSetFlag: false
          types:
            - string
      exampleSetFlag: false
      types:
        - object
    CorrectionsData:
      type: object
      properties:
        name:
          type: string
          exampleSetFlag: false
          types:
            - string
        inferenceModelCode:
          type: string
          exampleSetFlag: false
          types:
            - string
        inferenceModelName:
          type: string
          exampleSetFlag: false
          types:
            - string
        total:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        corrected:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        percentage:
          type: number
          exampleSetFlag: false
          types:
            - number
      exampleSetFlag: false
      types:
        - object
    LevelOfAutomationData:
      type: object
      properties:
        date:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        automated:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        hitlValidated:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        hitlRatio:
          type: number
          exampleSetFlag: false
          types:
            - number
      exampleSetFlag: false
      types:
        - object
    ProcessReportAutomationResponse:
      type: object
      properties:
        data:
          type: array
          exampleSetFlag: false
          items:
            $ref: '#/components/schemas/LevelOfAutomationData'
            exampleSetFlag: false
          types:
            - array
      exampleSetFlag: false
      types:
        - object
    ProcessReportCorrectionsResponse:
      type: object
      properties:
        data:
          type: array
          exampleSetFlag: false
          items:
            $ref: '#/components/schemas/CorrectionsData'
            exampleSetFlag: false
          types:
            - array
      exampleSetFlag: false
      types:
        - object
    ProcessReportResponse:
      type: object
      properties:
        responseTimestamp:
          type: string
          format: date-time
          exampleSetFlag: false
          types:
            - string
        summary:
          $ref: '#/components/schemas/ProcessReportSummaryResponse'
          exampleSetFlag: false
        usage:
          $ref: '#/components/schemas/ProcessReportUsageResponse'
          exampleSetFlag: false
        levelOfAutomation:
          $ref: '#/components/schemas/ProcessReportAutomationResponse'
          exampleSetFlag: false
        correctionsPerField:
          $ref: '#/components/schemas/ProcessReportCorrectionsResponse'
          exampleSetFlag: false
        timePerDocument:
          $ref: '#/components/schemas/ProcessReportTimePerDocumentResponse'
          exampleSetFlag: false
      exampleSetFlag: false
      types:
        - object
    ProcessReportSummaryResponse:
      type: object
      properties:
        exported:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        levelOfAutomation:
          type: number
          exampleSetFlag: false
          types:
            - number
        automated:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        hitlValidated:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        averageDurationPerPage:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        averageDurationPerDocument:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        averageValidationDurationPerPage:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        averageValidationDurationPerDocument:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
      exampleSetFlag: false
      types:
        - object
    ProcessReportTimePerDocumentResponse:
      type: object
      properties:
        data:
          type: array
          exampleSetFlag: false
          items:
            $ref: '#/components/schemas/TimePerDocument'
            exampleSetFlag: false
          types:
            - array
      exampleSetFlag: false
      types:
        - object
    ProcessReportUsageResponse:
      type: object
      properties:
        data:
          type: array
          exampleSetFlag: false
          items:
            $ref: '#/components/schemas/UsageData'
            exampleSetFlag: false
          types:
            - array
      exampleSetFlag: false
      types:
        - object
    TimePerDocument:
      type: object
      properties:
        date:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        averageDurationPerPage:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        averageDurationPerDocument:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        averageValidationDurationPerPage:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        averageValidationDurationPerDocument:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
      exampleSetFlag: false
      types:
        - object
    UsageData:
      type: object
      properties:
        date:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        received:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        exported:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        rejected:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
      exampleSetFlag: false
      types:
        - object
    Metadata:
      type: object
      properties:
        timestamp:
          type: string
          format: date-time
          exampleSetFlag: false
          types:
            - string
        resultCount:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        resultPage:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
        resultNumberOfPages:
          type: integer
          format: int64
          exampleSetFlag: false
          types:
            - integer
      exampleSetFlag: false
      types:
        - object
    Process:
      type: object
      properties:
        processId:
          type: string
          exampleSetFlag: false
          types:
            - string
        processStep:
          type: string
          exampleSetFlag: false
          types:
            - string
        latestActivity:
          type: string
          format: date-time
          exampleSetFlag: false
          types:
            - string
      exampleSetFlag: false
      types:
        - object
    ProcessListResponse:
      type: object
      properties:
        metadata:
          $ref: '#/components/schemas/Metadata'
          exampleSetFlag: false
        resultList:
          type: array
          exampleSetFlag: false
          items:
            $ref: '#/components/schemas/Process'
            exampleSetFlag: false
          types:
            - array
      exampleSetFlag: false
      types:
        - object
    StreamingResponseBody:
      type: object
      exampleSetFlag: false
      types:
        - object
    CommonIngressResponseModel:
      type: object
      properties:
        processId:
          type: string
          exampleSetFlag: false
          types:
            - string
      exampleSetFlag: false
      types:
        - object
    UnprocessableEntityProblemDetail:
      type: object
      properties:
        type:
          type: string
          format: uri
          exampleSetFlag: false
          types:
            - string
        title:
          type: string
          exampleSetFlag: false
          types:
            - string
        status:
          type: integer
          description: HTTP status
          format: int32
          example: 422
          exampleSetFlag: true
          types:
            - integer
        detail:
          type: string
          exampleSetFlag: false
          types:
            - string
        instance:
          type: string
          format: uri
          exampleSetFlag: false
          types:
            - string
        errors:
          type: array
          description: Error list
          example:
            - >-
              (row: 3, col: 85) > Value of the field (itemEan) is required, but
              not present
            - >-
              (row: 10, col: 68) > Value of the field (itemEan) is required, but
              not present
          exampleSetFlag: true
          items:
            type: string
            description: Error list
            example: >-
              ["(row: 3, col: 85) > Value of the field (itemEan) is required,
              but not present","(row: 10, col: 68) > Value of the field
              (itemEan) is required, but not present"]
            exampleSetFlag: true
            types:
              - string
          types:
            - array
        warnings:
          type: array
          description: Warnings list
          example:
            - >-
              (row: 10, col: 69) > Trimmed field (name) to value (some company
              name...)
            - Banana
            - Cherry
          exampleSetFlag: true
          items:
            type: string
            description: Warnings list
            example: >-
              ["(row: 10, col: 69) > Trimmed field (name) to value (some company
              name...)","Banana","Cherry"]
            exampleSetFlag: true
            types:
              - string
          types:
            - array
      description: Unprocessable entity problem detail
      exampleSetFlag: false
      types:
        - object
    BadRequestProblemDetail:
      type: object
      properties:
        type:
          type: string
          format: uri
          exampleSetFlag: false
          types:
            - string
        title:
          type: string
          exampleSetFlag: false
          types:
            - string
        status:
          type: integer
          description: HTTP status
          format: int32
          example: 400
          exampleSetFlag: true
          types:
            - integer
        detail:
          type: string
          exampleSetFlag: false
          types:
            - string
        instance:
          type: string
          format: uri
          exampleSetFlag: false
          types:
            - string
        properties:
          type: object
          additionalProperties:
            type: object
            exampleSetFlag: false
            types:
              - object
          exampleSetFlag: false
          types:
            - object
      description: Bad request
      exampleSetFlag: false
      types:
        - object
    InternalErrorProblemDetail:
      type: object
      properties:
        type:
          type: string
          format: uri
          exampleSetFlag: false
          types:
            - string
        title:
          type: string
          exampleSetFlag: false
          types:
            - string
        status:
          type: integer
          description: HTTP status
          format: int32
          example: 500
          exampleSetFlag: true
          types:
            - integer
        detail:
          type: string
          exampleSetFlag: false
          types:
            - string
        instance:
          type: string
          format: uri
          exampleSetFlag: false
          types:
            - string
      description: Internal server error
      exampleSetFlag: false
      types:
        - object
    ValidationApiResponse:
      type: object
      properties:
        processId:
          type: string
          exampleSetFlag: false
          types:
            - string
        validationApiResponseStatus:
          type: string
          exampleSetFlag: false
          types:
            - string
          enum:
            - SUCCEEDED
            - FAILED
        errors:
          type: array
          exampleSetFlag: false
          items:
            type: string
            exampleSetFlag: false
            types:
              - string
          types:
            - array
        warnings:
          type: array
          exampleSetFlag: false
          items:
            type: string
            exampleSetFlag: false
            types:
              - string
          types:
            - array
      exampleSetFlag: false
      types:
        - object
    ImportApiResponse:
      type: object
      properties:
        processId:
          type: string
          exampleSetFlag: false
          types:
            - string
        warnings:
          type: array
          exampleSetFlag: false
          items:
            type: string
            exampleSetFlag: false
            types:
              - string
          types:
            - array
      exampleSetFlag: false
      types:
        - object
    CsvFileHistoryResponse:
      type: object
      properties:
        uuid:
          type: string
          exampleSetFlag: false
          types:
            - string
        fileName:
          type: string
          exampleSetFlag: false
          types:
            - string
        uploadProcessUuid:
          type: string
          exampleSetFlag: false
          types:
            - string
        filePath:
          type: string
          exampleSetFlag: false
          types:
            - string
        customerCode:
          type: string
          exampleSetFlag: false
          types:
            - string
        masterdataType:
          type: string
          exampleSetFlag: false
          types:
            - string
          enum:
            - SUPPLIER
            - OPEN_ORDER
            - CUSTOMER_MATERIAL
            - CUSTOMER_MASTER
            - CUSTOMER_PRODUCT
            - CUSTOMER_SHIP_TO
            - KEYWORD
        status:
          type: string
          exampleSetFlag: false
          types:
            - string
          enum:
            - AVAILABLE
            - PURGED
        uploadTimestamp:
          type: string
          format: date-time
          exampleSetFlag: false
          types:
            - string
      exampleSetFlag: false
      types:
        - object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
