openapi: 3.0.1
info:
  description: Document Processor Acceptor API
  title: Document Processor Acceptor API
  version: 1.8.0
servers:
- description: Generated server url
  url: https://api.cve.btx.eu.banqup.com/connectors/core
security:
- oauth2: []
paths:
  /v1/spaces/documents:validate:
    post:
      operationId: validate_1
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DocumentValidationRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentValidationResponse'
          description: OK
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentValidationResponse'
          description: The result of the validation initiation
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Access denied
      security:
      - oauth2:
        - space_read
      summary: Validates a set of documents
      tags:
      - Document Processor
      description: ' <br/> Scope: space_read<br/> This Endpoint is part of: connectors-document'
  /v1/spaces/files:convert:
    post:
      operationId: convert
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConvertDocumentRequest'
        required: true
      responses:
        '202':
          description: Accepted
      summary: Convert a space file to a document
      tags:
      - Document Processor
      description: ' <br/> Scope: []<br/> This Endpoint is part of: connectors-document'
  /v1/spaces/{spaceId}/documents/{documentId}/documentNumbers:create:
    post:
      operationId: createDocumentNumber
      parameters:
      - in: path
        name: spaceId
        required: true
        schema:
          type: string
          format: uuid
      - in: path
        name: documentId
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Document number generated
        '202':
          description: Accepted
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Access denied
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Document already has a document number / Document number sequence
            is currently locked / eGenerating document number is processing or finished
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Unsupported document category
      security:
      - oauth2:
        - space_write
      summary: Generate document number and regenerate representations
      tags:
      - Document Processor
      description: ' <br/> Scope: space_write<br/> This Endpoint is part of: connectors-document'
  /v1/spaces/{spaceId}/documents/{documentId}/representations/{representationId}:createLink:
    post:
      operationId: createRepresentationContentLinkGeneratorLink
      parameters:
      - in: path
        name: spaceId
        required: true
        schema:
          type: string
          format: uuid
      - in: path
        name: documentId
        required: true
        schema:
          type: string
          format: uuid
      - in: path
        name: representationId
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDocumentRepresentationLinkRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentRepresentationContentLinkResponse'
          description: The generated link
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Access denied
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: The document or representation could not be found
      security:
      - oauth2:
        - space_read
      summary: Creates a long-lived link for creating signed urls for the content
        of a document representation
      tags:
      - Document Processor
      description: ' <br/> Scope: space_read<br/> This Endpoint is part of: connectors-document'
  /v1/spaces/{spaceId}/documents/{documentId}:createVersion:
    post:
      operationId: createVersionDocument
      parameters:
      - in: path
        name: spaceId
        required: true
        schema:
          type: string
          format: uuid
      - in: path
        name: documentId
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CloneDocumentActionData'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentVersioningResponse'
          description: Latest version of the quote document
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Access denied
      security:
      - oauth2:
        - space_read
        - space_write
      summary: Create new version of quote document
      tags:
      - Document Processor
      description: ' <br/> Scope: space_read, space_write<br/> This Endpoint is part
        of: connectors-document'
  /v1/spaces/{spaceId}/documents/{documentId}:finalize:
    post:
      operationId: finalizeDocument
      parameters:
      - in: path
        name: spaceId
        required: true
        schema:
          type: string
          format: uuid
      - in: path
        name: documentId
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Document number and collection paylink generated
        '202':
          description: Accepted
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Access denied
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Document already has a document number / Document number sequence
            is currently locked / eGenerating document number is processing or finished
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Unsupported document category
      security:
      - oauth2:
        - space_read
        - space_write
      summary: Generate document number, collection paylink and regenerate representations
      tags:
      - Document Processor
      description: ' <br/> Scope: space_read, space_write<br/> This Endpoint is part
        of: connectors-document'
  /v1/spaces/{spaceId}/documents/{documentId}:getOrCreateRepresentation:
    post:
      operationId: getOrCreateRepresentation
      parameters:
      - in: path
        name: spaceId
        required: true
        schema:
          type: string
          format: uuid
      - in: path
        name: documentId
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetOrCreateRepresentationRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentRepresentation'
          description: The matching representation
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Access denied
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: No matching representation found
      security:
      - oauth2:
        - space_write
      summary: Retrieve a document representation of the requested document type
      tags:
      - Document Processor
      description: ' <br/> Scope: space_write<br/> This Endpoint is part of: connectors-document'
  /v1/spaces/{spaceId}/documents/{documentId}:processHITLFeedback/{token}/{humanInTheLoopRequestId}:
    post:
      description: "Callback endpoint for the ONEA Human-In-The-Loop service. This
        endpoint is secured using a JWT token in the URL path. The token must be valid,
        unexpired, and contain 'spaceId' and 'documentId' claims that match the corresponding
        path variables. <br/> Scope: []<br/> This Endpoint is part of: connectors-document"
      operationId: processHitlFeedback
      parameters:
      - in: path
        name: spaceId
        required: true
        schema:
          type: string
          format: uuid
      - in: path
        name: documentId
        required: true
        schema:
          type: string
          format: uuid
      - in: path
        name: token
        required: true
        schema:
          type: string
      - in: path
        name: humanInTheLoopRequestId
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HitlFeedbackPayload'
        required: true
      responses:
        '202':
          description: HITL Feedback processed.
        '400':
          description: Bad Request.
        '403':
          description: Forbidden. Returned if the JWT token is missing, invalid, expired,
            or if the 'spaceId' and 'documentId' claims do not match the URL.
        '404':
          description: Not Found.
      summary: Process HITL feedback
      tags:
      - Document Callback Api
  /v2/spaces/documents:validate:
    post:
      operationId: validate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DocumentValidationRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentValidationResponse'
          description: OK
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentValidationResponse'
          description: The result of the validation initiation
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Access denied
      security:
      - oauth2:
        - space_read
      summary: Validates a set of documents
      tags:
      - Document Processor V2
      description: ' <br/> Scope: space_read<br/> This Endpoint is part of: connectors-document'
components:
  schemas:
    AccountIdentifier:
      type: object
      properties:
        bank:
          $ref: '#/components/schemas/BankIdentifier'
        country:
          type: string
          example: BE
          pattern: ^[a-zA-Z]{2}
        currency:
          type: string
          description: International code ISO 4217 of the currency used
          example: EUR
          pattern: '[A-Z]{3}'
        identifier:
          type: string
          description: Account Identifier
          example: BE83504010119715
          minLength: 1
        parent:
          $ref: '#/components/schemas/AccountIdentifier'
        scheme:
          type: string
          description: Account Scheme
          example: IBAN
      required:
      - currency
      - identifier
      - scheme
    BankIdentifier:
      type: object
      description: Information about the issuer of the account
      properties:
        identifier:
          type: string
          description: Bank Identifier
          example: PANXBEB1XXX
          minLength: 1
        scheme:
          type: string
          description: Bank Identifier Scheme
          enum:
          - BIC
          - CODE
          - ABA
          - CLABE
          - THIRD_PARTY
          example: BIC
      required:
      - identifier
      - scheme
    CloneDocumentActionData:
      type: object
      properties:
        copyAttachments:
          type: boolean
    ConfigureDocumentProcessorRequest:
      type: object
      properties:
        extensionId:
          type: string
          format: uuid
        name:
          type: string
          minLength: 1
        namespace:
          type: string
          minLength: 1
        settings:
          $ref: '#/components/schemas/DocumentProcessorSettings'
        spaceId:
          type: string
          format: uuid
      required:
      - extensionId
      - name
      - namespace
      - settings
      - spaceId
    ConvertDocumentRequest:
      type: object
      properties:
        additionalRepresentations:
          type: array
          items:
            type: string
        fileId:
          type: string
          format: uuid
        spaceId:
          type: string
          format: uuid
      required:
      - fileId
      - spaceId
    CreateDocumentRepresentationLinkRequest:
      type: object
      properties:
        validUntil:
          type: string
          format: date-time
      required:
      - validUntil
    CustomizableFlipDocumentActionData:
      type: object
      properties:
        copyAttachments:
          type: boolean
        targetCategory:
          type: string
          enum:
          - PURCHASE_ORDER
          - ORDER_CONFIRMATION
          - DELIVERY_NOTE
          - GOODS_RECEIVED_NOTE
          - INVOICE
          - INVOICE_REMINDER
          - CREDIT_NOTE
          - RECEIPT
          - STATEMENT
          - QUOTE
          - CREDIT_CARD_STATEMENT
          - THIRD_PARTY_STATEMENT
          - FILE
          - SELF_BILLED_INVOICE
          - SELF_BILLED_CREDIT_NOTE
          - PROFORMA_INVOICE
          - OTHER
    Data:
      type: object
      properties:
        dryRun:
          type: boolean
      required:
      - dryRun
    DataExtractionMetadata:
      type: object
      properties:
        fileId:
          type: string
          format: uuid
      required:
      - fileId
    DataExtractionResult:
      type: object
      properties:
        extractedDocumentLines:
          type: array
          items:
            type: object
            additionalProperties:
              type: object
        extractedDocumentMetadata:
          type: object
          additionalProperties:
            type: object
        extractionId:
          type: string
          minLength: 1
        metadata:
          $ref: '#/components/schemas/DataExtractionMetadata'
        status:
          type: string
          enum:
          - SUCCESS
          - FAILED
      required:
      - extractedDocumentLines
      - extractedDocumentMetadata
      - extractionId
      - metadata
      - status
    DocumentActionDefinition:
      type: object
      properties:
        action:
          type: object
          additionalProperties:
            type: object
        actionTypes:
          type: object
          additionalProperties:
            type: object
        applicability:
          type: string
        basePath:
          type: string
        category:
          type: string
        categoryIcon:
          type: object
          additionalProperties:
            type: object
        created:
          type: string
        i18n:
          type: string
        icon:
          type: object
          additionalProperties:
            type: object
        label:
          type: string
        name:
          type: string
        namespace:
          type: string
        optimisticAction:
          type: string
        order:
          type: integer
          format: int32
        permissions:
          type: object
          additionalProperties:
            type: object
        supportBatch:
          type: boolean
        supportsBatch:
          type: boolean
        synchronous:
          type: boolean
      required:
      - label
      - name
    DocumentActionRequestCloneDocumentActionData:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/CloneDocumentActionData'
        documents:
          type: array
          items:
            type: string
            format: uuid
          minItems: 1
        spaceId:
          type: string
          format: uuid
      required:
      - data
      - documents
      - spaceId
    DocumentActionRequestCustomizableFlipDocumentActionData:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/CustomizableFlipDocumentActionData'
        documents:
          type: array
          items:
            type: string
            format: uuid
          minItems: 1
        spaceId:
          type: string
          format: uuid
      required:
      - data
      - documents
      - spaceId
    DocumentActionRequestFlipDocumentActionData:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/FlipDocumentActionData'
        documents:
          type: array
          items:
            type: string
            format: uuid
          minItems: 1
        spaceId:
          type: string
          format: uuid
      required:
      - data
      - documents
      - spaceId
    DocumentActionRequestRefuseDocumentActionData:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/RefuseDocumentActionData'
        documents:
          type: array
          items:
            type: string
            format: uuid
          minItems: 1
        spaceId:
          type: string
          format: uuid
      required:
      - data
      - documents
      - spaceId
    DocumentActionRequestWithoutData:
      type: object
      properties:
        documents:
          type: array
          items:
            type: string
            format: uuid
          minItems: 1
        spaceId:
          type: string
          format: uuid
      required:
      - documents
      - spaceId
    DocumentActionResponse:
      type: object
      properties:
        failure:
          type: array
          items:
            type: string
            format: uuid
        success:
          type: array
          items:
            type: string
            format: uuid
      required:
      - success
    DocumentCategorySettings:
      type: object
    DocumentFailureValidationInitiationResult:
      type: object
      properties:
        documentId:
          type: string
          format: uuid
        message:
          type: string
    DocumentProcessorSettings:
      type: object
      properties:
        autoSetDocumentDate:
          type: boolean
        availableBankAccounts:
          type: array
          items:
            $ref: '#/components/schemas/AccountIdentifier'
        defaultBankAccount:
          $ref: '#/components/schemas/AccountIdentifier'
        document:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/DocumentCategorySettings'
        ocr:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/OcrFolderSettings'
      required:
      - document
      - ocr
    DocumentReference:
      type: object
      properties:
        documentId:
          type: string
          format: uuid
        spaceId:
          type: string
          format: uuid
    DocumentRepresentation:
      type: object
      properties:
        contentType:
          type: string
          minLength: 1
        createdAt:
          type: string
          format: date-time
        documentId:
          type: string
          format: uuid
        filename:
          type: string
          minLength: 1
        id:
          type: string
          format: uuid
        main:
          type: boolean
        md5Hash:
          type: string
          minLength: 1
        metadata:
          type: object
          additionalProperties:
            type: object
        size:
          type: string
          minLength: 1
        status:
          type: string
          minLength: 1
        type:
          type: string
          x-extensible-enum:
          - com.unifiedpost.btx.datastore.json
          - com.unifiedpost.btx.datastore.json:invoice
          - com.unifiedpost.btx.datastore.json:invoice:2.0
          - com.unifiedpost.btx.datastore.json:creditnote
          - com.unifiedpost.btx.datastore.json:creditnote:2.0
          - com.unifiedpost.btx.aggregation.json
          - com.unifiedpost.btx.aggregation.json:base
          - com.unifiedpost.btx.aggregation.json:base:1.0
          - com.unifiedpost.btx.aggregation.json:emr
          - com.unifiedpost.btx.aggregation.json:emr:1.0
          - com.unifiedpost.btx.aggregation.pdf:emr
          - com.unifiedpost.btx.aggregation.pdf:emr:1.0
          - com.unifiedpost.btx.pdf
          - com.unifiedpost.btx.pdf:invoice
          - com.unifiedpost.btx.pdf:invoice:1.0
          - com.unifiedpost.btx.pdf:creditnote
          - com.unifiedpost.btx.pdf:creditnote:1.0
          - com.unifiedpost.btx.pdf:receipt
          - com.unifiedpost.btx.pdf:receipt:1.0
          - com.unifiedpost.btx.pdf:quote
          - com.unifiedpost.btx.pdf:quote:1.0
          - eu.cen.en16931
          - eu.cen.en16931:cii
          - eu.cen.en16931:cii:1.3.12
          - eu.cen.en16931:cii:1.3.13
          - eu.cen.en16931:ubl-creditnote
          - eu.cen.en16931:ubl-creditnote:1.3.12
          - eu.cen.en16931:ubl
          - eu.cen.en16931:ubl:1.3.12
          - eu.peppol.bis3
          - eu.peppol.bis3:creditnote
          - eu.peppol.bis3:creditnote:2024.5
          - eu.peppol.bis3:creditnote:2024.11
          - eu.peppol.bis3:invoice
          - eu.peppol.bis3:invoice:2024.5
          - eu.peppol.bis3:invoice:2024.11
          - fr.factur-x
          - fr.factur-x:en16931
          - fr.factur-x:en16931:1.0.6
          - fr.factur-x:en16931:1.0.7-2
          - fr.factur-x:basic
          - fr.factur-x:basic:1.0.6
          - fr.factur-x:basic:1.0.7-2
          - fr.factur-x:minimum
          - fr.factur-x:minimum:1.0.6
          - fr.factur-x:minimum:1.0.7-2
          - fr.factur-x:basicwl
          - fr.factur-x:basicwl:1.0.6
          - fr.factur-x:basicwl:1.0.7-2
          - fr.factur-x:extended
          - fr.factur-x:extended:1.0.6
          - fr.factur-x:extended:1.0.7-2
          - fr.einvoicingextract:base:1.0.7-2
          - org.iso20022
          - org.iso20022:camt
          - org.iso20022:camt:053.001.02
          - be.efff
          - be.efff:creditnote
          - be.efff:creditnote:3.0.0
          - be.efff:invoice
          - be.efff:invoice:3.0.0
          - org.cfonb
          - org.cfonb:cfonb
          - be.febelfin:coda:2.6
          - es.aebanca
          - es.aebanca:norma
          - es.aebanca:norma:43
          minLength: 1
        updatedAt:
          type: string
          format: date-time
        uploadUrl:
          type: string
          minLength: 1
      required:
      - contentType
      - createdAt
      - documentId
      - filename
      - id
      - main
      - md5Hash
      - metadata
      - size
      - status
      - type
      - updatedAt
      - uploadUrl
    DocumentRepresentationContentLinkResponse:
      type: object
      properties:
        link:
          type: string
          minLength: 1
      required:
      - link
    DocumentValidationInitiationResult:
      type: object
      properties:
        documentId:
          type: string
          format: uuid
    DocumentValidationRequest:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Data'
        documentIds:
          type: array
          items:
            type: string
            format: uuid
          minItems: 1
        spaceId:
          type: string
          format: uuid
      required:
      - data
      - documentIds
      - spaceId
    DocumentValidationResponse:
      type: object
      properties:
        failure:
          type: array
          items:
            $ref: '#/components/schemas/DocumentFailureValidationInitiationResult'
        success:
          type: array
          items:
            $ref: '#/components/schemas/DocumentValidationInitiationResult'
      required:
      - failure
      - success
    DocumentVersioningResponse:
      type: object
      properties:
        category:
          type: string
        folder:
          type: string
        id:
          type: string
          format: uuid
        metadata:
          type: object
          additionalProperties:
            type: object
        retentionTime:
          type: string
          format: date-time
        source:
          type: string
        spaceId:
          type: string
          format: uuid
        status:
          type: object
          additionalProperties:
            type: object
        tags:
          type: array
          items:
            type: string
      required:
      - category
      - folder
      - id
      - source
      - spaceId
      - status
    ExtensionAddRequest:
      type: object
      properties:
        entityId:
          type: string
          format: uuid
        extensionId:
          type: string
          format: uuid
        spaceId:
          type: string
          format: uuid
      required:
      - entityId
      - extensionId
      - spaceId
    ExtensionUpgradeRequest:
      type: object
      properties:
        entityId:
          type: string
          format: uuid
        extensionId:
          type: string
          format: uuid
        spaceId:
          type: string
          format: uuid
      required:
      - entityId
      - extensionId
      - spaceId
    FlipDocumentActionData:
      type: object
      properties:
        copyAttachments:
          type: boolean
    GetOrCreateRepresentationRequest:
      type: object
      properties:
        documentType:
          type: string
          x-extensible-enum:
          - com.unifiedpost.btx.datastore.json
          - com.unifiedpost.btx.datastore.json:invoice
          - com.unifiedpost.btx.datastore.json:invoice:2.0
          - com.unifiedpost.btx.datastore.json:creditnote
          - com.unifiedpost.btx.datastore.json:creditnote:2.0
          - com.unifiedpost.btx.aggregation.json
          - com.unifiedpost.btx.aggregation.json:base
          - com.unifiedpost.btx.aggregation.json:base:1.0
          - com.unifiedpost.btx.aggregation.json:emr
          - com.unifiedpost.btx.aggregation.json:emr:1.0
          - com.unifiedpost.btx.aggregation.pdf:emr
          - com.unifiedpost.btx.aggregation.pdf:emr:1.0
          - com.unifiedpost.btx.pdf
          - com.unifiedpost.btx.pdf:invoice
          - com.unifiedpost.btx.pdf:invoice:1.0
          - com.unifiedpost.btx.pdf:creditnote
          - com.unifiedpost.btx.pdf:creditnote:1.0
          - com.unifiedpost.btx.pdf:receipt
          - com.unifiedpost.btx.pdf:receipt:1.0
          - com.unifiedpost.btx.pdf:quote
          - com.unifiedpost.btx.pdf:quote:1.0
          - eu.cen.en16931
          - eu.cen.en16931:cii
          - eu.cen.en16931:cii:1.3.12
          - eu.cen.en16931:cii:1.3.13
          - eu.cen.en16931:ubl-creditnote
          - eu.cen.en16931:ubl-creditnote:1.3.12
          - eu.cen.en16931:ubl
          - eu.cen.en16931:ubl:1.3.12
          - eu.peppol.bis3
          - eu.peppol.bis3:creditnote
          - eu.peppol.bis3:creditnote:2024.5
          - eu.peppol.bis3:creditnote:2024.11
          - eu.peppol.bis3:invoice
          - eu.peppol.bis3:invoice:2024.5
          - eu.peppol.bis3:invoice:2024.11
          - fr.factur-x
          - fr.factur-x:en16931
          - fr.factur-x:en16931:1.0.6
          - fr.factur-x:en16931:1.0.7-2
          - fr.factur-x:basic
          - fr.factur-x:basic:1.0.6
          - fr.factur-x:basic:1.0.7-2
          - fr.factur-x:minimum
          - fr.factur-x:minimum:1.0.6
          - fr.factur-x:minimum:1.0.7-2
          - fr.factur-x:basicwl
          - fr.factur-x:basicwl:1.0.6
          - fr.factur-x:basicwl:1.0.7-2
          - fr.factur-x:extended
          - fr.factur-x:extended:1.0.6
          - fr.factur-x:extended:1.0.7-2
          - fr.einvoicingextract:base:1.0.7-2
          - org.iso20022
          - org.iso20022:camt
          - org.iso20022:camt:053.001.02
          - be.efff
          - be.efff:creditnote
          - be.efff:creditnote:3.0.0
          - be.efff:invoice
          - be.efff:invoice:3.0.0
          - org.cfonb
          - org.cfonb:cfonb
          - be.febelfin:coda:2.6
          - es.aebanca
          - es.aebanca:norma
          - es.aebanca:norma:43
      required:
      - documentType
    HitlFeedbackPayload:
      type: object
      properties:
        error:
          type: array
          items:
            type: string
        id:
          type: string
          minLength: 1
        status:
          type: string
          minLength: 1
      required:
      - error
      - id
      - status
    InitializationResponse:
      type: object
      properties:
        data:
          type: object
          additionalProperties:
            type: object
    ListActionsResponse:
      type: object
      properties:
        actions:
          type: array
          items:
            $ref: '#/components/schemas/DocumentActionDefinition'
      required:
      - actions
    OcrFolderSettings:
      type: object
    ProblemDetail:
      type: object
      properties:
        detail:
          type: string
        instance:
          type: string
          format: uri
        properties:
          type: object
          additionalProperties:
            type: object
        status:
          type: integer
          format: int32
        title:
          type: string
        type:
          type: string
          format: uri
    RefuseDocumentActionData:
      type: object
      properties:
        reason:
          type: string
          enum:
          - INCORRECT_VAT_RATE
          - NON_COMPLIANT
          - INCORRECT_RECIPIENT
          - UNKNOWN_TRANSACTION
          - UNKNOWN_ISSUER
          - CONTRACT_TERMINATED
          - DUPLICATE_INVOICE
          - INVALID_ORDER_NUMBER
          - MISSING_REFERENCE
    TaskInitializationRequest:
      type: object
      properties:
        documents:
          type: array
          items:
            $ref: '#/components/schemas/DocumentReference'
          minItems: 1
      required:
      - documents
    ValidatorDocumentValidationRequest:
      type: object
      properties:
        documentId:
          type: string
          format: uuid
        spaceId:
          type: string
          format: uuid
        validationId:
          type: string
          format: uuid
      required:
      - documentId
      - spaceId
      - validationId
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://api.cve.btx.eu.banqup.com/oauth2/client_credential/gettoken
          scopes:
            info: Scopes are endpoint-specific, see each endpoint for required scope.
        authorizationCode:
          authorizationUrl: https://api.cve.btx.eu.banqup.com/oauth2/auth
          tokenUrl: https://api.cve.btx.eu.banqup.com/oauth2/token
          scopes:
            info: Scopes are endpoint-specific, see each endpoint for required scope.
