openapi: 3.0.1
info:
  title: 'valitax-store-service-api REST Service: API Specification'
  description: Update with description of API Service
  version: 0.0.163
servers:
- description: ''
  url: https://api.btx.eu.banqup.com/tax/configuration
- description: ''
  url: https://api.btx.fr.banqup.com/tax/configuration
paths:
  /v1/spaces/{spaceId}/diffTransactionMemos/{transactionMemoId}:clone:
    post:
      tags:
      - Custom diff transaction memos
      summary: Clone custom diff transaction memo by uuid
      description: 'Clone custom diff transaction memo by uuid <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: cloneCustomDiffTransactionMemoById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The custom diff transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomDiffTransactionMemo'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99dd
                diffEvent: DIFF_TAXABLE_BASIS
                mismatchToleranceAmount: 100
                mismatchTolerancePercentage: 10
                order: 1
                logicalOperator: AND
                condition: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/spaces/{spaceId}/diffTransactionMemos:
    get:
      tags:
      - Custom diff transaction memos
      summary: Get a list of all custom diff transaction memo
      description: 'Get a list of all custom diff transaction memo <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllCustomDiffTransactionMemos
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: search
        in: query
        description: Search term to filter out diff transaction memos
        schema:
          type: string
      - name: page
        in: query
        description: Zero-based page index, cannot be negative, default 0
        schema:
          type: integer
          format: int32
        example: 20
      - name: pageSize
        in: query
        description: 'Page size. Minimum 1, maximum: 400, default 20'
        schema:
          type: integer
          format: int32
        example: 20
      - name: includeTotalElements
        in: query
        description: Return the totalElements number of entries in the response
        schema:
          type: boolean
        example: true
      - name: sortBy
        in: query
        description: Sort by criteria
        schema:
          type: string
          enum:
          - order
          - order.asc
          - order.desc
        example: name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomDiffTransactionMemoResponse'
              example:
                results:
                - id: dfdb8549-7385-4bd6-bb90-44c5043c99dd
                  diffEvent: DIFF_TAXABLE_BASIS
                  mismatchToleranceAmount: 100
                  mismatchTolerancePercentage: 10
                  order: 1
                  logicalOperator: AND
                  condition: ''
                  instructionGroupsCount: 2
                totalElements: 1
                currentPage: 0
                pageSize: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom diff transaction memos
      summary: Create a new custom diff transaction memo
      description: 'Create a new custom diff transaction memo <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomDiffTransactionMemo
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom diff transaction memo to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomDiffTransactionMemoRequest'
            example:
              diffEvent: DIFF_TAXABLE_BASIS
              mismatchToleranceAmount: 100
              mismatchTolerancePercentage: 10
              logicalOperator: AND
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomDiffTransactionMemo'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99dd
                diffEvent: DIFF_TAXABLE_BASIS
                mismatchToleranceAmount: 100
                mismatchTolerancePercentage: 10
                order: 1
                logicalOperator: AND
                condition: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/diffTransactionMemos/{transactionMemoId}:
    get:
      tags:
      - Custom diff transaction memos
      summary: Get custom diff transaction memo by uuid
      description: 'Get custom diff transaction memo by uuid <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getCustomDiffTransactionMemoById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The custom diff transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomDiffTransactionMemo'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99dd
                diffEvent: DIFF_TAXABLE_BASIS
                mismatchToleranceAmount: 100
                mismatchTolerancePercentage: 10
                order: 1
                logicalOperator: AND
                condition: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    delete:
      tags:
      - Custom diff transaction memos
      summary: Delete custom diff transaction memo by uuid
      description: 'Delete custom diff transaction memo by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomDiffTransactionMemo
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The custom diff transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom diff transaction memo was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom diff transaction memos
      summary: Update an existing custom diff transaction memo by uuid
      description: 'Update an existing custom diff transaction memo by uuid <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomDiffTransactionMemo
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The custom diff transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom diff transaction memo data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomDiffTransactionMemoPatchRequest'
            example:
              diffEvent: DIFF_TAXABLE_BASIS
              mismatchToleranceAmount: 100
              mismatchTolerancePercentage: 10
              logicalOperator: AND
              order: 1
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomDiffTransactionMemo'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99dd
                diffEvent: DIFF_TAXABLE_BASIS
                mismatchToleranceAmount: 100
                mismatchTolerancePercentage: 10
                order: 1
                logicalOperator: AND
                condition: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/diffTransactionMemos/{transactionMemoId}/instructionGroups:
    get:
      tags:
      - Custom diff transaction memo instruction groups
      summary: Get a list of all custom diff transaction memo instruction groups
      description: 'Get a list of all custom diff transaction memo instruction groups
        <br/> Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomDiffTransactionMemoInstructionGroups
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The custom diff transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionGroupResponse'
              example:
                instructionGroups:
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                  logicalOperator: AND
                  order: 1
                  place: CONDITION
                  instructionsCount: 1
                  entityInstructionsCount: 0
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83498
                  logicalOperator: OR
                  order: 2
                  place: CONDITION
                  instructionsCount: 2
                  entityInstructionsCount: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom diff transaction memo instruction groups
      summary: Create a new custom diff transaction memo instruction group
      description: 'Create a new custom diff transaction memo instruction group <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomDiffTransactionMemoInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The custom diff transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom diff transaction memo instruction group to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/diffTransactionMemos/{transactionMemoId}/instructionGroups/{instructionGroupId}:
    delete:
      tags:
      - Custom diff transaction memo instruction groups
      summary: Delete custom diff transaction memo instruction group by uuid
      description: 'Delete custom diff transaction memo instruction group by uuid
        <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomDiffTransactionMemoInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The custom diff transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The custom diff transaction memo instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom diff transaction memo instruction group
            was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom diff transaction memo instruction groups
      summary: Update an existing custom diff transaction memo instruction group by
        uuid
      description: 'Update an existing custom diff transaction memo instruction group
        by uuid <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomDiffTransactionMemoInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The custom diff transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The custom diff transaction memo instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom diff transaction memo instruction group data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/inputRules/{ruleId}/instructionGroups:
    get:
      tags:
      - Custom input rule instruction groups
      summary: Get a list of all custom input rule instruction groups
      description: 'Get a list of all custom input rule instruction groups <br/> Scope:
        space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomInputRuleInstructionGroups
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionGroupResponse'
              example:
                instructionGroups:
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                  logicalOperator: AND
                  order: 1
                  place: CONDITION
                  instructionsCount: 1
                  entityInstructionsCount: 0
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83498
                  logicalOperator: OR
                  order: 2
                  place: CONDITION
                  instructionsCount: 2
                  entityInstructionsCount: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom input rule instruction groups
      summary: Create a new custom input rule instruction group
      description: 'Create a new custom input rule instruction group <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomInputRuleInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom input rule instruction group to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/inputRules/{ruleId}/instructionGroups/{instructionGroupId}:
    delete:
      tags:
      - Custom input rule instruction groups
      summary: Delete custom input rule instruction group by uuid
      description: 'Delete custom input rule instruction group by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomInputRuleInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The custom rule instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom input rule instruction group was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom input rule instruction groups
      summary: Update an existing custom input rule instruction group by uuid
      description: 'Update an existing custom input rule instruction group by uuid
        <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomInputRuleInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The custom rule instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom input rule instruction group data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/invoiceWordings/{invoiceWordingId}/instructionGroups:
    get:
      tags:
      - Custom invoice wording instruction groups
      summary: Get a list of all custom invoice wordings instruction groups
      description: 'Get a list of all custom invoice wordings instruction groups <br/>
        Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomInvoiceWordingInstructionGroups
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: invoiceWordingId
        in: path
        description: The invoice wording identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionGroupResponse'
              example:
                instructionGroups:
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                  logicalOperator: AND
                  order: 1
                  place: CONDITION
                  instructionsCount: 1
                  entityInstructionsCount: 0
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83498
                  logicalOperator: OR
                  order: 2
                  place: CONDITION
                  instructionsCount: 2
                  entityInstructionsCount: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom invoice wording instruction groups
      summary: Create a new custom invoice wording instruction group
      description: 'Create a new custom invoice wording instruction group <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomInvoiceWordingInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: invoiceWordingId
        in: path
        description: The invoice wording identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom invoice wording instruction group to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/invoiceWordings/{invoiceWordingId}/instructionGroups/{instructionGroupId}:
    delete:
      tags:
      - Custom invoice wording instruction groups
      summary: Delete custom invoice wording instruction group by uuid
      description: 'Delete custom invoice wording instruction group by uuid <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomInvoiceWordingInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: invoiceWordingId
        in: path
        description: The invoice wording identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The custom invoice wording instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom invoice wording instruction group was
            successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom invoice wording instruction groups
      summary: Update an existing custom invoice wording instruction group by uuid
      description: 'Update an existing custom invoice wording instruction group by
        uuid <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomInvoiceWordingInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: invoiceWordingId
        in: path
        description: The invoice wording identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The custom invoice wording instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom invoice wording instruction group data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/outputRules/{ruleId}/instructionGroups:
    get:
      tags:
      - Custom output rule instruction groups
      summary: Get a list of all custom output rule instruction group
      description: 'Get a list of all custom output rule instruction group <br/> Scope:
        space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomOutputRuleInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionGroupResponse'
              example:
                instructionGroups:
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                  logicalOperator: AND
                  order: 1
                  place: CONDITION
                  instructionsCount: 1
                  entityInstructionsCount: 0
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83498
                  logicalOperator: OR
                  order: 2
                  place: CONDITION
                  instructionsCount: 2
                  entityInstructionsCount: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom output rule instruction groups
      summary: Create a new custom output rule instruction group
      description: 'Create a new custom output rule instruction group <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomOutputRuleInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom output rule instruction group to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/outputRules/{ruleId}/instructionGroups/{instructionGroupId}:
    delete:
      tags:
      - Custom output rule instruction groups
      summary: Delete custom output rule instruction group by uuid
      description: 'Delete custom output rule instruction group by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomOutputRuleInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The custom rule instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom output rule instruction group was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom output rule instruction groups
      summary: Update an existing custom output rule instruction group by uuid
      description: 'Update an existing custom output rule instruction group by uuid
        <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomOutputRuleInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The custom rule instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom output rule instruction group data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxCodes/{taxCodeId}/instructionGroups:
    get:
      tags:
      - Custom tax code instruction groups
      summary: Get a list of all custom tax code instruction groups
      description: 'Get a list of all custom tax code instruction groups <br/> Scope:
        space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomTaxCodeInstructionGroups
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxCodeId
        in: path
        description: The tax code identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionGroupResponse'
              example:
                instructionGroups:
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                  logicalOperator: AND
                  order: 1
                  place: CONDITION
                  instructionsCount: 1
                  entityInstructionsCount: 0
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83498
                  logicalOperator: OR
                  order: 2
                  place: CONDITION
                  instructionsCount: 2
                  entityInstructionsCount: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom tax code instruction groups
      summary: Create a new custom tax code instruction group
      description: 'Create a new custom tax code instruction group <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomTaxCodeInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxCodeId
        in: path
        description: The tax code identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax code instruction group to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxCodes/{taxCodeId}/instructionGroups/{instructionGroupId}:
    delete:
      tags:
      - Custom tax code instruction groups
      summary: Delete custom tax code instruction group by uuid
      description: 'Delete custom tax code instruction group by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomTaxCodeInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxCodeId
        in: path
        description: The tax code identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The custom tax code instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom tax code instruction group was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom tax code instruction groups
      summary: Update an existing custom tax code instruction group by uuid
      description: 'Update an existing custom tax code instruction group by uuid <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomTaxCodeInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxCodeId
        in: path
        description: The tax code identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The custom tax code instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax code tax code instruction group data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxTransactionMemos/{transactionMemoId}/instructionGroups:
    get:
      tags:
      - Custom tax transaction memo instruction groups
      summary: Get a list of all custom tax transaction memo instruction groups
      description: 'Get a list of all custom tax transaction memo instruction groups
        <br/> Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomTaxTransactionMemoInstructionGroups
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The custom tax transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionGroupResponse'
              example:
                instructionGroups:
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                  logicalOperator: AND
                  order: 1
                  place: CONDITION
                  instructionsCount: 1
                  entityInstructionsCount: 0
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83498
                  logicalOperator: OR
                  order: 2
                  place: CONDITION
                  instructionsCount: 2
                  entityInstructionsCount: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom tax transaction memo instruction groups
      summary: Create a new custom tax transaction memo instruction group
      description: 'Create a new custom tax transaction memo instruction group <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomTaxTransactionMemoInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The custom tax transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax transaction memo instruction group to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxTransactionMemos/{transactionMemoId}/instructionGroups/{instructionGroupId}:
    delete:
      tags:
      - Custom tax transaction memo instruction groups
      summary: Delete custom tax transaction memo instruction group by uuid
      description: 'Delete custom tax transaction memo instruction group by uuid <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomTaxTransactionMemoInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The custom tax transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The custom tax transaction memo instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom tax transaction memo instruction group
            was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom tax transaction memo instruction groups
      summary: Update an existing custom tax transaction memo instruction group by
        uuid
      description: 'Update an existing custom tax transaction memo instruction group
        by uuid <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomTaxTransactionMemoInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The custom tax transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The custom tax transaction memo instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax transaction memo instruction group data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/products/{productId}/overrideMappings/{overrideMappingId}/instructionGroups:
    get:
      tags:
      - Override mapping instruction groups
      summary: Get a list of all override mapping instruction groups
      description: 'Get a list of all override mapping instruction groups <br/> Scope:
        space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllOverrideMappingInstructionGroups
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: overrideMappingId
        in: path
        description: The override mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionGroupResponse'
              example:
                instructionGroups:
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                  logicalOperator: AND
                  order: 1
                  place: CONDITION
                  instructionsCount: 1
                  entityInstructionsCount: 0
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83498
                  logicalOperator: OR
                  order: 2
                  place: CONDITION
                  instructionsCount: 2
                  entityInstructionsCount: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Override mapping instruction groups
      summary: Create a new override mapping instruction group
      description: 'Create a new override mapping instruction group <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createOverrideMappingInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: overrideMappingId
        in: path
        description: The override mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Override mapping instruction group to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/products/{productId}/overrideMappings/{overrideMappingId}/instructionGroups/{instructionGroupId}:
    delete:
      tags:
      - Override mapping instruction groups
      summary: Delete override mapping instruction group by uuid
      description: 'Delete override mapping instruction group by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteOverrideMappingInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: overrideMappingId
        in: path
        description: The override mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The override mapping instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The override mapping instruction group was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Override mapping instruction groups
      summary: Update an existing override mapping instruction group by uuid
      description: 'Update an existing override mapping instruction group by uuid
        <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateOverrideMappingInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: overrideMappingId
        in: path
        description: The override mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The override mapping instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Override mapping instruction group data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/territories/{territoryId}/taxProfiles/{taxProfileId}/instructionGroups:
    get:
      tags:
      - Custom tax profile instruction groups
      summary: Get a list of all instruction groups for a custom tax profile
      description: 'Get a list of all instruction groups for a custom tax profile
        <br/> Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomTaxProfileInstructionGroups
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileId
        in: path
        description: The custom tax profile identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionGroupResponse'
              example:
                instructionGroups:
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                  logicalOperator: AND
                  order: 1
                  place: CONDITION
                  instructionsCount: 1
                  entityInstructionsCount: 0
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83498
                  logicalOperator: OR
                  order: 2
                  place: CONDITION
                  instructionsCount: 2
                  entityInstructionsCount: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom tax profile instruction groups
      summary: Create a new instruction group for a custom tax profile
      description: 'Create a new instruction group for a custom tax profile <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomTaxProfileInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileId
        in: path
        description: The custom tax profile identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Instruction group to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/territories/{territoryId}/taxProfiles/{taxProfileId}/instructionGroups/{instructionGroupId}:
    delete:
      tags:
      - Custom tax profile instruction groups
      summary: Delete an instruction group by ID for a custom tax profile
      description: 'Delete an instruction group by ID for a custom tax profile <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomTaxProfileInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileId
        in: path
        description: The custom tax profile identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The instruction group was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom tax profile instruction groups
      summary: Update an instruction group by ID for a custom tax profile
      description: 'Update an instruction group by ID for a custom tax profile <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomTaxProfileInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileId
        in: path
        description: The custom tax profile identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Instruction group data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/lookupTables/{lookupTableId}/items:
    get:
      tags:
      - Custom Lookup table items
      summary: Get a list of all custom lookup table items
      description: 'Get a list of all custom lookup table items <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllCustomLookupTableItems
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: lookupTableId
        in: path
        description: The custom lookup table identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: search
        in: query
        description: Search term to filter out lookup table items
        schema:
          type: string
      - name: sortBy
        in: query
        description: Sort by criteria
        schema:
          type: string
          enum:
          - name
          - name.asc
          - name.desc
        example: name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomLookupTableItemResponse'
              example:
                lookupTableItems:
                - id: 7bc44e07-b09b-45fc-8d54-b423f90f790f
                  name: Item 1
                - id: 74d3e63d-09be-432a-aa7a-7b686ece0041
                  name: Item 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom Lookup table items
      summary: Create a new custom lookup table item
      description: 'Create a new custom lookup table item <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomLookupTableItem
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: lookupTableId
        in: path
        description: The custom lookup table identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom lookup table item to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomLookupTableItemRequest'
            example:
              name: Table Item A
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomLookupTableItem'
              example:
                id: 713d07de-3359-4e4d-89f8-79785db6b3e5
                name: Table Item A
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/lookupTables/{lookupTableId}/items/{itemId}:
    delete:
      tags:
      - Custom Lookup table items
      summary: Delete custom lookup table item by uuid
      description: 'Delete custom lookup table item by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomLookupTableItem
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: lookupTableId
        in: path
        description: The custom lookup table identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: itemId
        in: path
        description: The custom lookup table item identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom lookup table item was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom Lookup table items
      summary: Update an existing custom lookup table item by uuid
      description: 'Update an existing custom lookup table item by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomLookupTableItem
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: lookupTableId
        in: path
        description: The custom lookup table identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: itemId
        in: path
        description: The custom lookup table item identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom lookup table data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomLookupTableItemRequest'
            example:
              name: Table Item A
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomLookupTableItem'
              example:
                id: 713d07de-3359-4e4d-89f8-79785db6b3e5
                name: Table Item A
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/lookupTables:
    get:
      tags:
      - Custom lookup tables
      summary: Get a list of all custom lookup tables
      description: 'Get a list of all custom lookup tables <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllCustomLookupTables
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomLookupTableResponse'
              example:
                lookupTables:
                - id: 2b2595ba-f768-425e-a903-243077f81fd5
                  name: Custom lookup table
                  itemsCount: 2
                - id: 0c6a72ed-7df7-406e-828f-f1f2859bf222
                  name: Custom lookup table 2
                  itemsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom lookup tables
      summary: Create a new custom lookup table
      description: 'Create a new custom lookup table <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomLookupTable
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom lookup table to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomLookupTableRequest'
            example:
              name: Custom lookup table
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomLookupTable'
              example:
                id: a84bf8ed-7158-495c-977a-cc04b5706e32
                name: Table A
                itemsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/lookupTables/{lookupTableId}:
    delete:
      tags:
      - Custom lookup tables
      summary: Delete custom lookup table by uuid
      description: 'Delete custom lookup table by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomLookupTable
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: lookupTableId
        in: path
        description: The custom lookup table identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom lookup table was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom lookup tables
      summary: Update an existing custom lookup table by uuid
      description: 'Update an existing custom lookup table by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: updateCustomLookupTable
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: lookupTableId
        in: path
        description: The custom lookup table identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom lookup table data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomLookupTableRequest'
            example:
              name: Custom lookup table
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomLookupTable'
              example:
                id: a84bf8ed-7158-495c-977a-cc04b5706e32
                name: Table A
                itemsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/products/{productId}/fieldMappingGroups/{fieldMappingGroupId}/items:
    get:
      tags:
      - Field mapping group items
      summary: Get a list of all field mapping group items
      description: 'Get a list of all field mapping group items <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllFieldMappingGroupItems
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: fieldMappingGroupId
        in: path
        description: The field mapping group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListFieldMappingGroupItemResponse'
              example:
                items:
                - id: 2b0f951a-0e00-4251-9f8a-172ce66b0aad
                  code: Client code
                - id: 76821c80-0e64-469b-98d9-9e8c9875884a
                  code: Client code 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Field mapping group items
      summary: Create a new field mapping group item
      description: 'Create a new field mapping group item <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createFieldMappingGroupItem
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: fieldMappingGroupId
        in: path
        description: The field mapping group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Field mapping group item to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FieldMappingGroupItemRequest'
            example:
              code: Client code
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FieldMappingGroupItem'
              example:
                id: d03704ed-c69f-435f-94f7-b82196792fdb
                code: Client code 3
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/products/{productId}/fieldMappingGroups/{fieldMappingGroupId}/items/{itemId}:
    delete:
      tags:
      - Field mapping group items
      summary: Delete field mapping group item by uuid
      description: 'Delete field mapping group item by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteFieldMappingGroupItem
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: fieldMappingGroupId
        in: path
        description: The field mapping group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: itemId
        in: path
        description: The field mapping group item identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The field mapping group item was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Field mapping group items
      summary: Update an existing field mapping group item by uuid
      description: 'Update an existing field mapping group item by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateFieldMappingGroupItem
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: fieldMappingGroupId
        in: path
        description: The field mapping group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: itemId
        in: path
        description: The field mapping group item identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Field mapping group item data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FieldMappingGroupItemRequest'
            example:
              code: Client code
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FieldMappingGroupItem'
              example:
                id: d03704ed-c69f-435f-94f7-b82196792fdb
                code: Client code 3
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/products/{productId}/fieldMappingGroups:
    get:
      tags:
      - Field mapping groups
      summary: Get a list of all field mapping groups
      description: 'Get a list of all field mapping groups <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllFieldMappingGroups
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListFieldMappingGroupResponse'
              example:
                fieldMappingGroups:
                - id: 407ea18e-e0af-4a95-b834-95ec20c89407
                  order: 1
                  taxField:
                    id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                    name: header.seller.country.name
                    dropdownFieldName: seller.countryName
                    hoverText: Seller country name applied for the tax engine calculation
                    dataType: STRING
                    dataSource:
                    order: 1
                  itemsCount: 2
                - id: 4f42145c-adbb-4f77-b027-70b5bdd0e181
                  order: 2
                  taxField:
                    id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                    name: header.seller.country.name
                    dropdownFieldName: seller.countryName
                    hoverText: Seller country name applied for the tax engine calculation
                    dataType: STRING
                    dataSource:
                    order: 1
                  itemsCount: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Field mapping groups
      summary: Create a new field mapping group
      description: 'Create a new field mapping group <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createFieldMappingGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Field mapping group to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FieldMappingGroupRequest'
            example:
              taxFieldId: 74d3e63d-09be-432a-aa7a-7b686ece0043
              order: 2
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FieldMappingGroup'
              example:
                id: 407ea18e-e0af-4a95-b834-95ec20c89407
                order: 1
                taxField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource:
                  order: 1
                itemsCount: 0
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/products/{productId}/fieldMappingGroups/{fieldMappingGroupId}:
    delete:
      tags:
      - Field mapping groups
      summary: Delete field mapping group by uuid
      description: 'Delete field mapping group by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteFieldMappingGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: fieldMappingGroupId
        in: path
        description: The field mapping group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The field mapping group was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Field mapping groups
      summary: Update an existing field mapping group by uuid
      description: 'Update an existing field mapping group by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: updateFieldMappingGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: fieldMappingGroupId
        in: path
        description: The field mapping group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Field mapping group data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FieldMappingGroupRequest'
            example:
              taxFieldId: 74d3e63d-09be-432a-aa7a-7b686ece0043
              order: 2
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FieldMappingGroup'
              example:
                id: 407ea18e-e0af-4a95-b834-95ec20c89407
                order: 1
                taxField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource:
                  order: 1
                itemsCount: 0
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/engineNotes:
    get:
      tags:
      - Custom engine notes
      summary: Get a list of all custom engine notes
      description: 'Get a list of all custom engine notes <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllCustomEngineNotes
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: search
        in: query
        description: Search term to filter out engine notes
        schema:
          type: string
      - name: sortBy
        in: query
        description: Sort by criteria
        schema:
          type: string
          enum:
          - code
          - code.asc
          - code.desc
        example: name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListEngineNoteResponse'
              example:
                engineNotes:
                - id: 4abb4fe1-b1aa-4f1c-83ed-31e4fba621b5
                  code: '99'
                  description: LOCATION_CONSUMPTION is set with a custom rule
                  information: Engine note information
                  taxServiceEvent:
                - id: 8917cf32-53e8-4feb-a0ba-9a6cb1703843
                  code: '101'
                  description: LOCATION_INSTALLATION is set with a tax code
                  information: Additional information
                  taxServiceEvent: INVALID_VALUE_LINE_LOCATION_INSTALLATION_COUNTRY_CODE
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom engine notes
      summary: Create a new custom engine note
      description: 'Create a new custom engine note <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomEngineNote
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Engine note to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EngineNoteRequest'
            example:
              code: '99'
              description: LOCATION_CONSUMPTION is set with a custom rule
              information: Engine note information
              taxServiceEvent:
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EngineNote'
              example:
                id: 7839feca-aa79-4611-9714-76eb1382fef1
                code: '99'
                description: LOCATION_CONSUMPTION is set with a custom rule
                information: Engine note information
                taxServiceEvent: INVALID_VALUE_HEADER_CALL_INDICATOR
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/engineNotes/{engineNoteId}:
    delete:
      tags:
      - Custom engine notes
      summary: Delete custom engine note by uuid
      description: 'Delete custom engine note by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomEngineNote
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: engineNoteId
        in: path
        description: The engine note identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The engine note was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom engine notes
      summary: Update an existing custom engine note by uuid
      description: 'Update an existing custom engine note by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: updateCustomEngineNote
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: engineNoteId
        in: path
        description: The engine note identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Engine note data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EngineNoteRequest'
            example:
              code: '99'
              description: LOCATION_CONSUMPTION is set with a custom rule
              information: Engine note information
              taxServiceEvent:
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EngineNote'
              example:
                id: 7839feca-aa79-4611-9714-76eb1382fef1
                code: '99'
                description: LOCATION_CONSUMPTION is set with a custom rule
                information: Engine note information
                taxServiceEvent: INVALID_VALUE_HEADER_CALL_INDICATOR
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxCallStatistics:
    get:
      tags:
      - Tax call counters
      summary: Get a list of all tax calls
      description: 'Get a list of all tax calls <br/> Scope: space_read<br/> This
        Endpoint is part of: tax_configuration'
      operationId: getCustomTaxCallStatistics
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomTaxCallCounterResponse'
              example:
                taxCallCounters:
                - id: 7839feca-aa79-4611-9714-76eb1382fef1
                  calls: 120
                  year: 2024
                  month: 3
                  type: API
                - id: 8654f439-5b77-48ab-a7db-d173726b48a9
                  calls: 60
                  year: 2024
                  month: 4
                  type: BATCH
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/taxFields:
    get:
      tags:
      - Tax fields
      summary: Get a list of tax fields
      description: 'Get a list of tax fields <br/> Scope: space_read<br/> This Endpoint
        is part of: tax_configuration'
      operationId: getAllTaxFields
      parameters:
      - name: search
        in: query
        description: Search term to filter out tax fields
        schema:
          type: string
      - name: page
        in: query
        description: Zero-based page index, cannot be negative, default 0
        schema:
          type: integer
          format: int32
        example: 20
      - name: pageSize
        in: query
        description: 'Page size. Minimum 1, maximum: 400, default 20'
        schema:
          type: integer
          format: int32
        example: 20
      - name: includeTotalElements
        in: query
        description: Return the totalElements number of entries in the response
        schema:
          type: boolean
        example: true
      - name: sortBy
        in: query
        description: Sort by criteria
        schema:
          type: string
          enum:
          - name
          - name.asc
          - name.desc
          - order
          - order.asc
          - order.desc
        example: name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AllTaxFieldResult'
              example:
                taxFields:
                - id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: seller.country
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                  adminInputRuleVisibility: ACTION
                  customInputRuleVisibility: ACTION
                  adminOutputRuleVisibility: ACTION
                  customOutputRuleVisibility: ACTION
                  adminTaxCodeVisibility: ACTION
                  customTaxCodeVisibility: ACTION
                  adminInvoiceWordingVisibility: ACTION
                  customInvoiceWordingVisibility: ACTION
                  overrideMappingVisibility: CONDITION
                  adminTaxTransactionMemoVisibility: CONDITION
                  adminDiffTransactionMemoVisibility: CONDITION
                  customTaxTransactionMemoVisibility: CONDITION
                  customDiffTransactionMemoVisibility: CONDITION
                  adminTerritoryRuleVisibility: ACTION
                  customTerritoryRuleVisibility: CONDITION
                  adminTaxProfileVisibility: ACTION
                  customTaxProfileVisibility: CONDITION
                  adminPeppolTaxCategoryVisibility: CONDITION
                  customPeppolTaxCategoryVisibility: CONDITION
                  adminVatexCodeVisibility: CONDITION
                  customVatexCodeVisibility: CONDITION
                  type: SYSTEM
                currentPage: 0
                pageSize: 20
                totalElements: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/spaces/{spaceId}/taxFields/{taxFieldId}/options:
    get:
      tags:
      - Tax fields
      summary: Get tax field options for space ID
      description: 'Get tax field options for space ID <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getSpaceTaxFieldOptions
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxFieldId
        in: path
        description: The tax field identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListTaxFieldOptionsResponse'
              example:
                options:
                - label: ITX
                  value: ITX
                  isAdmin: true
                - label: PPT
                  value: PPT
                  isAdmin: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/taxFields/{taxFieldId}:
    get:
      tags:
      - Tax fields
      summary: Get tax field by uuid
      description: 'Get tax field by uuid <br/> Scope: space_read<br/> This Endpoint
        is part of: tax_configuration'
      operationId: getTaxField
      parameters:
      - name: taxFieldId
        in: path
        description: The tax field identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaxField'
              example:
                id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                name: header.seller.country.name
                dropdownFieldName: seller.countryName
                hoverText: Seller country name applied for the tax engine calculation
                dataType: STRING
                dataSource: CONDITION
                order: 1
                adminInputRuleVisibility: ACTION
                customInputRuleVisibility: ACTION
                adminOutputRuleVisibility: ACTION
                customOutputRuleVisibility: ACTION
                adminTaxCodeVisibility: ACTION
                customTaxCodeVisibility: ACTION
                adminInvoiceWordingVisibility: ACTION
                customInvoiceWordingVisibility: ACTION
                overrideMappingVisibility: CONDITION
                adminTaxTransactionMemoVisibility: CONDITION
                adminDiffTransactionMemoVisibility: CONDITION
                customTaxTransactionMemoVisibility: CONDITION
                customDiffTransactionMemoVisibility: CONDITION
                adminTerritoryRuleVisibility: ACTION
                customTerritoryRuleVisibility: CONDITION
                adminTaxProfileVisibility: ACTION
                customTaxProfileVisibility: CONDITION
                adminPeppolTaxCategoryVisibility: CONDITION
                customPeppolTaxCategoryVisibility: CONDITION
                adminVatexCodeVisibility: CONDITION
                customVatexCodeVisibility: CONDITION
                type: SYSTEM
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/taxFields/{taxFieldId}/options:
    get:
      tags:
      - Tax fields
      summary: Get tax field options
      description: 'Get tax field options <br/> Scope: space_read<br/> This Endpoint
        is part of: tax_configuration'
      operationId: getTaxFieldOptions
      parameters:
      - name: taxFieldId
        in: path
        description: The tax field identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListTaxFieldOptionsResponse'
              example:
                options:
                - label: ITX
                  value: ITX
                  isAdmin: true
                - label: PPT
                  value: PPT
                  isAdmin: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/spaces/{spaceId}/peppolTaxCategories:
    get:
      tags:
      - Custom PEPPOL tax categories
      summary: Get a list of all custom PEPPOL tax categories
      description: 'Get a list of all custom PEPPOL tax categories <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllCustomPeppolTaxCategories
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: search
        in: query
        description: Search term to filter out PEPPOL tax categories
        schema:
          type: string
      - name: page
        in: query
        description: Zero-based page index, cannot be negative, default 0
        schema:
          type: integer
          format: int32
        example: 20
      - name: pageSize
        in: query
        description: 'Page size. Minimum 1, maximum: 400, default 20'
        schema:
          type: integer
          format: int32
        example: 20
      - name: includeTotalElements
        in: query
        description: Return the totalElements number of entries in the response
        schema:
          type: boolean
        example: true
      - name: sortBy
        in: query
        description: Sort by criteria
        schema:
          type: string
          enum:
          - code
          - code.asc
          - code.desc
          - name
          - name.asc
          - name.desc
        example: name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomPeppolTaxCategoryResponse'
              example:
                results:
                - id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                  code: AE
                  name: Reverse charge
                totalElements: 1
                currentPage: 0
                pageSize: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom PEPPOL tax categories
      summary: Create a new custom PEPPOL tax category
      description: 'Create a new custom PEPPOL tax category <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomPeppolTaxCategory
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom PEPPOL tax category to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomPeppolTaxCategoryRequest'
            example:
              code: AE
              name: Reverse charge
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomPeppolTaxCategory'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                code: AE
                name: Reverse charge
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/peppolTaxCategories/{categoryId}:
    get:
      tags:
      - Custom PEPPOL tax categories
      summary: Get custom PEPPOL tax category by uuid
      description: 'Get custom PEPPOL tax category by uuid <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getCustomPeppolTaxCategoryById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: categoryId
        in: path
        description: The custom PEPPOL tax category identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomPeppolTaxCategory'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                code: AE
                name: Reverse charge
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    delete:
      tags:
      - Custom PEPPOL tax categories
      summary: Delete custom PEPPOL tax category by uuid
      description: 'Delete custom PEPPOL tax category by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomPeppolTaxCategory
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: categoryId
        in: path
        description: The custom PEPPOL tax category identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom PEPPOL tax category was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom PEPPOL tax categories
      summary: Update an existing custom PEPPOL tax category by uuid
      description: 'Update an existing custom PEPPOL tax category by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomPeppolTaxCategory
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: categoryId
        in: path
        description: The custom PEPPOL tax category identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom PEPPOL tax category data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomPeppolTaxCategoryRequest'
            example:
              code: AE
              name: Reverse charge
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomPeppolTaxCategory'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                code: AE
                name: Reverse charge
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/peppolTaxCategoryMappings/{mappingId}/instructionGroups:
    get:
      tags:
      - Custom PEPPOL tax category mapping instruction groups
      summary: Get a list of all custom PEPPOL tax category mapping instruction groups
      description: 'Get a list of all custom PEPPOL tax category mapping instruction
        groups <br/> Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomPeppolTaxCategoryMappingInstructionGroups
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom PEPPOL tax category mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionGroupResponse'
              example:
                instructionGroups:
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                  logicalOperator: AND
                  order: 1
                  place: CONDITION
                  instructionsCount: 1
                  entityInstructionsCount: 0
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83498
                  logicalOperator: OR
                  order: 2
                  place: CONDITION
                  instructionsCount: 2
                  entityInstructionsCount: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom PEPPOL tax category mapping instruction groups
      summary: Create a new custom PEPPOL tax category mapping instruction group
      description: 'Create a new custom PEPPOL tax category mapping instruction group
        <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomPeppolTaxCategoryMappingInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom PEPPOL tax category mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom PEPPOL tax category mapping instruction group to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/peppolTaxCategoryMappings/{mappingId}/instructionGroups/{instructionGroupId}:
    delete:
      tags:
      - Custom PEPPOL tax category mapping instruction groups
      summary: Delete custom PEPPOL tax category mapping instruction group by uuid
      description: 'Delete custom PEPPOL tax category mapping instruction group by
        uuid <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomPeppolTaxCategoryMappingInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom PEPPOL tax category mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The custom PEPPOL tax category mapping instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom PEPPOL tax category mapping instruction
            group was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom PEPPOL tax category mapping instruction groups
      summary: Update an existing custom PEPPOL tax category mapping instruction group
        by uuid
      description: 'Update an existing custom PEPPOL tax category mapping instruction
        group by uuid <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomPeppolTaxCategoryMappingInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom PEPPOL tax category mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The custom PEPPOL tax category mapping instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom PEPPOL tax category mapping instruction group data to
          update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/peppolTaxCategoryMappings/{mappingId}/instructionGroups/{instructionGroupId}/instructions:
    get:
      tags:
      - Custom PEPPOL tax category mapping instructions
      summary: Get a list of all custom PEPPOL tax category mapping instructions
      description: 'Get a list of all custom PEPPOL tax category mapping instructions
        <br/> Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomPeppolTaxCategoryMappingInstructions
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom PEPPOL tax category mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionResponse'
              example:
                instructions:
                - id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                  leadingField:
                    id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                    name: header.seller.country.name
                    dropdownFieldName: seller.countryName
                    hoverText: Seller country name applied for the tax engine calculation
                    dataType: STRING
                    dataSource: CONDITION
                    order: 1
                  operator: EQUAL
                  value: BE
                  comparisonField:
                  isMandatory: false
                - id: a7f8e3c2-6d41-4b89-9e15-3c7a2f8d6b91
                  leadingField:
                    id: e2a9b7c4-8f3d-4e67-a123-9b8c7d6e5f42
                    name: header.buyer.vat.number
                    dropdownFieldName: buyer.vatNumber
                    hoverText: Buyer VAT number for tax validation
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 2
                  operator: NOT_EQUAL
                  value:
                  comparisonField:
                    id: f3b8c9d5-7e42-4a98-b234-8c9d7e6f5a43
                    name: header.seller.vat.number
                    dropdownFieldName: seller.vatNumber
                    hoverText: Seller VAT number for comparison
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 3
                  isMandatory: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom PEPPOL tax category mapping instructions
      summary: Create a new custom PEPPOL tax category mapping instruction
      description: 'Create a new custom PEPPOL tax category mapping instruction <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomPeppolTaxCategoryMappingInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom PEPPOL tax category mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom PEPPOL tax category mapping instruction to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  ? /v1/spaces/{spaceId}/peppolTaxCategoryMappings/{mappingId}/instructionGroups/{instructionGroupId}/instructions/{instructionId}
  : delete:
      tags:
      - Custom PEPPOL tax category mapping instructions
      summary: Delete custom PEPPOL tax category mapping instruction by uuid
      description: 'Delete custom PEPPOL tax category mapping instruction by uuid
        <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomPeppolTaxCategoryMappingInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom PEPPOL tax category mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The custom PEPPOL tax category mapping instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom PEPPOL tax category mapping instruction
            was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom PEPPOL tax category mapping instructions
      summary: Update an existing custom PEPPOL tax category mapping instruction by
        uuid
      description: 'Update an existing custom PEPPOL tax category mapping instruction
        by uuid <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomPeppolTaxCategoryMappingInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom PEPPOL tax category mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The custom PEPPOL tax category mapping instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom PEPPOL tax category mapping instruction data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/peppolTaxCategoryMappings/{mappingId}:clone:
    post:
      tags:
      - Custom PEPPOL tax category mappings
      summary: Clone custom PEPPOL tax category mappings by uuid
      description: 'Clone custom PEPPOL tax category mappings by uuid <br/> Scope:
        space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: cloneCustomPeppolTaxCategoryMappingById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom PEPPOL tax category mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomPeppolTaxCategoryMapping'
              example:
                id: afdb8549-7385-4bd6-bb90-44c5043c99ef
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                instructionGroupsCount: 2
                customPeppolTaxCategory:
                  id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                  code: AE
                  name: Reverse charge
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/spaces/{spaceId}/peppolTaxCategoryMappings:
    get:
      tags:
      - Custom PEPPOL tax category mappings
      summary: Get a list of all custom PEPPOL tax category mappings type one
      description: 'Get a list of all custom PEPPOL tax category mappings type one
        <br/> Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomPeppolTaxCategoryMappings
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: page
        in: query
        description: Zero-based page index, cannot be negative, default 0
        schema:
          type: integer
          format: int32
        example: 20
      - name: pageSize
        in: query
        description: 'Page size. Minimum 1, maximum: 400, default 20'
        schema:
          type: integer
          format: int32
        example: 20
      - name: includeTotalElements
        in: query
        description: Return the totalElements number of entries in the response
        schema:
          type: boolean
        example: true
      - name: sortBy
        in: query
        description: Sort by criteria
        schema:
          type: string
          enum:
          - order
          - order.asc
          - order.desc
        example: order
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomPeppolTaxCategoryMappingResponse'
              example:
                results:
                - id: afdb8549-7385-4bd6-bb90-44c5043c99ef
                  startDate: 2024-01-01
                  endDate:
                  order: 1
                  logicalOperator: AND
                  condition: ''
                  instructionGroupsCount: 2
                  customPeppolTaxCategory:
                    id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                    code: AE
                    name: Reverse charge
                totalElements: 1
                currentPage: 0
                pageSize: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom PEPPOL tax category mappings
      summary: Create a new custom PEPPOL tax category mappings
      description: 'Create a new custom PEPPOL tax category mappings <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomPeppolTaxCategoryMapping
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom rule to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomPeppolTaxCategoryMappingRequest'
            example:
              peppolTaxCategoryId: dfdb8549-7385-4bd6-bb90-44c5043c99dd
              startDate: 2024-01-01
              endDate: 2024-12-31
              logicalOperator: AND
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomPeppolTaxCategoryMapping'
              example:
                id: afdb8549-7385-4bd6-bb90-44c5043c99ef
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                instructionGroupsCount: 2
                customPeppolTaxCategory:
                  id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                  code: AE
                  name: Reverse charge
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/peppolTaxCategoryMappings/{mappingId}:
    get:
      tags:
      - Custom PEPPOL tax category mappings
      summary: Get custom PEPPOL tax category mappings by uuid
      description: 'Get custom PEPPOL tax category mappings by uuid <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getCustomPeppolTaxCategoryMappingById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom PEPPOL tax category mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomPeppolTaxCategoryMapping'
              example:
                id: afdb8549-7385-4bd6-bb90-44c5043c99ef
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                instructionGroupsCount: 2
                customPeppolTaxCategory:
                  id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                  code: AE
                  name: Reverse charge
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    delete:
      tags:
      - Custom PEPPOL tax category mappings
      summary: Delete custom PEPPOL tax category mappings by uuid
      description: 'Delete custom PEPPOL tax category mappings by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomPeppolTaxCategoryMapping
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom PEPPOL tax category mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom PEPPOL tax category mapping was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom PEPPOL tax category mappings
      summary: Update an existing custom PEPPOL tax category mappings by uuid
      description: 'Update an existing custom PEPPOL tax category mappings by uuid
        <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomPeppolTaxCategoryMapping
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom PEPPOL tax category mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom rule data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomPeppolTaxCategoryMappingPatchRequest'
            example:
              peppolTaxCategoryId: dfdb8549-7385-4bd6-bb90-44c5043c99dd
              startDate: 2024-01-01
              endDate: 2024-12-31
              logicalOperator: AND
              order: 1
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomPeppolTaxCategoryMapping'
              example:
                id: afdb8549-7385-4bd6-bb90-44c5043c99ef
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                instructionGroupsCount: 2
                customPeppolTaxCategory:
                  id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                  code: AE
                  name: Reverse charge
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/territories/{territoryId}/taxDeductionLimitations:
    get:
      tags:
      - Custom tax deduction limitation
      summary: Get a list of all custom tax deduction limitations
      description: 'Get a list of all custom tax deduction limitations <br/> Scope:
        space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomTaxDeductionLimitations
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomTaxDeductionLimitationResponse'
              example:
                taxDeductionLimitations:
                - id: 4c64df04-296e-4e9f-981d-5e569ffd18ed
                  taxProductId: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb78
                  isCustomProduct: false
                  percentage: 20
                  startDate: 2024-01-01
                  endDate:
                  comment: First custom limitation
                  productDetails:
                    id: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb78
                    code: Code 1
                    displayCode: PREFIX_Code 1
                    name: Name 1
                    description: Product description
                    isInstallable: true
                    serviceType: GOODS
                    classification:
                    isCustomProduct: false
                    taxProductCategoryId: 00000000-0000-0000-0000-000000000001
                    taxProductCategoryName: Category 1
                    taxProductRegisterId: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292f
                    taxProductRegisterName: Register name
                - id: 5c64df04-296e-4e9f-981d-5e569ffd18fe
                  taxProductId: 8bfe5a4e-b655-4e5e-a12a-ba6edb8fdb89
                  isCustomProduct: true
                  percentage: 30
                  startDate: 2024-02-01
                  endDate: 2024-12-31
                  comment: Second custom limitation
                  productDetails:
                    id: 8bfe5a4e-b655-4e5e-a12a-ba6edb8fdb89
                    code: Code 2
                    displayCode: PREFIX_Code 2
                    name: Name 2
                    description: Another product description
                    isInstallable: false
                    serviceType: SERVICE_GENERAL
                    classification: NEW_CAR
                    isCustomProduct: true
                    taxProductCategoryId: 00000000-0000-0000-0000-000000000002
                    taxProductCategoryName: Category 2
                    taxProductRegisterId: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292f
                    taxProductRegisterName: Register name
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom tax deduction limitation
      summary: Create a new custom tax deduction limitation
      description: 'Create a new custom tax deduction limitation <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomTaxDeductionLimitation
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Tax custom product tax deduction limitation to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomTaxDeductionLimitationRequest'
            example:
              taxProductId: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb78
              isCustomProduct: false
              percentage: 20
              comment: Applies only during the fiscal year-end
              startDate: 2024-01-01
              endDate:
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxDeductionLimitation'
              example:
                id: 4c64df04-296e-4e9f-981d-5e569ffd18ed
                taxProductId: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb78
                isCustomProduct: false
                percentage: 20
                startDate: 2024-01-01
                endDate:
                comment: Applies only during the fiscal year-end
                productDetails:
                  id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292g
                  code: Code 1
                  displayCode: PREFIX_Code 1
                  name: Name 1
                  description: Product description
                  isInstallable: true
                  serviceType: GOODS
                  classification:
                  isCustomProduct: false
                  taxProductCategoryId: f61da1e0-f1ec-49c5-bb60-185a272a5780
                  taxProductCategoryName: Category name
                  taxProductRegisterId: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292g
                  taxProductRegisterName: Register name
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/territories/{territoryId}/taxDeductionLimitations/{taxDeductionLimitationId}:
    delete:
      tags:
      - Custom tax deduction limitation
      summary: Delete custom deduction limitation by uuid
      description: 'Delete custom deduction limitation by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomTaxDeductionLimitation
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxDeductionLimitationId
        in: path
        description: The custom tax deduction limitation identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom tax deduction limitation was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom tax deduction limitation
      summary: Update an existing custom tax deduction limitation by uuid
      description: 'Update an existing custom tax deduction limitation by uuid <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomTaxDeductionLimitation
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxDeductionLimitationId
        in: path
        description: The custom tax deduction limitation identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Tax custom tax deduction limitation mapping data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomTaxDeductionLimitationRequest'
            example:
              taxProductId: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb78
              isCustomProduct: false
              percentage: 20
              comment: Applies only during the fiscal year-end
              startDate: 2024-01-01
              endDate:
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxDeductionLimitation'
              example:
                id: 4c64df04-296e-4e9f-981d-5e569ffd18ed
                taxProductId: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb78
                isCustomProduct: false
                percentage: 20
                startDate: 2024-01-01
                endDate:
                comment: Applies only during the fiscal year-end
                productDetails:
                  id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292g
                  code: Code 1
                  displayCode: PREFIX_Code 1
                  name: Name 1
                  description: Product description
                  isInstallable: true
                  serviceType: GOODS
                  classification:
                  isCustomProduct: false
                  taxProductCategoryId: f61da1e0-f1ec-49c5-bb60-185a272a5780
                  taxProductCategoryName: Category name
                  taxProductRegisterId: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292g
                  taxProductRegisterName: Register name
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/territories/{territoryId}/taxProductTaxRateMappings:
    get:
      tags:
      - Custom tax product tax rate mappings
      summary: Get a list of all custom tax product tax rate mappings
      description: 'Get a list of all custom tax product tax rate mappings <br/> Scope:
        space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomTaxProductTaxRateMappings
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomTaxProductTaxRateMappingResponse'
              example:
                taxProductTaxRateMappings:
                - id: 7bffcbcf-cde2-4da7-acb6-df27fdb851c0
                  taxProductId: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb78
                  taxRateCategoryId: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb79
                  startDate: 2023-04-10
                  endDate: 2023-04-14
                  taxType: ITX
                  comment: First custom mapping
                  isCustomProduct: false
                  productDetails:
                    id: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb78
                    code: Code 1
                    displayCode: PREFIX_Code 1
                    name: Name 1
                    description: Product description
                    isInstallable: true
                    serviceType: GOODS
                    classification:
                    isCustomProduct: false
                    taxProductRegisterId: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292f
                    taxProductRegisterName: Register name
                    taxProductCategoryId: 00000000-0000-0000-0000-000000000001
                    taxProductCategoryName: Category 1
                - id: 8cffcbcf-cde2-4da7-acb6-df27fdb851d1
                  taxProductId: 8bfe5a4e-b655-4e5e-a12a-ba6edb8fdb89
                  taxRateCategoryId: 9bfe5a4e-b655-4e5e-a12a-ba6edb8fdb90
                  startDate: 2023-05-01
                  endDate:
                  taxType: ITX
                  comment: Second custom mapping
                  isCustomProduct: true
                  productDetails:
                    id: 8bfe5a4e-b655-4e5e-a12a-ba6edb8fdb89
                    code: Code 1
                    displayCode: PREFIX_Code 1
                    name: Name 2
                    description: Another product description
                    isInstallable: false
                    serviceType: SERVICE_GENERAL
                    classification: NEW_CAR
                    isCustomProduct: false
                    taxProductRegisterId: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292f
                    taxProductRegisterName: Register name
                    taxProductCategoryId: 00000000-0000-0000-0000-000000000001
                    taxProductCategoryName: Category 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom tax product tax rate mappings
      summary: Create a new custom tax product tax rate mapping
      description: 'Create a new custom tax product tax rate mapping <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomTaxProductTaxRateMapping
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Tax custom product tax rate mapping to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomTaxProductTaxRateMappingRequest'
            example:
              taxProductId: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb78
              taxRateCategoryId: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb78
              isCustomProduct: false
              startDate: 2024-04-15
              endDate:
              taxType: ITX
              comment: Mapping comment
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxProductTaxRateMapping'
              example:
                id: afaffda2-26f8-400e-be5b-d53e7c9e2033
                taxProductId: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb78
                taxRateCategoryId: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb79
                startDate: 2024-04-15
                endDate:
                comment:
                taxType: ITX
                isCustomProduct: false
                productDetails:
                  id: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb78
                  code: Code 1
                  displayCode: PREFIX_Code 1
                  name: Name 1
                  description: Product description
                  isInstallable: true
                  serviceType: GOODS
                  classification:
                  isCustomProduct: false
                  taxProductCategoryId: f61da1e0-f1ec-49c5-bb60-185a272a5780
                  taxProductCategoryName: Category name
                  taxProductRegisterId: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292a
                  taxProductRegisterName: Register name
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/territories/{territoryId}/taxProductTaxRateMappings/{taxProductTaxRateMappingId}:
    delete:
      tags:
      - Custom tax product tax rate mappings
      summary: Delete custom tax product tax rate mapping by uuid
      description: 'Delete custom tax product tax rate mapping by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomTaxProductTaxRateMapping
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProductTaxRateMappingId
        in: path
        description: The custom tax product tax rate mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom tax product tax rate mapping was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom tax product tax rate mappings
      summary: Update an existing custom tax product tax rate mapping by uuid
      description: 'Update an existing custom tax product tax rate mapping by uuid
        <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomTaxProductTaxRateMapping
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProductTaxRateMappingId
        in: path
        description: The custom tax product tax rate mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Tax custom product tax rate mapping data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomTaxProductTaxRateMappingRequest'
            example:
              taxProductId: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb78
              taxRateCategoryId: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb78
              isCustomProduct: false
              startDate: 2024-04-15
              endDate:
              taxType: ITX
              comment: Mapping comment
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxProductTaxRateMapping'
              example:
                id: afaffda2-26f8-400e-be5b-d53e7c9e2033
                taxProductId: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb78
                taxRateCategoryId: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb79
                startDate: 2024-04-15
                endDate:
                comment:
                taxType: ITX
                isCustomProduct: false
                productDetails:
                  id: 7bfe5a4e-b655-4e5e-a12a-ba6edb8fdb78
                  code: Code 1
                  displayCode: PREFIX_Code 1
                  name: Name 1
                  description: Product description
                  isInstallable: true
                  serviceType: GOODS
                  classification:
                  isCustomProduct: false
                  taxProductCategoryId: f61da1e0-f1ec-49c5-bb60-185a272a5780
                  taxProductCategoryName: Category name
                  taxProductRegisterId: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292a
                  taxProductRegisterName: Register name
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/inputRules/{ruleId}:clone:
    post:
      tags:
      - Custom input rules
      summary: Clone custom input rule by uuid
      description: 'Clone custom input rule by uuid <br/> Scope: space_read<br/> This
        Endpoint is part of: tax_configuration'
      operationId: cloneCustomInputRuleById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The custom rule identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRule'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/spaces/{spaceId}/inputRules:
    get:
      tags:
      - Custom input rules
      summary: Get a list of all custom input rule type one
      description: 'Get a list of all custom input rule type one <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllCustomInputRules
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: search
        in: query
        description: Search term to filter out rules
        schema:
          type: string
      - name: page
        in: query
        description: Zero-based page index, cannot be negative, default 0
        schema:
          type: integer
          format: int32
        example: 20
      - name: pageSize
        in: query
        description: 'Page size. Minimum 1, maximum: 400, default 20'
        schema:
          type: integer
          format: int32
        example: 20
      - name: includeTotalElements
        in: query
        description: Return the totalElements number of entries in the response
        schema:
          type: boolean
        example: true
      - name: sortBy
        in: query
        description: Sort by criteria
        schema:
          type: string
          enum:
          - comment
          - comment.asc
          - comment.desc
          - order
          - order.asc
          - order.desc
        example: name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomRuleResponse'
              example:
                results:
                - id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                  comment: This is a rule comment
                  startDate: 2024-01-01
                  endDate:
                  order: 1
                  logicalOperator: AND
                  condition: ''
                  action: ''
                  instructionGroupsCount: 2
                totalElements: 0
                currentPage: 0
                pageSize: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom input rules
      summary: Create a new custom input rule
      description: 'Create a new custom input rule <br/> Scope: space_write<br/> This
        Endpoint is part of: tax_configuration'
      operationId: createCustomInputRule
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom rule to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomRuleRequest'
            example:
              comment: This is a rule comment
              startDate: 2024-01-01
              endDate: 2024-12-31
              logicalOperator: AND
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRule'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/inputRules/{ruleId}:
    get:
      tags:
      - Custom input rules
      summary: Get custom input rule by uuid
      description: 'Get custom input rule by uuid <br/> Scope: space_read<br/> This
        Endpoint is part of: tax_configuration'
      operationId: getCustomInputRuleById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The custom rule identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRule'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    delete:
      tags:
      - Custom input rules
      summary: Delete custom input rule by uuid
      description: 'Delete custom input rule by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomInputRule
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The custom rule identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom rule was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom input rules
      summary: Update an existing custom input rule by uuid
      description: 'Update an existing custom input rule by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: updateCustomInputRule
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The custom rule identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom rule data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomRulePatchRequest'
            example:
              comment: This is a rule comment 2
              startDate: 2024-01-01
              endDate:
              logicalOperator: AND
              order: 1
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRule'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/invoiceWordings/{invoiceWordingId}:clone:
    post:
      tags:
      - Custom invoice wordings
      summary: Clone custom invoice wording by uuid
      description: 'Clone custom invoice wording by uuid <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: cloneCustomInvoiceWordingById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: invoiceWordingId
        in: path
        description: The custom invoice wording identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRule'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/spaces/{spaceId}/invoiceWordings:
    get:
      tags:
      - Custom invoice wordings
      summary: Get a list of all custom invoice wordings
      description: 'Get a list of all custom invoice wordings <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllCustomInvoiceWordings
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: search
        in: query
        description: Search term to filter out invoice wordings
        schema:
          type: string
      - name: page
        in: query
        description: Zero-based page index, cannot be negative, default 0
        schema:
          type: integer
          format: int32
        example: 20
      - name: pageSize
        in: query
        description: 'Page size. Minimum 1, maximum: 400, default 20'
        schema:
          type: integer
          format: int32
        example: 20
      - name: includeTotalElements
        in: query
        description: Return the totalElements number of entries in the response
        schema:
          type: boolean
        example: true
      - name: sortBy
        in: query
        description: Sort by criteria
        schema:
          type: string
          enum:
          - comment
          - comment.asc
          - comment.desc
          - order
          - order.asc
          - order.desc
        example: name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomRuleResponse'
              example:
                results:
                - id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                  comment: This is a rule comment
                  startDate: 2024-01-01
                  endDate:
                  order: 1
                  logicalOperator: AND
                  condition: ''
                  action: ''
                  instructionGroupsCount: 2
                totalElements: 0
                currentPage: 0
                pageSize: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom invoice wordings
      summary: Create a new custom invoice wording
      description: 'Create a new custom invoice wording <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomInvoiceWording
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom invoice wording to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomRuleRequest'
            example:
              comment: This is a rule comment
              startDate: 2024-01-01
              endDate: 2024-12-31
              logicalOperator: AND
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRule'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/invoiceWordings/{invoiceWordingId}:
    get:
      tags:
      - Custom invoice wordings
      summary: Get custom invoice wording by uuid
      description: 'Get custom invoice wording by uuid <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getCustomInvoiceWordingById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: invoiceWordingId
        in: path
        description: The custom invoice wording identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRule'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    delete:
      tags:
      - Custom invoice wordings
      summary: Delete custom invoice wording by uuid
      description: 'Delete custom invoice wording by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomInvoiceWording
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: invoiceWordingId
        in: path
        description: The custom invoice wording identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom invoice wording was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom invoice wordings
      summary: Update an existing custom invoice wording by uuid
      description: 'Update an existing custom invoice wording by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomInvoiceWording
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: invoiceWordingId
        in: path
        description: The custom invoice wording identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom invoice wording data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomRulePatchRequest'
            example:
              comment: This is a rule comment 2
              startDate: 2024-01-01
              endDate:
              logicalOperator: AND
              order: 1
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRule'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/outputRules/{ruleId}:clone:
    post:
      tags:
      - Custom output rules
      summary: Clone custom output rule by uuid
      description: 'Clone custom output rule by uuid <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: cloneCustomOutputRuleById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The custom rule identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRule'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/spaces/{spaceId}/outputRules:
    get:
      tags:
      - Custom output rules
      summary: Get a list of all custom output rule type two
      description: 'Get a list of all custom output rule type two <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllCustomOutputRules
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: search
        in: query
        description: Search term to filter out rules
        schema:
          type: string
      - name: page
        in: query
        description: Zero-based page index, cannot be negative, default 0
        schema:
          type: integer
          format: int32
        example: 20
      - name: pageSize
        in: query
        description: 'Page size. Minimum 1, maximum: 400, default 20'
        schema:
          type: integer
          format: int32
        example: 20
      - name: includeTotalElements
        in: query
        description: Return the totalElements number of entries in the response
        schema:
          type: boolean
        example: true
      - name: sortBy
        in: query
        description: Sort by criteria
        schema:
          type: string
          enum:
          - comment
          - comment.asc
          - comment.desc
          - order
          - order.asc
          - order.desc
        example: name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomRuleResponse'
              example:
                results:
                - id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                  comment: This is a rule comment
                  startDate: 2024-01-01
                  endDate:
                  order: 1
                  logicalOperator: AND
                  condition: ''
                  action: ''
                  instructionGroupsCount: 2
                totalElements: 0
                currentPage: 0
                pageSize: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom output rules
      summary: Create a new custom output rule
      description: 'Create a new custom output rule <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomOutputRule
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom rule to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomRuleRequest'
            example:
              comment: This is a rule comment
              startDate: 2024-01-01
              endDate: 2024-12-31
              logicalOperator: AND
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRule'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/outputRules/{ruleId}:
    get:
      tags:
      - Custom output rules
      summary: Get custom output rule by uuid
      description: 'Get custom output rule by uuid <br/> Scope: space_read<br/> This
        Endpoint is part of: tax_configuration'
      operationId: getCustomOutputRuleById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The custom rule identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRule'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    delete:
      tags:
      - Custom output rules
      summary: Delete custom output rule by uuid
      description: 'Delete custom output rule by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomOutputRule
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The custom rule identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom rule was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom output rules
      summary: Update an existing custom output rule by uuid
      description: 'Update an existing custom output rule by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: updateCustomOutputRule
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The custom rule identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom rule data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomRulePatchRequest'
            example:
              comment: This is a rule comment 2
              startDate: 2024-01-01
              endDate:
              logicalOperator: AND
              order: 1
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRule'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxCodes/{taxCodeId}:clone:
    post:
      tags:
      - Custom tax codes
      summary: Clone custom tax code by uuid
      description: 'Clone custom tax code by uuid <br/> Scope: space_read<br/> This
        Endpoint is part of: tax_configuration'
      operationId: cloneCustomTaxCodeById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxCodeId
        in: path
        description: The custom tax code identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxCode'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                jurisdiction: COUNTRY
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/spaces/{spaceId}/taxCodes:
    get:
      tags:
      - Custom tax codes
      summary: Get a list of all custom tax codes
      description: 'Get a list of all custom tax codes <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllCustomTaxCodes
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: search
        in: query
        description: Search term to filter out tax codes
        schema:
          type: string
      - name: page
        in: query
        description: Zero-based page index, cannot be negative, default 0
        schema:
          type: integer
          format: int32
        example: 20
      - name: pageSize
        in: query
        description: 'Page size. Minimum 1, maximum: 400, default 20'
        schema:
          type: integer
          format: int32
        example: 20
      - name: includeTotalElements
        in: query
        description: Return the totalElements number of entries in the response
        schema:
          type: boolean
        example: true
      - name: sortBy
        in: query
        description: Sort by criteria
        schema:
          type: string
          enum:
          - comment
          - comment.asc
          - comment.desc
          - order
          - order.asc
          - order.desc
        example: name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listCustomTaxCodeResponse'
              example:
                results:
                - id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                  comment: This is a rule comment
                  jurisdiction: COUNTRY
                  startDate: 2024-01-01
                  endDate:
                  order: 1
                  logicalOperator: AND
                  condition: ''
                  action: ''
                  instructionGroupsCount: 2
                totalElements: 1
                currentPage: 0
                pageSize: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom tax codes
      summary: Create a new custom tax code
      description: 'Create a new custom tax code <br/> Scope: space_write<br/> This
        Endpoint is part of: tax_configuration'
      operationId: createCustomTaxCode
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax code to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomTaxCodeRequest'
            example:
              comment: This is a rule comment
              jurisdiction: COUNTRY
              startDate: 2024-01-01
              endDate: 2024-12-31
              logicalOperator: AND
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxCode'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                jurisdiction: COUNTRY
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxCodes/{taxCodeId}:
    get:
      tags:
      - Custom tax codes
      summary: Get custom tax code by uuid
      description: 'Get custom tax code by uuid <br/> Scope: space_read<br/> This
        Endpoint is part of: tax_configuration'
      operationId: getCustomTaxCodeById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxCodeId
        in: path
        description: The custom tax code identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxCode'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                jurisdiction: COUNTRY
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    delete:
      tags:
      - Custom tax codes
      summary: Delete custom tax code by uuid
      description: 'Delete custom tax code by uuid <br/> Scope: space_write<br/> This
        Endpoint is part of: tax_configuration'
      operationId: deleteCustomTaxCode
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxCodeId
        in: path
        description: The custom tax code identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom tax code was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom tax codes
      summary: Update an existing custom tax code by uuid
      description: 'Update an existing custom tax code by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: updateCustomTaxCode
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxCodeId
        in: path
        description: The custom tax code identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax code data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomTaxCodePatchRequest'
            example:
              comment: This is a tax code comment 2
              jurisdiction: COUNTRY
              startDate: 2024-01-01
              endDate:
              logicalOperator: AND
              order: 1
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxCode'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                jurisdiction: COUNTRY
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxTransactionMemos/{transactionMemoId}:clone:
    post:
      tags:
      - Custom tax transaction memos
      summary: Clone custom tax transaction memo by uuid
      description: 'Clone custom tax transaction memo by uuid <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: cloneCustomTaxTransactionMemoById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The custom tax transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRule'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/spaces/{spaceId}/taxTransactionMemos:
    get:
      tags:
      - Custom tax transaction memos
      summary: Get a list of all custom tax transaction memo type one
      description: 'Get a list of all custom tax transaction memo type one <br/> Scope:
        space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomTaxTransactionMemos
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: search
        in: query
        description: Search term to filter out tax transaction memos
        schema:
          type: string
      - name: page
        in: query
        description: Zero-based page index, cannot be negative, default 0
        schema:
          type: integer
          format: int32
        example: 20
      - name: pageSize
        in: query
        description: 'Page size. Minimum 1, maximum: 400, default 20'
        schema:
          type: integer
          format: int32
        example: 20
      - name: includeTotalElements
        in: query
        description: Return the totalElements number of entries in the response
        schema:
          type: boolean
        example: true
      - name: sortBy
        in: query
        description: Sort by criteria
        schema:
          type: string
          enum:
          - comment
          - comment.asc
          - comment.desc
          - order
          - order.asc
          - order.desc
        example: name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomRuleResponse'
              example:
                results:
                - id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                  comment: This is a rule comment
                  startDate: 2024-01-01
                  endDate:
                  order: 1
                  logicalOperator: AND
                  condition: ''
                  action: ''
                  instructionGroupsCount: 2
                totalElements: 0
                currentPage: 0
                pageSize: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom tax transaction memos
      summary: Create a new custom tax transaction memo
      description: 'Create a new custom tax transaction memo <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomTaxTransactionMemo
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax transaction memo to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomRuleRequest'
            example:
              comment: This is a rule comment
              startDate: 2024-01-01
              endDate: 2024-12-31
              logicalOperator: AND
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRule'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxTransactionMemos/{transactionMemoId}:
    get:
      tags:
      - Custom tax transaction memos
      summary: Get custom tax transaction memo by uuid
      description: 'Get custom tax transaction memo by uuid <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getCustomTaxTransactionMemoById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The custom tax transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRule'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    delete:
      tags:
      - Custom tax transaction memos
      summary: Delete custom tax transaction memo by uuid
      description: 'Delete custom tax transaction memo by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomTaxTransactionMemo
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The custom tax transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom tax transaction memo was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom tax transaction memos
      summary: Update an existing custom tax transaction memo by uuid
      description: 'Update an existing custom tax transaction memo by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomTaxTransactionMemo
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The custom tax transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax transaction memo data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomRulePatchRequest'
            example:
              comment: This is a rule comment 2
              startDate: 2024-01-01
              endDate:
              logicalOperator: AND
              order: 1
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRule'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is a rule comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/products/{productId}/overrideMappings/{overrideMappingId}:clone:
    post:
      tags:
      - Override mappings
      summary: Clone override mapping by uuid
      description: 'Clone override mapping by uuid <br/> Scope: space_read<br/> This
        Endpoint is part of: tax_configuration'
      operationId: cloneOverrideMappingById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: overrideMappingId
        in: path
        description: The override mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OverrideMapping'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is an override mapping comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
                taxProduct:
                  id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292g
                  code: Code 1
                  displayCode: PREFIX_Code 1
                  name: Name 1
                  description: Product description
                  isInstallable: true
                  serviceType: GOODS
                  classification:
                  isCustomProduct: false
                  taxProductCategoryId: f61da1e0-f1ec-49c5-bb60-185a272a5780
                  taxProductCategoryName: Category name
                  taxProductRegisterId: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292g
                  taxProductRegisterName: Register name
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/spaces/{spaceId}/products/{productId}/overrideMappings:
    get:
      tags:
      - Override mappings
      summary: Get a list of all override mappings for a tax product
      description: 'Get a list of all override mappings for a tax product <br/> Scope:
        space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllOverrideMappings_1
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: search
        in: query
        description: Search term to filter out override mappings
        schema:
          type: string
      - name: page
        in: query
        description: Zero-based page index, cannot be negative, default 0
        schema:
          type: integer
          format: int32
        example: 20
      - name: pageSize
        in: query
        description: 'Page size. Minimum 1, maximum: 400, default 20'
        schema:
          type: integer
          format: int32
        example: 20
      - name: includeTotalElements
        in: query
        description: Return the totalElements number of entries in the response
        schema:
          type: boolean
        example: true
      - name: sortBy
        in: query
        description: Sort by criteria
        schema:
          type: string
          enum:
          - comment
          - comment.asc
          - comment.desc
          - order
          - order.asc
          - order.desc
        example: name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListOverrideMappingResponse'
              example:
                results:
                - id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                  comment: This is an override mapping comment
                  startDate: 2024-01-01
                  endDate:
                  order: 1
                  logicalOperator: AND
                  condition: ''
                  action: ''
                  instructionGroupsCount: 2
                  taxProduct:
                    id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292g
                    code: Code 1
                    displayCode: PREFIX_Code 1
                    name: Name 1
                    description: Product description
                    serviceType: GOODS
                    classification:
                    isCustomProduct: false
                    taxProductCategoryId: f61da1e0-f1ec-49c5-bb60-185a272a5780
                    taxProductCategoryName: Category name
                    taxProductRegisterId: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292g
                    taxProductRegisterName: Register name
                totalElements: 1
                currentPage: 0
                pageSize: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Override mappings
      summary: Create a new override mapping
      description: 'Create a new override mapping <br/> Scope: space_write<br/> This
        Endpoint is part of: tax_configuration'
      operationId: createOverrideMapping
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Override mapping to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomRuleRequest'
            example:
              comment: This is a rule comment
              startDate: 2024-01-01
              endDate: 2024-12-31
              logicalOperator: AND
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OverrideMapping'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is an override mapping comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
                taxProduct:
                  id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292g
                  code: Code 1
                  displayCode: PREFIX_Code 1
                  name: Name 1
                  description: Product description
                  isInstallable: true
                  serviceType: GOODS
                  classification:
                  isCustomProduct: false
                  taxProductCategoryId: f61da1e0-f1ec-49c5-bb60-185a272a5780
                  taxProductCategoryName: Category name
                  taxProductRegisterId: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292g
                  taxProductRegisterName: Register name
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/products/{productId}/overrideMappings/{overrideMappingId}:
    get:
      tags:
      - Override mappings
      summary: Get override mapping by uuid
      description: 'Get override mapping by uuid <br/> Scope: space_read<br/> This
        Endpoint is part of: tax_configuration'
      operationId: getOverrideMappingById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: overrideMappingId
        in: path
        description: The override mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OverrideMapping'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is an override mapping comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
                taxProduct:
                  id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292g
                  code: Code 1
                  displayCode: PREFIX_Code 1
                  name: Name 1
                  description: Product description
                  isInstallable: true
                  serviceType: GOODS
                  classification:
                  isCustomProduct: false
                  taxProductCategoryId: f61da1e0-f1ec-49c5-bb60-185a272a5780
                  taxProductCategoryName: Category name
                  taxProductRegisterId: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292g
                  taxProductRegisterName: Register name
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    delete:
      tags:
      - Override mappings
      summary: Delete override mapping by uuid
      description: 'Delete override mapping by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteOverrideMapping
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: overrideMappingId
        in: path
        description: The override mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The override mapping was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Override mappings
      summary: Update an existing override mapping by uuid
      description: 'Update an existing override mapping by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: updateOverrideMapping
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: overrideMappingId
        in: path
        description: The override mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Override mapping data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomRulePatchRequest'
            example:
              comment: This is a rule comment 2
              startDate: 2024-01-01
              endDate:
              logicalOperator: AND
              order: 1
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OverrideMapping'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                comment: This is an override mapping comment
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
                taxProduct:
                  id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292g
                  code: Code 1
                  displayCode: PREFIX_Code 1
                  name: Name 1
                  description: Product description
                  isInstallable: true
                  serviceType: GOODS
                  classification:
                  isCustomProduct: false
                  taxProductCategoryId: f61da1e0-f1ec-49c5-bb60-185a272a5780
                  taxProductCategoryName: Category name
                  taxProductRegisterId: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292g
                  taxProductRegisterName: Register name
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/overrideMappings:
    get:
      tags:
      - Override mappings
      summary: Get a list of all override mappings
      description: 'Get a list of all override mappings <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllOverrideMappings
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: search
        in: query
        description: Search term to filter out override mappings
        schema:
          type: string
      - name: page
        in: query
        description: Zero-based page index, cannot be negative, default 0
        schema:
          type: integer
          format: int32
        example: 20
      - name: pageSize
        in: query
        description: 'Page size. Minimum 1, maximum: 400, default 20'
        schema:
          type: integer
          format: int32
        example: 20
      - name: includeTotalElements
        in: query
        description: Return the totalElements number of entries in the response
        schema:
          type: boolean
        example: true
      - name: sortBy
        in: query
        description: Sort by criteria
        schema:
          type: string
          enum:
          - comment
          - comment.asc
          - comment.desc
          - order
          - order.asc
          - order.desc
        example: name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListOverrideMappingResponse'
              example:
                results:
                - id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                  comment: This is an override mapping comment
                  startDate: 2024-01-01
                  endDate:
                  order: 1
                  logicalOperator: AND
                  condition: ''
                  action: ''
                  instructionGroupsCount: 2
                  taxProduct:
                    id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292g
                    code: Code 1
                    displayCode: PREFIX_Code 1
                    name: Name 1
                    description: Product description
                    serviceType: GOODS
                    classification:
                    isCustomProduct: false
                    taxProductCategoryId: f61da1e0-f1ec-49c5-bb60-185a272a5780
                    taxProductCategoryName: Category name
                    taxProductRegisterId: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292g
                    taxProductRegisterName: Register name
                totalElements: 1
                currentPage: 0
                pageSize: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/spaces/{spaceId}/inputRules/{ruleId}/instructionGroups/{instructionGroupId}/entityInstructions:
    get:
      tags:
      - Custom input rule entity instructions
      summary: Get a list of all custom input rule entity instructions
      description: 'Get a list of all custom input rule entity instructions <br/>
        Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomInputRuleEntityInstructions
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListEntityInstructionResponse'
              example:
                entityInstructions:
                - id: 92faebb3-f82b-4deb-bc09-95574279f087
                  entityType: SELLER_IS
                  operator: ESTABLISHED_IN
                  taxIdClassification: TTID
                  location: TRANSACTION_LOCATION_LOCATION
                  territoryId: 7dff79d5-e461-441a-9bf3-f0027dc09861
                  isMandatory: false
                - id: a3b2c1d0-e4f5-6789-abcd-ef0123456789
                  entityType: BUYER_IS
                  operator: VAT_REGISTERED_WITH_ANY_REGULAR_TYPE_INCLUDING_ESTABLISHMENT_IN
                  taxIdClassification: MTID
                  location: BUYER_ESTABLISHMENT_LOCATION
                  territoryId: ea536609-4f52-43ae-a123-c5ad6e83305c
                  isMandatory: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom input rule entity instructions
      summary: Create a new custom input rule entity instruction
      description: 'Create a new custom input rule entity instruction <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomInputRuleEntityInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom input rule entity instruction to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EntityInstructionRequest'
            example:
              entityType: SELLER_IS
              operator: ESTABLISHED_IN
              taxIdClassification: TTID
              location: VALUE
              territoryId: a05ee726-0b30-46ba-b6b9-01c56b167ec0
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityInstruction'
              example:
                id: 92faebb3-f82b-4deb-bc09-95574279f087
                entityType: SELLER_IS
                operator: ESTABLISHED_IN
                taxIdClassification: TTID
                location: VALUE
                territoryId: 00000000-0000-0000-0000-000000000002
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/inputRules/{ruleId}/instructionGroups/{instructionGroupId}/entityInstructions/{entityInstructionId}:
    delete:
      tags:
      - Custom input rule entity instructions
      summary: Delete custom input rule entity instruction by uuid
      description: 'Delete custom input rule entity instruction by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomInputRuleEntityInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: entityInstructionId
        in: path
        description: The custom rule entity instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom input rule entity instruction was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom input rule entity instructions
      summary: Update an existing custom input rule entity instruction by uuid
      description: 'Update an existing custom input rule entity instruction by uuid
        <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomInputRuleEntityInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: entityInstructionId
        in: path
        description: The custom rule entity instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom input rule entity instruction data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EntityInstructionRequest'
            example:
              entityType: SELLER_IS
              operator: ESTABLISHED_IN
              taxIdClassification: TTID
              location: VALUE
              territoryId: a05ee726-0b30-46ba-b6b9-01c56b167ec0
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityInstruction'
              example:
                id: 92faebb3-f82b-4deb-bc09-95574279f087
                entityType: SELLER_IS
                operator: ESTABLISHED_IN
                taxIdClassification: TTID
                location: VALUE
                territoryId: 00000000-0000-0000-0000-000000000002
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/outputRules/{ruleId}/instructionGroups/{instructionGroupId}/entityInstructions:
    get:
      tags:
      - Custom output rule entity instructions
      summary: Get a list of all custom output rule entity instructions
      description: 'Get a list of all custom output rule entity instructions <br/>
        Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomOutputRuleEntityInstructions
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListEntityInstructionResponse'
              example:
                entityInstructions:
                - id: 92faebb3-f82b-4deb-bc09-95574279f087
                  entityType: SELLER_IS
                  operator: ESTABLISHED_IN
                  taxIdClassification: TTID
                  location: TRANSACTION_LOCATION_LOCATION
                  territoryId: 7dff79d5-e461-441a-9bf3-f0027dc09861
                  isMandatory: false
                - id: a3b2c1d0-e4f5-6789-abcd-ef0123456789
                  entityType: BUYER_IS
                  operator: VAT_REGISTERED_WITH_ANY_REGULAR_TYPE_INCLUDING_ESTABLISHMENT_IN
                  taxIdClassification: MTID
                  location: BUYER_ESTABLISHMENT_LOCATION
                  territoryId: ea536609-4f52-43ae-a123-c5ad6e83305c
                  isMandatory: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom output rule entity instructions
      summary: Create a new custom output rule entity instruction
      description: 'Create a new custom output rule entity instruction <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomOutputRuleEntityInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom output rule entity instruction to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EntityInstructionRequest'
            example:
              entityType: SELLER_IS
              operator: ESTABLISHED_IN
              taxIdClassification: TTID
              location: VALUE
              territoryId: a05ee726-0b30-46ba-b6b9-01c56b167ec0
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityInstruction'
              example:
                id: 92faebb3-f82b-4deb-bc09-95574279f087
                entityType: SELLER_IS
                operator: ESTABLISHED_IN
                taxIdClassification: TTID
                location: VALUE
                territoryId: 00000000-0000-0000-0000-000000000002
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/outputRules/{ruleId}/instructionGroups/{instructionGroupId}/entityInstructions/{entityInstructionId}:
    delete:
      tags:
      - Custom output rule entity instructions
      summary: Delete custom output rule entity instruction by uuid
      description: 'Delete custom output rule entity instruction by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomOutputRuleEntityInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: entityInstructionId
        in: path
        description: The custom rule entity instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom output rule entity instruction was
            successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom output rule entity instructions
      summary: Update an existing custom output rule entity instruction by uuid
      description: 'Update an existing custom output rule entity instruction by uuid
        <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomOutputRuleEntityInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: entityInstructionId
        in: path
        description: The custom rule entity instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom output rule entity instruction data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EntityInstructionRequest'
            example:
              entityType: SELLER_IS
              operator: ESTABLISHED_IN
              taxIdClassification: TTID
              location: VALUE
              territoryId: a05ee726-0b30-46ba-b6b9-01c56b167ec0
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityInstruction'
              example:
                id: 92faebb3-f82b-4deb-bc09-95574279f087
                entityType: SELLER_IS
                operator: ESTABLISHED_IN
                taxIdClassification: TTID
                location: VALUE
                territoryId: 00000000-0000-0000-0000-000000000002
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxTransactionMemos/{transactionMemoId}/instructionGroups/{instructionGroupId}/entityInstructions:
    get:
      tags:
      - Custom tax transaction memo entity instructions
      summary: Get a list of all custom tax transaction memo entity instructions
      description: 'Get a list of all custom tax transaction memo entity instructions
        <br/> Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomTaxTransactionMemoEntityInstructions
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The tax transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListEntityInstructionResponse'
              example:
                entityInstructions:
                - id: 92faebb3-f82b-4deb-bc09-95574279f087
                  entityType: SELLER_IS
                  operator: ESTABLISHED_IN
                  taxIdClassification: TTID
                  location: TRANSACTION_LOCATION_LOCATION
                  territoryId: 7dff79d5-e461-441a-9bf3-f0027dc09861
                  isMandatory: false
                - id: a3b2c1d0-e4f5-6789-abcd-ef0123456789
                  entityType: BUYER_IS
                  operator: VAT_REGISTERED_WITH_ANY_REGULAR_TYPE_INCLUDING_ESTABLISHMENT_IN
                  taxIdClassification: MTID
                  location: BUYER_ESTABLISHMENT_LOCATION
                  territoryId: ea536609-4f52-43ae-a123-c5ad6e83305c
                  isMandatory: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom tax transaction memo entity instructions
      summary: Create a new custom tax transaction memo entity instruction
      description: 'Create a new custom tax transaction memo entity instruction <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomTaxTransactionMemoEntityInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The tax transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax transaction memo entity instruction to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EntityInstructionRequest'
            example:
              entityType: SELLER_IS
              operator: ESTABLISHED_IN
              taxIdClassification: TTID
              location: VALUE
              territoryId: a05ee726-0b30-46ba-b6b9-01c56b167ec0
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityInstruction'
              example:
                id: 92faebb3-f82b-4deb-bc09-95574279f087
                entityType: SELLER_IS
                operator: ESTABLISHED_IN
                taxIdClassification: TTID
                location: VALUE
                territoryId: 00000000-0000-0000-0000-000000000002
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  ? /v1/spaces/{spaceId}/taxTransactionMemos/{transactionMemoId}/instructionGroups/{instructionGroupId}/entityInstructions/{entityInstructionId}
  : delete:
      tags:
      - Custom tax transaction memo entity instructions
      summary: Delete custom tax transaction memo entity instruction by uuid
      description: 'Delete custom tax transaction memo entity instruction by uuid
        <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomTaxTransactionMemoEntityInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The tax transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: entityInstructionId
        in: path
        description: The custom tax transaction memo entity instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom tax transaction memo entity instruction
            was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom tax transaction memo entity instructions
      summary: Update an existing custom tax transaction memo entity instruction by
        uuid
      description: 'Update an existing custom tax transaction memo entity instruction
        by uuid <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomTaxTransactionMemoEntityInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: The tax transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: entityInstructionId
        in: path
        description: The custom tax transaction memo entity instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax transaction memo entity instruction data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EntityInstructionRequest'
            example:
              entityType: SELLER_IS
              operator: ESTABLISHED_IN
              taxIdClassification: TTID
              location: VALUE
              territoryId: a05ee726-0b30-46ba-b6b9-01c56b167ec0
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityInstruction'
              example:
                id: 92faebb3-f82b-4deb-bc09-95574279f087
                entityType: SELLER_IS
                operator: ESTABLISHED_IN
                taxIdClassification: TTID
                location: VALUE
                territoryId: 00000000-0000-0000-0000-000000000002
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/diffTransactionMemos/{transactionMemoId}/instructionGroups/{instructionGroupId}/instructions:
    get:
      tags:
      - Custom diff transaction memo instructions
      summary: Get a list of all custom diff transaction memo instructions
      description: 'Get a list of all custom diff transaction memo instructions <br/>
        Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomDiffTransactionMemoInstructions
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: Diff transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionResponse'
              example:
                instructions:
                - id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                  leadingField:
                    id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                    name: header.seller.country.name
                    dropdownFieldName: seller.countryName
                    hoverText: Seller country name applied for the tax engine calculation
                    dataType: STRING
                    dataSource: CONDITION
                    order: 1
                  operator: EQUAL
                  value: BE
                  comparisonField:
                  isMandatory: false
                - id: a7f8e3c2-6d41-4b89-9e15-3c7a2f8d6b91
                  leadingField:
                    id: e2a9b7c4-8f3d-4e67-a123-9b8c7d6e5f42
                    name: header.buyer.vat.number
                    dropdownFieldName: buyer.vatNumber
                    hoverText: Buyer VAT number for tax validation
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 2
                  operator: NOT_EQUAL
                  value:
                  comparisonField:
                    id: f3b8c9d5-7e42-4a98-b234-8c9d7e6f5a43
                    name: header.seller.vat.number
                    dropdownFieldName: seller.vatNumber
                    hoverText: Seller VAT number for comparison
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 3
                  isMandatory: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom diff transaction memo instructions
      summary: Create a new custom diff transaction memo instruction
      description: 'Create a new custom diff transaction memo instruction <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomDiffTransactionMemoInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: Diff transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom diff transaction memo instruction to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  ? /v1/spaces/{spaceId}/diffTransactionMemos/{transactionMemoId}/instructionGroups/{instructionGroupId}/instructions/{instructionId}
  : delete:
      tags:
      - Custom diff transaction memo instructions
      summary: Delete custom diff transaction memo instruction by uuid
      description: 'Delete custom diff transaction memo instruction by uuid <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomDiffTransactionMemoInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: Diff transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The custom diff transaction memo instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom diff transaction memo instruction was
            successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom diff transaction memo instructions
      summary: Update an existing custom diff transaction memo instruction by uuid
      description: 'Update an existing custom diff transaction memo instruction by
        uuid <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomDiffTransactionMemoInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: Diff transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The custom diff transaction memo instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom diff transaction memo instruction data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/inputRules/{ruleId}/instructionGroups/{instructionGroupId}/instructions:
    get:
      tags:
      - Custom input rule instructions
      summary: Get a list of all custom input rule instructions
      description: 'Get a list of all custom input rule instructions <br/> Scope:
        space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomInputRuleInstructions
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionResponse'
              example:
                instructions:
                - id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                  leadingField:
                    id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                    name: header.seller.country.name
                    dropdownFieldName: seller.countryName
                    hoverText: Seller country name applied for the tax engine calculation
                    dataType: STRING
                    dataSource: CONDITION
                    order: 1
                  operator: EQUAL
                  value: BE
                  comparisonField:
                  isMandatory: false
                - id: a7f8e3c2-6d41-4b89-9e15-3c7a2f8d6b91
                  leadingField:
                    id: e2a9b7c4-8f3d-4e67-a123-9b8c7d6e5f42
                    name: header.buyer.vat.number
                    dropdownFieldName: buyer.vatNumber
                    hoverText: Buyer VAT number for tax validation
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 2
                  operator: NOT_EQUAL
                  value:
                  comparisonField:
                    id: f3b8c9d5-7e42-4a98-b234-8c9d7e6f5a43
                    name: header.seller.vat.number
                    dropdownFieldName: seller.vatNumber
                    hoverText: Seller VAT number for comparison
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 3
                  isMandatory: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom input rule instructions
      summary: Create a new custom input rule instruction
      description: 'Create a new custom input rule instruction <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomInputRuleInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom input rule instruction to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/inputRules/{ruleId}/instructionGroups/{instructionGroupId}/instructions/{instructionId}:
    delete:
      tags:
      - Custom input rule instructions
      summary: Delete custom input rule instruction by uuid
      description: 'Delete custom input rule instruction by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomInputRuleInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The custom rule instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom input rule instruction was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom input rule instructions
      summary: Update an existing custom input rule instruction by uuid
      description: 'Update an existing custom input rule instruction by uuid <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomInputRuleInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The custom rule instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom input rule instruction data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/invoiceWordings/{invoiceWordingId}/instructionGroups/{instructionGroupId}/instructions:
    get:
      tags:
      - Custom invoice wording instructions
      summary: Get a list of all custom invoice wordings instructions
      description: 'Get a list of all custom invoice wordings instructions <br/> Scope:
        space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomInvoiceWordingInstructions
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: invoiceWordingId
        in: path
        description: The invoice wording identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionResponse'
              example:
                instructions:
                - id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                  leadingField:
                    id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                    name: header.seller.country.name
                    dropdownFieldName: seller.countryName
                    hoverText: Seller country name applied for the tax engine calculation
                    dataType: STRING
                    dataSource: CONDITION
                    order: 1
                  operator: EQUAL
                  value: BE
                  comparisonField:
                  isMandatory: false
                - id: a7f8e3c2-6d41-4b89-9e15-3c7a2f8d6b91
                  leadingField:
                    id: e2a9b7c4-8f3d-4e67-a123-9b8c7d6e5f42
                    name: header.buyer.vat.number
                    dropdownFieldName: buyer.vatNumber
                    hoverText: Buyer VAT number for tax validation
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 2
                  operator: NOT_EQUAL
                  value:
                  comparisonField:
                    id: f3b8c9d5-7e42-4a98-b234-8c9d7e6f5a43
                    name: header.seller.vat.number
                    dropdownFieldName: seller.vatNumber
                    hoverText: Seller VAT number for comparison
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 3
                  isMandatory: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom invoice wording instructions
      summary: Create a new custom invoice wording instruction
      description: 'Create a new custom invoice wording instruction <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomInvoiceWordingInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: invoiceWordingId
        in: path
        description: The invoice wording identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom invoice wording instruction to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  ? /v1/spaces/{spaceId}/invoiceWordings/{invoiceWordingId}/instructionGroups/{instructionGroupId}/instructions/{instructionId}
  : delete:
      tags:
      - Custom invoice wording instructions
      summary: Delete custom invoice wording instruction by uuid
      description: 'Delete custom invoice wording instruction by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomInvoiceWordingInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: invoiceWordingId
        in: path
        description: The invoice wording identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The custom invoice wording instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom invoice wording instruction was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom invoice wording instructions
      summary: Update an existing custom invoice wording instruction by uuid
      description: 'Update an existing custom invoice wording instruction by uuid
        <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomInvoiceWordingInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: invoiceWordingId
        in: path
        description: The invoice wording identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The custom invoice wording instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom invoice wording invoice wording instruction data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/outputRules/{ruleId}/instructionGroups/{instructionGroupId}/instructions:
    get:
      tags:
      - Custom output rule instructions
      summary: Get a list of all custom output rule instructions
      description: 'Get a list of all custom output rule instructions <br/> Scope:
        space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomOutputRuleInstructions
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionResponse'
              example:
                instructions:
                - id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                  leadingField:
                    id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                    name: header.seller.country.name
                    dropdownFieldName: seller.countryName
                    hoverText: Seller country name applied for the tax engine calculation
                    dataType: STRING
                    dataSource: CONDITION
                    order: 1
                  operator: EQUAL
                  value: BE
                  comparisonField:
                  isMandatory: false
                - id: a7f8e3c2-6d41-4b89-9e15-3c7a2f8d6b91
                  leadingField:
                    id: e2a9b7c4-8f3d-4e67-a123-9b8c7d6e5f42
                    name: header.buyer.vat.number
                    dropdownFieldName: buyer.vatNumber
                    hoverText: Buyer VAT number for tax validation
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 2
                  operator: NOT_EQUAL
                  value:
                  comparisonField:
                    id: f3b8c9d5-7e42-4a98-b234-8c9d7e6f5a43
                    name: header.seller.vat.number
                    dropdownFieldName: seller.vatNumber
                    hoverText: Seller VAT number for comparison
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 3
                  isMandatory: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom output rule instructions
      summary: Create a new custom output rule instruction
      description: 'Create a new custom output rule instruction <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomOutputRuleInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom output rule instruction to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/outputRules/{ruleId}/instructionGroups/{instructionGroupId}/instructions/{instructionId}:
    delete:
      tags:
      - Custom output rule instructions
      summary: Delete custom output rule instruction by uuid
      description: 'Delete custom output rule instruction by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomOutputRuleInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The custom rule instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom output rule instruction was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom output rule instructions
      summary: Update an existing custom output rule instruction by uuid
      description: 'Update an existing custom output rule instruction by uuid <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomOutputRuleInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: ruleId
        in: path
        description: The rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The custom rule instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom output rule instruction data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxCodes/{taxCodeId}/instructionGroups/{instructionGroupId}/instructions:
    get:
      tags:
      - Custom tax code instructions
      summary: Get a list of all custom tax code instructions
      description: 'Get a list of all custom tax code instructions <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllCustomTaxCodeInstructions
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxCodeId
        in: path
        description: The tax code identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionResponse'
              example:
                instructions:
                - id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                  leadingField:
                    id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                    name: header.seller.country.name
                    dropdownFieldName: seller.countryName
                    hoverText: Seller country name applied for the tax engine calculation
                    dataType: STRING
                    dataSource: CONDITION
                    order: 1
                  operator: EQUAL
                  value: BE
                  comparisonField:
                  isMandatory: false
                - id: a7f8e3c2-6d41-4b89-9e15-3c7a2f8d6b91
                  leadingField:
                    id: e2a9b7c4-8f3d-4e67-a123-9b8c7d6e5f42
                    name: header.buyer.vat.number
                    dropdownFieldName: buyer.vatNumber
                    hoverText: Buyer VAT number for tax validation
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 2
                  operator: NOT_EQUAL
                  value:
                  comparisonField:
                    id: f3b8c9d5-7e42-4a98-b234-8c9d7e6f5a43
                    name: header.seller.vat.number
                    dropdownFieldName: seller.vatNumber
                    hoverText: Seller VAT number for comparison
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 3
                  isMandatory: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom tax code instructions
      summary: Create a new custom tax code instruction
      description: 'Create a new custom tax code instruction <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomTaxCodeInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxCodeId
        in: path
        description: The tax code identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax code instruction to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxCodes/{taxCodeId}/instructionGroups/{instructionGroupId}/instructions/{instructionId}:
    delete:
      tags:
      - Custom tax code instructions
      summary: Delete custom tax code instruction by uuid
      description: 'Delete custom tax code instruction by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomTaxCodeInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxCodeId
        in: path
        description: The tax code identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The custom tax code instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom tax code instruction was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom tax code instructions
      summary: Update an existing custom tax code instruction by uuid
      description: 'Update an existing custom tax code instruction by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomTaxCodeInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxCodeId
        in: path
        description: The tax code identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The custom tax code instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax code instruction data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxTransactionMemos/{transactionMemoId}/instructionGroups/{instructionGroupId}/instructions:
    get:
      tags:
      - Custom tax transaction memo instructions
      summary: Get a list of all custom tax transaction memo instructions
      description: 'Get a list of all custom tax transaction memo instructions <br/>
        Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomTaxTransactionMemoInstructions
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: Tax transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionResponse'
              example:
                instructions:
                - id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                  leadingField:
                    id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                    name: header.seller.country.name
                    dropdownFieldName: seller.countryName
                    hoverText: Seller country name applied for the tax engine calculation
                    dataType: STRING
                    dataSource: CONDITION
                    order: 1
                  operator: EQUAL
                  value: BE
                  comparisonField:
                  isMandatory: false
                - id: a7f8e3c2-6d41-4b89-9e15-3c7a2f8d6b91
                  leadingField:
                    id: e2a9b7c4-8f3d-4e67-a123-9b8c7d6e5f42
                    name: header.buyer.vat.number
                    dropdownFieldName: buyer.vatNumber
                    hoverText: Buyer VAT number for tax validation
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 2
                  operator: NOT_EQUAL
                  value:
                  comparisonField:
                    id: f3b8c9d5-7e42-4a98-b234-8c9d7e6f5a43
                    name: header.seller.vat.number
                    dropdownFieldName: seller.vatNumber
                    hoverText: Seller VAT number for comparison
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 3
                  isMandatory: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom tax transaction memo instructions
      summary: Create a new custom tax transaction memo instruction
      description: 'Create a new custom tax transaction memo instruction <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomTaxTransactionMemoInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: Tax transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax transaction memo instruction to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  ? /v1/spaces/{spaceId}/taxTransactionMemos/{transactionMemoId}/instructionGroups/{instructionGroupId}/instructions/{instructionId}
  : delete:
      tags:
      - Custom tax transaction memo instructions
      summary: Delete custom tax transaction memo instruction by uuid
      description: 'Delete custom tax transaction memo instruction by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomTaxTransactionMemoInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: Tax transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The custom tax transaction memo instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom tax transaction memo instruction was
            successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom tax transaction memo instructions
      summary: Update an existing custom tax transaction memo instruction by uuid
      description: 'Update an existing custom tax transaction memo instruction by
        uuid <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomTaxTransactionMemoInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: transactionMemoId
        in: path
        description: Tax transaction memo identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The custom tax transaction memo instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax transaction memo instruction data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  ? /v1/spaces/{spaceId}/products/{productId}/overrideMappings/{overrideMappingId}/instructionGroups/{instructionGroupId}/instructions
  : get:
      tags:
      - Override mapping instructions
      summary: Get a list of all override mapping instructions
      description: 'Get a list of all override mapping instructions <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllOverrideMappingInstructions
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: overrideMappingId
        in: path
        description: The override mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionResponse'
              example:
                instructions:
                - id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                  leadingField:
                    id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                    name: header.seller.country.name
                    dropdownFieldName: seller.countryName
                    hoverText: Seller country name applied for the tax engine calculation
                    dataType: STRING
                    dataSource: CONDITION
                    order: 1
                  operator: EQUAL
                  value: BE
                  comparisonField:
                  isMandatory: false
                - id: a7f8e3c2-6d41-4b89-9e15-3c7a2f8d6b91
                  leadingField:
                    id: e2a9b7c4-8f3d-4e67-a123-9b8c7d6e5f42
                    name: header.buyer.vat.number
                    dropdownFieldName: buyer.vatNumber
                    hoverText: Buyer VAT number for tax validation
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 2
                  operator: NOT_EQUAL
                  value:
                  comparisonField:
                    id: f3b8c9d5-7e42-4a98-b234-8c9d7e6f5a43
                    name: header.seller.vat.number
                    dropdownFieldName: seller.vatNumber
                    hoverText: Seller VAT number for comparison
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 3
                  isMandatory: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Override mapping instructions
      summary: Create a new override mapping instruction
      description: 'Create a new override mapping instruction <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createOverrideMappingInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: overrideMappingId
        in: path
        description: The override mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Override mapping instruction to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  ? /v1/spaces/{spaceId}/products/{productId}/overrideMappings/{overrideMappingId}/instructionGroups/{instructionGroupId}/instructions/{instructionId}
  : delete:
      tags:
      - Override mapping instructions
      summary: Delete override mapping instruction by uuid
      description: 'Delete override mapping instruction by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteOverrideMappingInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: overrideMappingId
        in: path
        description: The override mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The override mapping instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The override mapping instruction was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Override mapping instructions
      summary: Update an existing override mapping instruction by uuid
      description: 'Update an existing override mapping instruction by uuid <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateOverrideMappingInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: overrideMappingId
        in: path
        description: The override mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The override mapping instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Override mapping instruction data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/sourcingRules/{sourcingRuleId}/items:
    get:
      tags:
      - Custom sourcing rule items
      summary: Get a list of all custom sourcing rule items
      description: 'Get a list of all custom sourcing rule items <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllCustomSourcingRuleItems
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: sourcingRuleId
        in: path
        description: The custom sourcing rule identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListSourcingRuleItemResponse'
              example:
                items:
                - id: d0c022bf-d801-4331-9a17-35982026d8d5
                  remarks: Field value
                  order: 1
                  taxField:
                    id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                    name: shipFrom.location
                    dropdownFieldName: shipFrom.location
                    hoverText: ''
                    dataType: STRING
                    dataSource: CONDITION
                    order: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom sourcing rule items
      summary: Create a new custom sourcing rule item
      description: 'Create a new custom sourcing rule item <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomSourcingRuleItem
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: sourcingRuleId
        in: path
        description: The custom sourcing rule uuid identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom sourcing rule item to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomSourcingRuleItemRequest'
            example:
              taxFieldId: 74d3e63d-09be-432a-aa7a-7b686ece0047
              remarks: Field value
              order: 2
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomSourcingRuleItem'
              example:
                id: d0c022bf-d801-4331-9a17-35982026d8d5
                remarks: Field value
                order: 1
                taxField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: shipFrom.location
                  dropdownFieldName: shipFrom.location
                  hoverText: ''
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/sourcingRules/{sourcingRuleId}/items/{itemId}:
    delete:
      tags:
      - Custom sourcing rule items
      summary: Delete custom sourcing rule item by uuid
      description: 'Delete custom sourcing rule item by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomSourcingRuleItem
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: sourcingRuleId
        in: path
        description: The custom sourcing rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: itemId
        in: path
        description: The custom sourcing rule item identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom sourcing rule item was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom sourcing rule items
      summary: Update an existing custom sourcing rule item by uuid
      description: 'Update an existing custom sourcing rule item by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomSourcingRuleItem
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: sourcingRuleId
        in: path
        description: The custom sourcing rule identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: itemId
        in: path
        description: The custom sourcing rule item identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom sourcing rule data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomSourcingRuleItemRequest'
            example:
              taxFieldId: 74d3e63d-09be-432a-aa7a-7b686ece0047
              remarks: Field value
              order: 2
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomSourcingRuleItem'
              example:
                id: d0c022bf-d801-4331-9a17-35982026d8d5
                remarks: Field value
                order: 1
                taxField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: shipFrom.location
                  dropdownFieldName: shipFrom.location
                  hoverText: ''
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/sourcingRules:
    get:
      tags:
      - Custom sourcing rules
      summary: Get a list of all custom sourcing rules
      description: 'Get a list of all custom sourcing rules <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllCustomSourcingRules
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomSourcingRuleResponse'
              example:
                sourcingRules:
                - id: 7c963cba-5ad2-4d97-8fde-529784d9af96
                  order: 1
                  taxField:
                    id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                    name: header.seller.country.name
                    dropdownFieldName: seller.countryName
                    hoverText: Seller country name applied for the tax engine calculation
                    dataType: STRING
                    dataSource: CONDITION
                    order: 1
                  itemsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom sourcing rules
      summary: Create a new custom sourcing rule
      description: 'Create a new custom sourcing rule <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomSourcingRule
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom sourcing rule to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomSourcingRuleRequest'
            example:
              taxFieldId: 74d3e63d-09be-432a-aa7a-7b686ece0047
              order: 1
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomSourcingRule'
              example:
                id: 7c963cba-5ad2-4d97-8fde-529784d9af96
                order: 1
                taxField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                itemsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/sourcingRules/{sourcingRuleId}:
    get:
      tags:
      - Custom sourcing rules
      summary: Get custom sourcing rule by uuid
      description: 'Get custom sourcing rule by uuid <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getCustomSourcingRuleById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: sourcingRuleId
        in: path
        description: The custom sourcing rule identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomSourcingRule'
              example:
                id: 7c963cba-5ad2-4d97-8fde-529784d9af96
                order: 1
                taxField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                itemsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    delete:
      tags:
      - Custom sourcing rules
      summary: Delete custom sourcing rule by uuid
      description: 'Delete custom sourcing rule by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomSourcingRule
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: sourcingRuleId
        in: path
        description: The custom sourcing rule identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom sourcing rule was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom sourcing rules
      summary: Update an existing custom sourcing rule by uuid
      description: 'Update an existing custom sourcing rule by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: updateCustomSourcingRule
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: sourcingRuleId
        in: path
        description: The custom sourcing rule identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom sourcing rule data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomSourcingRuleRequest'
            example:
              taxFieldId: 74d3e63d-09be-432a-aa7a-7b686ece0047
              order: 1
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomSourcingRule'
              example:
                id: 7c963cba-5ad2-4d97-8fde-529784d9af96
                order: 1
                taxField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                itemsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxProductRegisters/{registerId}/taxProductCategories:
    get:
      tags:
      - Custom tax product categories
      summary: Get a list of all custom tax product categories for a specific configuration
      description: 'Get a list of all custom tax product categories for a specific
        configuration <br/> Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomTaxProductCategories
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: registerId
        in: path
        description: The tax product registry identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomTaxProductCategory'
              example:
                categories:
                - id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292e
                  code: Code 1
                  displayCode: PREFIX_Code 1
                  name: Custom VAT Categories
                  productsCount: 10
                - id: fd3a2cfc-871b-4c9a-8c1f-43d1bdb7f2d3
                  code: Code 2
                  displayCode: PREFIX_Display code 2
                  name: Custom Sales Tax Categories
                  productsCount: 10
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom tax product categories
      summary: Create a new custom tax product category for a specific configuration
      description: 'Create a new custom tax product category for a specific configuration
        <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomTaxProductCategory
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: registerId
        in: path
        description: The tax product registry identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax product category to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomTaxProductCategoryRequest'
            example:
              code: '01'
              name: Category name
        required: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxProductCategory'
              example:
                id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292e
                code: Category code
                displayCode: PREFIX_Code 1
                name: Category name
                productsCount: 10
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxProductRegisters/{registerId}/taxProductCategories/{taxProductCategoryId}:
    delete:
      tags:
      - Custom tax product categories
      summary: Delete a custom tax product category by ID for a specific configuration
      description: 'Delete a custom tax product category by ID for a specific configuration
        <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomTaxProductCategory
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: registerId
        in: path
        description: The tax product registry identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProductCategoryId
        in: path
        description: The tax product category identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom tax product category was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom tax product categories
      summary: Update an existing custom tax product category by ID for a specific
        configuration
      description: 'Update an existing custom tax product category by ID for a specific
        configuration <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomTaxProductCategory
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: registerId
        in: path
        description: The tax product registry identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProductCategoryId
        in: path
        description: The tax product category identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax product category data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomTaxProductCategoryRequest'
            example:
              code: '01'
              name: Category name
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxProductCategory'
              example:
                id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292e
                code: Category code
                displayCode: PREFIX_Code 1
                name: Category name
                productsCount: 10
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxProductRegisters:
    get:
      tags:
      - Custom tax product registers
      summary: Get a list of all custom tax product registers
      description: 'Get a list of all custom tax product registers <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllCustomTaxProductRegisters
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomTaxProductRegisterResponse'
              example:
                registers:
                - id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292e
                  name: Custom Register 1
                  prefix: ITX
                  taxTypes:
                  - ITX
                  isCodeLookupEnabled: false
                  productCodeDelimiter: UNDERSCORE
                  categoryCodeLength: 5
                  productCodeLength: 10
                  subProductCodeLength: 10
                  taxProductCategoriesCount: 2
                - id: fd3a2cfc-871b-4c9a-8c1f-43d1bdb7f2d3
                  name: Custom Register 2
                  prefix: Prefix 2
                  taxTypes:
                  - PPT
                  - ITX
                  isCodeLookupEnabled: false
                  productCodeDelimiter: UNDERSCORE
                  categoryCodeLength: 6
                  productCodeLength: 10
                  subProductCodeLength: 10
                  taxProductCategoriesCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom tax product registers
      summary: Create a new custom tax product register
      description: 'Create a new custom tax product register <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomTaxProductRegister
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax product register to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomTaxProductRegisterRequest'
            example:
              name: Register name
              prefix: ITX
              taxTypes:
              - ITX
              isCodeLookupEnabled: true
              productCodeDelimiter: UNDERSCORE
              categoryCodeLength: 3
              productCodeLength: 3
              subProductCodeLength: 2
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxProductRegister'
              example:
                id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292e
                name: Register name
                prefix: ITX
                taxTypes:
                - ITX
                isCodeLookupEnabled: false
                productCodeDelimiter: UNDERSCORE
                categoryCodeLength: 4
                productCodeLength: 4
                subProductCodeLength: 4
                taxProductCategoriesCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxProductRegisters/{registerId}:
    get:
      tags:
      - Custom tax product registers
      summary: Get a custom tax product register by its id
      description: 'Get a custom tax product register by its id <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getCustomTaxProductRegisterById
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: registerId
        in: path
        description: The custom tax product register identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxProductRegister'
              example:
                id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292e
                name: Register name
                prefix: ITX
                taxTypes:
                - ITX
                isCodeLookupEnabled: false
                productCodeDelimiter: UNDERSCORE
                categoryCodeLength: 4
                productCodeLength: 4
                subProductCodeLength: 4
                taxProductCategoriesCount: 2
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    delete:
      tags:
      - Custom tax product registers
      summary: Delete a custom tax product register by ID
      description: 'Delete a custom tax product register by ID <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomTaxProductRegister
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: registerId
        in: path
        description: The custom tax product register identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom tax product register was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom tax product registers
      summary: Update an existing custom tax product register by ID
      description: 'Update an existing custom tax product register by ID <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomTaxProductRegister
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: registerId
        in: path
        description: The custom tax product register identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax product register data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomTaxProductRegisterPatchRequest'
            example:
              name: Register name
              prefix: ITX
              taxTypes:
              - ITX
              productCodeDelimiter: UNDERSCORE
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxProductRegister'
              example:
                id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292e
                name: Register name
                prefix: ITX
                taxTypes:
                - ITX
                isCodeLookupEnabled: false
                productCodeDelimiter: UNDERSCORE
                categoryCodeLength: 4
                productCodeLength: 4
                subProductCodeLength: 4
                taxProductCategoriesCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxProductRegisters/{registerId}/products:
    get:
      tags:
      - Custom tax product registers
      summary: Get all products belonging to a custom tax product register
      description: 'Get all products belonging to a custom tax product register <br/>
        Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllProductsByCustomRegisterId
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: registerId
        in: path
        description: The custom tax product register identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: categoryId
        in: query
        description: Optional category ID to filter products by
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomTaxProductResponse'
              example:
                products:
                - id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292e
                  code: Code 1
                  displayCode: PREFIX_Code 1
                  name: Name 1
                  description: Description 1
                  isInstallable: true
                  serviceType: SERVICE_GENERAL
                  classification: NEW_CAR
                  subProductsCount: 1
                  hasTaxDeductionLimitationInAnyTerritory: false
                  hasTaxProductTaxRateMappingInAnyTerritory: false
                  linkedTaxProduct:
                - id: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292f
                  code: Code 2
                  displayCode: PREFIX_Code 2
                  name: Name 2
                  description: Description 2
                  isInstallable: false
                  serviceType: GOODS
                  classification: EXCISE_GOODS
                  subProductsCount: 2
                  hasTaxDeductionLimitationInAnyTerritory: false
                  hasTaxProductTaxRateMappingInAnyTerritory: false
                  linkedTaxProduct:
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  ? /v1/spaces/{spaceId}/taxProductRegisters/{registerId}/taxProductCategories/{taxProductCategoryId}/products/{productId}/subProducts
  : get:
      tags:
      - Custom tax products
      summary: Get a list of all custom sub-products for a specific configuration,
        tax product category, and product
      description: 'Get a list of all custom sub-products for a specific configuration,
        tax product category, and product <br/> Scope: space_read<br/> This Endpoint
        is part of: tax_configuration'
      operationId: getAllCustomSubProducts
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: registerId
        in: path
        description: The tax product registry identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProductCategoryId
        in: path
        description: The tax product category identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: search
        in: query
        description: Search term to filter out tax products
        schema:
          type: string
      - name: sortBy
        in: query
        description: Sort by criteria
        schema:
          type: string
          enum:
          - code
          - code.asc
          - code.desc
          - name
          - name.asc
          - name.desc
          - description
          - description.asc
          - description.desc
        example: name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomTaxProductResponse'
              example:
                products:
                - id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292e
                  code: Code 1
                  displayCode: PREFIX_Code 1
                  name: Name 1
                  description: Description 1
                  isInstallable: true
                  serviceType: SERVICE_GENERAL
                  classification: NEW_CAR
                  subProductsCount: 1
                  hasTaxDeductionLimitationInAnyTerritory: false
                  hasTaxProductTaxRateMappingInAnyTerritory: false
                  linkedTaxProduct:
                - id: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292f
                  code: Code 2
                  displayCode: PREFIX_Code 2
                  name: Name 2
                  description: Description 2
                  isInstallable: false
                  serviceType: GOODS
                  classification: EXCISE_GOODS
                  subProductsCount: 2
                  hasTaxDeductionLimitationInAnyTerritory: false
                  hasTaxProductTaxRateMappingInAnyTerritory: false
                  linkedTaxProduct:
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom tax products
      summary: Create a new custom sub-product for a specific configuration, tax product
        category, and product
      description: 'Create a new custom sub-product for a specific configuration,
        tax product category, and product <br/> Scope: space_write<br/> This Endpoint
        is part of: tax_configuration'
      operationId: createCustomSubProduct
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: registerId
        in: path
        description: The tax product registry identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProductCategoryId
        in: path
        description: The tax product category identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom sub-product to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomTaxProductRequest'
            example:
              code: Code 1
              name: Name 1
              description: Description 1
              isInstallable: true
              serviceType: SERVICE_GENERAL
              classification: NEW_CAR
              linkedTaxProductId:
              isCustomProduct: false
        required: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxProduct'
              example:
                id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292e
                code: Code 1
                displayCode: PREFIX_Code 1
                name: Name 1
                description: Description 1
                isInstallable: true
                serviceType: SERVICE_GENERAL
                classification: NEW_CAR
                subProductsCount: 1
                hasTaxDeductionLimitationInAnyTerritory: false
                hasTaxProductTaxRateMappingInAnyTerritory: false
                linkedTaxProduct:
                  id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292f
                  code: Code 1
                  displayCode: PREFIX_Code 1
                  name: Name 1
                  description: Product description
                  isInstallable: true
                  serviceType: GOODS
                  classification:
                  isCustomProduct: false
                  taxProductCategoryId: f61da1e0-f1ec-49c5-bb60-185a272a5780
                  taxProductCategoryName: Category name
                  taxProductRegisterId: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292a
                  taxProductRegisterName: Register name
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxProductRegisters/{registerId}/taxProductCategories/{taxProductCategoryId}/products:
    get:
      tags:
      - Custom tax products
      summary: Get a list of all custom tax products for a specific configuration
        and tax product category
      description: 'Get a list of all custom tax products for a specific configuration
        and tax product category <br/> Scope: space_read<br/> This Endpoint is part
        of: tax_configuration'
      operationId: getAllCustomTaxProducts
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: registerId
        in: path
        description: The tax product registry identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProductCategoryId
        in: path
        description: The tax product category identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: search
        in: query
        description: Search term to filter out tax products
        schema:
          type: string
      - name: sortBy
        in: query
        description: Sort by criteria
        schema:
          type: string
          enum:
          - code
          - code.asc
          - code.desc
          - name
          - name.asc
          - name.desc
          - description
          - description.asc
          - description.desc
        example: name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomTaxProductResponse'
              example:
                products:
                - id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292e
                  code: Code 1
                  displayCode: PREFIX_Code 1
                  name: Name 1
                  description: Description 1
                  isInstallable: true
                  serviceType: SERVICE_GENERAL
                  classification: NEW_CAR
                  subProductsCount: 1
                  hasTaxDeductionLimitationInAnyTerritory: false
                  hasTaxProductTaxRateMappingInAnyTerritory: false
                  linkedTaxProduct:
                - id: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292f
                  code: Code 2
                  displayCode: PREFIX_Code 2
                  name: Name 2
                  description: Description 2
                  isInstallable: false
                  serviceType: GOODS
                  classification: EXCISE_GOODS
                  subProductsCount: 2
                  hasTaxDeductionLimitationInAnyTerritory: false
                  hasTaxProductTaxRateMappingInAnyTerritory: false
                  linkedTaxProduct:
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom tax products
      summary: Create a new custom tax product for a specific configuration and tax
        product category
      description: 'Create a new custom tax product for a specific configuration and
        tax product category <br/> Scope: space_write<br/> This Endpoint is part of:
        tax_configuration'
      operationId: createCustomTaxProduct
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: registerId
        in: path
        description: The tax product registry identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProductCategoryId
        in: path
        description: The tax product category identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax product to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomTaxProductRequest'
            example:
              code: Code 1
              name: Name 1
              description: Description 1
              isInstallable: true
              serviceType: SERVICE_GENERAL
              classification: NEW_CAR
              linkedTaxProductId:
              isCustomProduct: false
        required: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxProduct'
              example:
                id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292e
                code: Code 1
                displayCode: PREFIX_Code 1
                name: Name 1
                description: Description 1
                isInstallable: true
                serviceType: SERVICE_GENERAL
                classification: NEW_CAR
                subProductsCount: 1
                hasTaxDeductionLimitationInAnyTerritory: false
                hasTaxProductTaxRateMappingInAnyTerritory: false
                linkedTaxProduct:
                  id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292f
                  code: Code 1
                  displayCode: PREFIX_Code 1
                  name: Name 1
                  description: Product description
                  isInstallable: true
                  serviceType: GOODS
                  classification:
                  isCustomProduct: false
                  taxProductCategoryId: f61da1e0-f1ec-49c5-bb60-185a272a5780
                  taxProductCategoryName: Category name
                  taxProductRegisterId: 21c3c1fd-450d-4a1e-8b6d-5fd6a9f8292a
                  taxProductRegisterName: Register name
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxProductRegisters/{registerId}/taxProductCategories/{taxProductCategoryId}/products/{productId}:
    delete:
      tags:
      - Custom tax products
      summary: Delete a custom tax product by ID for a specific configuration and
        tax product category
      description: 'Delete a custom tax product by ID for a specific configuration
        and tax product category <br/> Scope: space_write<br/> This Endpoint is part
        of: tax_configuration'
      operationId: deleteCustomTaxProduct
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: registerId
        in: path
        description: The tax product registry identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProductCategoryId
        in: path
        description: The tax product category identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom tax product was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom tax products
      summary: Update an existing custom tax product for a specific configuration
        and tax product category
      description: 'Update an existing custom tax product for a specific configuration
        and tax product category <br/> Scope: space_write<br/> This Endpoint is part
        of: tax_configuration'
      operationId: updateCustomTaxProduct
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: registerId
        in: path
        description: The tax product registry identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProductCategoryId
        in: path
        description: The tax product category identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: productId
        in: path
        description: The product identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax product data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomTaxProductRequest'
            example:
              code: Code 1
              name: Name 1
              description: Description 1
              isInstallable: true
              serviceType: SERVICE_GENERAL
              classification: NEW_CAR
              linkedTaxProductId:
              isCustomProduct: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxProduct'
              example:
                id: eec3c1fd-450d-4a1e-8b6d-5fd6a9f8292e
                code: Code 1
                displayCode: PREFIX_Code 1
                name: Name 1
                description: Description 1
                isInstallable: true
                serviceType: SERVICE_GENERAL
                classification: NEW_CAR
                subProductsCount: 1
                hasTaxDeductionLimitationInAnyTerritory: false
                hasTaxProductTaxRateMappingInAnyTerritory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/territories/{territoryId}/taxProfiles/{taxProfileId}:clone:
    post:
      tags:
      - Custom tax profiles
      summary: Clone a custom tax profile by ID
      description: 'Clone a custom tax profile by ID <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: cloneCustomTaxProfileById
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileId
        in: path
        description: The custom tax profile identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxProfile'
              example:
                id: e14b6c5b-377b-4c0a-9b6a-7a5d8e3c2f6b
                name: Custom Profile Example
                description: Description for custom profile example
                order: 1
                taxProfileCategoryId: 00000000-0000-0000-0000-000000000002
                taxProfileTemplateId: 7f5a1e8d-d6a9-48fc-8a9f-934b7c1f0a7a
                startDate: 2024-01-01
                endDate: 2024-12-31
                active: true
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/spaces/{spaceId}/territories/{sourceTerritoryId}/copyAllTaxProfilesTo/{destinationTerritoryId}:
    post:
      tags:
      - Custom tax profiles
      summary: Copy all tax profiles from one territory to another
      description: 'Copy all tax profiles from one territory to another <br/> Scope:
        space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: copyAllTaxProfiles
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: sourceTerritoryId
        in: path
        description: The source territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: destinationTerritoryId
        in: path
        description: The destination territory identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomTaxProfileResponse'
              example:
                taxProfiles:
                - id: 11111111-1111-1111-1111-111111111111
                  name: Custom Profile 1
                  description: Description for custom profile 1
                  order: 1
                  taxProfileCategoryId: 00000000-0000-0000-0000-000000000002
                  taxProfileTemplateId: 22222222-2222-2222-2222-222222222222
                  startDate: 2024-01-01
                  endDate: 2024-12-31
                  active: true
                  logicalOperator: AND
                  condition: ''
                  action: ''
                  instructionGroupsCount: 1
                - id: 99999999-9999-9999-9999-999999999999
                  name: Custom Profile 2
                  description: Description for custom profile 2
                  order: 2
                  taxProfileCategoryId: 00000000-0000-0000-0000-000000000001
                  taxProfileTemplateId: 00000000-0000-0000-0000-000000000000
                  startDate: 2024-02-01
                  endDate: 2024-11-30
                  active: true
                  logicalOperator: AND
                  condition: ''
                  action: ''
                  instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  ? /v1/spaces/{spaceId}/territories/{sourceTerritoryId}/taxProfileCategories/{taxProfileCategoryId}/copyTaxProfileTo/{destinationTerritoryId}
  : post:
      tags:
      - Custom tax profiles
      summary: Copy all tax profiles from one territory to another for the specified
        tax profile category
      description: 'Copy all tax profiles from one territory to another for the specified
        tax profile category <br/> Scope: space_read<br/> This Endpoint is part of:
        tax_configuration'
      operationId: copyAllTaxProfilesForTaxProfileCategory
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: sourceTerritoryId
        in: path
        description: The source territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileCategoryId
        in: path
        description: The tax profile categirt identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: destinationTerritoryId
        in: path
        description: The destination territory identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomTaxProfileResponse'
              example:
                taxProfiles:
                - id: 11111111-1111-1111-1111-111111111111
                  name: Custom Profile 1
                  description: Description for custom profile 1
                  order: 1
                  taxProfileCategoryId: 00000000-0000-0000-0000-000000000002
                  taxProfileTemplateId: 22222222-2222-2222-2222-222222222222
                  startDate: 2024-01-01
                  endDate: 2024-12-31
                  active: true
                  logicalOperator: AND
                  condition: ''
                  action: ''
                  instructionGroupsCount: 1
                - id: 99999999-9999-9999-9999-999999999999
                  name: Custom Profile 2
                  description: Description for custom profile 2
                  order: 2
                  taxProfileCategoryId: 00000000-0000-0000-0000-000000000001
                  taxProfileTemplateId: 00000000-0000-0000-0000-000000000000
                  startDate: 2024-02-01
                  endDate: 2024-11-30
                  active: true
                  logicalOperator: AND
                  condition: ''
                  action: ''
                  instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  ? /v1/spaces/{spaceId}/territories/{sourceTerritoryId}/taxProfileChapters/{taxProfileChapterId}/copyTaxProfileTo/{destinationTerritoryId}
  : post:
      tags:
      - Custom tax profiles
      summary: Copy all tax profiles from one territory to another for the specified
        tax profile chapter
      description: 'Copy all tax profiles from one territory to another for the specified
        tax profile chapter <br/> Scope: space_read<br/> This Endpoint is part of:
        tax_configuration'
      operationId: copyAllTaxProfilesForTaxProfileChapter
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: sourceTerritoryId
        in: path
        description: The source territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileChapterId
        in: path
        description: The tax profile chapter identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: destinationTerritoryId
        in: path
        description: The destination territory identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomTaxProfileResponse'
              example:
                taxProfiles:
                - id: 11111111-1111-1111-1111-111111111111
                  name: Custom Profile 1
                  description: Description for custom profile 1
                  order: 1
                  taxProfileCategoryId: 00000000-0000-0000-0000-000000000002
                  taxProfileTemplateId: 22222222-2222-2222-2222-222222222222
                  startDate: 2024-01-01
                  endDate: 2024-12-31
                  active: true
                  logicalOperator: AND
                  condition: ''
                  action: ''
                  instructionGroupsCount: 1
                - id: 99999999-9999-9999-9999-999999999999
                  name: Custom Profile 2
                  description: Description for custom profile 2
                  order: 2
                  taxProfileCategoryId: 00000000-0000-0000-0000-000000000001
                  taxProfileTemplateId: 00000000-0000-0000-0000-000000000000
                  startDate: 2024-02-01
                  endDate: 2024-11-30
                  active: true
                  logicalOperator: AND
                  condition: ''
                  action: ''
                  instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/spaces/{spaceId}/territories/{sourceTerritoryId}/taxProfiles/{taxProfileId}/copyTaxProfileTo/{destinationTerritoryId}:
    post:
      tags:
      - Custom tax profiles
      summary: Copy single tax profiles from one territory to another
      description: 'Copy single tax profiles from one territory to another <br/> Scope:
        space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: copySingleTaxProfile
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: sourceTerritoryId
        in: path
        description: The source territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileId
        in: path
        description: The custom tax profile identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: destinationTerritoryId
        in: path
        description: The destination territory identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxProfile'
              example:
                id: e14b6c5b-377b-4c0a-9b6a-7a5d8e3c2f6b
                name: Custom Profile Example
                description: Description for custom profile example
                order: 1
                taxProfileCategoryId: 00000000-0000-0000-0000-000000000002
                taxProfileTemplateId: 7f5a1e8d-d6a9-48fc-8a9f-934b7c1f0a7a
                startDate: 2024-01-01
                endDate: 2024-12-31
                active: true
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/spaces/{spaceId}/territories/{territoryId}/taxProfiles:
    get:
      tags:
      - Custom tax profiles
      summary: Get a list of all custom tax profiles
      description: 'Get a list of all custom tax profiles <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllCustomTaxProfiles
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomTaxProfileResponse'
              example:
                taxProfiles:
                - id: 11111111-1111-1111-1111-111111111111
                  name: Custom Profile 1
                  description: Description for custom profile 1
                  order: 1
                  taxProfileCategoryId: 00000000-0000-0000-0000-000000000002
                  taxProfileTemplateId: 22222222-2222-2222-2222-222222222222
                  startDate: 2024-01-01
                  endDate: 2024-12-31
                  active: true
                  logicalOperator: AND
                  condition: ''
                  action: ''
                  instructionGroupsCount: 1
                - id: 99999999-9999-9999-9999-999999999999
                  name: Custom Profile 2
                  description: Description for custom profile 2
                  order: 2
                  taxProfileCategoryId: 00000000-0000-0000-0000-000000000001
                  taxProfileTemplateId: 00000000-0000-0000-0000-000000000000
                  startDate: 2024-02-01
                  endDate: 2024-11-30
                  active: true
                  logicalOperator: AND
                  condition: ''
                  action: ''
                  instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom tax profiles
      summary: Create a new custom tax profile
      description: 'Create a new custom tax profile <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomTaxProfile
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom tax profile to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomTaxProfileRequest'
            example:
              name: Custom Tax Profile 1
              description: Description for Custom Tax Profile 1
              order: 1
              legalReference: Some legal reference
              startDate: 2024-01-01
              endDate: 2024-12-31
              taxProfileTemplateId: 00000000-0000-0000-0000-000000000001
              active: true
              logicalOperator: AND
        required: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxProfile'
              example:
                id: e14b6c5b-377b-4c0a-9b6a-7a5d8e3c2f6b
                name: Custom Profile Example
                description: Description for custom profile example
                order: 1
                taxProfileCategoryId: 00000000-0000-0000-0000-000000000002
                taxProfileTemplateId: 7f5a1e8d-d6a9-48fc-8a9f-934b7c1f0a7a
                startDate: 2024-01-01
                endDate: 2024-12-31
                active: true
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/territories/{territoryId}/taxProfiles/{taxProfileId}:
    get:
      tags:
      - Custom tax profiles
      summary: Get a custom tax profile by ID
      description: 'Get a custom tax profile by ID <br/> Scope: space_read<br/> This
        Endpoint is part of: tax_configuration'
      operationId: getCustomTaxProfileById
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileId
        in: path
        description: The custom tax profile identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxProfile'
              example:
                id: e14b6c5b-377b-4c0a-9b6a-7a5d8e3c2f6b
                name: Custom Profile Example
                description: Description for custom profile example
                order: 1
                taxProfileCategoryId: 00000000-0000-0000-0000-000000000002
                taxProfileTemplateId: 7f5a1e8d-d6a9-48fc-8a9f-934b7c1f0a7a
                startDate: 2024-01-01
                endDate: 2024-12-31
                active: true
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    delete:
      tags:
      - Custom tax profiles
      summary: Delete custom tax profile by uuid
      description: 'Delete custom tax profile by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomTaxProfile
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileId
        in: path
        description: The custom tax profile identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom tax profile was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom tax profiles
      summary: Update an existing custom tax profile by uuid
      description: 'Update an existing custom tax profile by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: updateCustomTaxProfile
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileId
        in: path
        description: The custom tax profile identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Update custom tax profile data
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomTaxProfileRequest'
            example:
              name: Custom Tax Profile 1
              description: Description for Custom Tax Profile 1
              order: 1
              legalReference: Some legal reference
              startDate: 2024-01-01
              endDate: 2024-12-31
              taxProfileTemplateId: 00000000-0000-0000-0000-000000000001
              active: true
              logicalOperator: AND
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomTaxProfile'
              example:
                id: e14b6c5b-377b-4c0a-9b6a-7a5d8e3c2f6b
                name: Custom Profile Example
                description: Description for custom profile example
                order: 1
                taxProfileCategoryId: 00000000-0000-0000-0000-000000000002
                taxProfileTemplateId: 7f5a1e8d-d6a9-48fc-8a9f-934b7c1f0a7a
                startDate: 2024-01-01
                endDate: 2024-12-31
                active: true
                logicalOperator: AND
                condition: ''
                action: ''
                instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/territories/{territoryId}/taxProfileChapters/{taxProfileChapterId}/taxProfiles:
    delete:
      tags:
      - Custom tax profiles
      summary: Delete custom tax profiles for the specified tax profile chapter
      description: 'Delete custom tax profiles for the specified tax profile chapter
        <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomTaxProfilesForTaxProfileChapter
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileChapterId
        in: path
        description: The tax profile chapter identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom tax profiles were successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/territories/{territoryId}/taxProfileCategories/{taxProfileCategoryId}/taxProfiles:
    get:
      tags:
      - Tax profile by territory categories
      summary: Get all custom tax profiles for a specific territory and category
      description: 'Get all custom tax profiles for a specific territory and category
        <br/> Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getCustomTaxProfilesByTerritoryAndCategory
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileCategoryId
        in: path
        description: The tax profile category identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomTaxProfileResponse'
              example:
                taxProfiles:
                - id: 11111111-1111-1111-1111-111111111111
                  name: Custom Profile 1
                  description: Description for custom profile 1
                  order: 1
                  taxProfileCategoryId: 00000000-0000-0000-0000-000000000002
                  taxProfileTemplateId: 22222222-2222-2222-2222-222222222222
                  startDate: 2024-01-01
                  endDate: 2024-12-31
                  active: true
                  logicalOperator: AND
                  condition: ''
                  action: ''
                  instructionGroupsCount: 1
                - id: 99999999-9999-9999-9999-999999999999
                  name: Custom Profile 2
                  description: Description for custom profile 2
                  order: 2
                  taxProfileCategoryId: 00000000-0000-0000-0000-000000000001
                  taxProfileTemplateId: 00000000-0000-0000-0000-000000000000
                  startDate: 2024-02-01
                  endDate: 2024-11-30
                  active: true
                  logicalOperator: AND
                  condition: ''
                  action: ''
                  instructionGroupsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    delete:
      tags:
      - Custom tax profiles
      summary: Delete custom tax profiles for the specified tax profile category
      description: 'Delete custom tax profiles for the specified tax profile category
        <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomTaxProfilesForTaxProfileCategory
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileCategoryId
        in: path
        description: The tax profile category identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom tax profiles were successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/territories/{territoryId}/taxType/{taxType}/taxProfiles:
    delete:
      tags:
      - Custom tax profiles
      summary: Delete custom tax profiles for the specified tax type
      description: 'Delete custom tax profiles for the specified tax type <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomTaxProfilesForTaxType
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxType
        in: path
        description: Tax type
        required: true
        schema:
          type: string
          enum:
          - ITX
          - PPT
          - WHT
      responses:
        '204':
          description: No Content - The custom tax profiles were successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/taxProfiles:
    get:
      tags:
      - Custom tax profiles
      summary: Get a list of all custom tax profiles for all tax profile templates
      description: 'Get a list of all custom tax profiles for all tax profile templates
        <br/> Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomTaxProfilesWithTerritoryInfo
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: search
        in: query
        description: Search term to filter out rules
        schema:
          type: string
      - name: page
        in: query
        description: Zero-based page index, cannot be negative, default 0
        schema:
          type: integer
          format: int32
        example: 20
      - name: pageSize
        in: query
        description: 'Page size. Minimum 1, maximum: 400, default 20'
        schema:
          type: integer
          format: int32
        example: 20
      - name: includeTotalElements
        in: query
        description: Return the totalElements number of entries in the response
        schema:
          type: boolean
        example: true
      - name: sortBy
        in: query
        description: Sort by criteria
        schema:
          type: string
          enum:
          - name
          - name.asc
          - name.desc
          - order
          - order.asc
          - order.desc
        example: name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomTaxProfileResponse'
              example:
                results:
                - id: a1b2c3d4-e5f6-7a8b-9c0d-ef1234567890
                  name: Tax Profile 1
                  description: Description for Tax Profile 1
                  order: 1
                  logicalOperator: AND
                  legalReference: Some legal reference
                  active: true
                  startDate: 2024-01-01
                  endDate: 2024-12-31
                  taxProfileCategoryId: 00000000-0000-0000-0000-000000000002
                  taxProfileTemplateId: d2c3b4a5-f6e7-8b9a-0c1d-ef1234567890
                  condition: ''
                  action: ''
                  instructionGroupsCount: 1
                  territory:
                    id: 37bd6559-5dbb-4763-a4bf-e529b4dbeeb4
                    alpha2: BE
                    shortName: Belgium
                - id: b2c3d4a5-e6f7-8a9b-0c1d-ef1234567890
                  name: Tax Profile 2
                  description: Description for Tax Profile 2
                  order: 2
                  logicalOperator: AND
                  legalReference: Another legal reference
                  active: true
                  startDate: 2024-02-01
                  endDate: 2024-11-30
                  taxProfileCategoryId: 00000000-0000-0000-0000-000000000001
                  taxProfileTemplateId: c2d3e4a5-f6e7-8a9b-0c1d-ef1234567890
                  condition: ''
                  action: ''
                  instructionGroupsCount: 2
                  territory:
                    id: 37bd6559-5dbb-4763-a4bf-e529b4dbeeb4
                    alpha2: BE
                    shortName: Belgium
                totalElements: 2
                currentPage: 20
                pageSize: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/spaces/{spaceId}/taxProfiles/{taxProfileTemplateId}:
    get:
      tags:
      - Custom tax profiles
      summary: Get a list of all custom tax profiles for the specified tax profile
        template ID
      description: 'Get a list of all custom tax profiles for the specified tax profile
        template ID <br/> Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomTaxProfilesWithTerritoryInfoForTemplate
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileTemplateId
        in: path
        description: The tax profile template identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AllCustomTaxProfileWithTerritoryResult'
              example:
                taxProfiles:
                - id: a1b2c3d4-e5f6-7a8b-9c0d-ef1234567890
                  name: Tax Profile 1
                  description: Description for Tax Profile 1
                  order: 1
                  logicalOperator: AND
                  active: true
                  startDate: 2024-01-01
                  endDate: 2024-12-31
                  taxProfileCategoryId: 00000000-0000-0000-0000-000000000002
                  taxProfileTemplateId: d2c3b4a5-f6e7-8b9a-0c1d-ef1234567890
                  condition: ''
                  action: ''
                  instructionGroupsCount: 2
                  territory:
                    id: 37bd6559-5dbb-4763-a4bf-e529b4dbeeb4
                    alpha2: BE
                    shortName: Belgium
                - id: b2c3d4a5-e6f7-8a9b-0c1d-ef1234567890
                  name: Tax Profile 2
                  description: Description for Tax Profile 2
                  order: 2
                  logicalOperator: AND
                  active: true
                  startDate: 2024-02-01
                  endDate: 2024-11-30
                  taxProfileCategoryId: 00000000-0000-0000-0000-000000000001
                  taxProfileTemplateId: c2d3e4a5-f6e7-8a9b-0c1d-ef1234567890
                  condition: ''
                  action: ''
                  instructionGroupsCount: 1
                  territory:
                    id: 37bd6559-5dbb-4763-a4bf-e529b4dbeeb4
                    alpha2: BE
                    shortName: Belgium
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  ? /v1/spaces/{spaceId}/territories/{territoryId}/taxProfiles/{taxProfileId}/instructionGroups/{instructionGroupId}/entityInstructions
  : get:
      tags:
      - Custom tax profile entity instructions
      summary: Get a list of all entity instructions for a custom tax profile
      description: 'Get a list of all entity instructions for a custom tax profile
        <br/> Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomTaxProfileEntityInstructions
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileId
        in: path
        description: The custom tax profile identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListEntityInstructionResponse'
              example:
                entityInstructions:
                - id: 92faebb3-f82b-4deb-bc09-95574279f087
                  entityType: SELLER_IS
                  operator: ESTABLISHED_IN
                  taxIdClassification: TTID
                  location: TRANSACTION_LOCATION_LOCATION
                  territoryId: 7dff79d5-e461-441a-9bf3-f0027dc09861
                  isMandatory: false
                - id: a3b2c1d0-e4f5-6789-abcd-ef0123456789
                  entityType: BUYER_IS
                  operator: VAT_REGISTERED_WITH_ANY_REGULAR_TYPE_INCLUDING_ESTABLISHMENT_IN
                  taxIdClassification: MTID
                  location: BUYER_ESTABLISHMENT_LOCATION
                  territoryId: ea536609-4f52-43ae-a123-c5ad6e83305c
                  isMandatory: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom tax profile entity instructions
      summary: Create a new entity instruction for a custom tax profile
      description: 'Create a new entity instruction for a custom tax profile <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomTaxProfileEntityInstruction
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileId
        in: path
        description: The custom tax profile identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Entity instruction to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EntityInstructionRequest'
            example:
              entityType: SELLER_IS
              operator: ESTABLISHED_IN
              taxIdClassification: TTID
              location: VALUE
              territoryId: a05ee726-0b30-46ba-b6b9-01c56b167ec0
              isMandatory: false
        required: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityInstruction'
              example:
                id: 92faebb3-f82b-4deb-bc09-95574279f087
                entityType: SELLER_IS
                operator: ESTABLISHED_IN
                taxIdClassification: TTID
                location: VALUE
                territoryId: 00000000-0000-0000-0000-000000000002
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  ? /v1/spaces/{spaceId}/territories/{territoryId}/taxProfiles/{taxProfileId}/instructionGroups/{instructionGroupId}/entityInstructions/{entityInstructionId}
  : delete:
      tags:
      - Custom tax profile entity instructions
      summary: Delete an entity instruction by ID for a custom tax profile
      description: 'Delete an entity instruction by ID for a custom tax profile <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomTaxProfileEntityInstruction
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileId
        in: path
        description: The custom tax profile identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: entityInstructionId
        in: path
        description: The entity instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The entity instruction was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom tax profile entity instructions
      summary: Update an entity instruction by ID for a custom tax profile
      description: 'Update an entity instruction by ID for a custom tax profile <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomTaxProfileEntityInstruction
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileId
        in: path
        description: The custom tax profile identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: entityInstructionId
        in: path
        description: The entity instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Entity instruction data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EntityInstructionRequest'
            example:
              entityType: SELLER_IS
              operator: ESTABLISHED_IN
              taxIdClassification: TTID
              location: VALUE
              territoryId: a05ee726-0b30-46ba-b6b9-01c56b167ec0
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityInstruction'
              example:
                id: 92faebb3-f82b-4deb-bc09-95574279f087
                entityType: SELLER_IS
                operator: ESTABLISHED_IN
                taxIdClassification: TTID
                location: VALUE
                territoryId: 00000000-0000-0000-0000-000000000002
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  ? /v1/spaces/{spaceId}/territories/{territoryId}/taxProfiles/{taxProfileId}/instructionGroups/{instructionGroupId}/instructions
  : get:
      tags:
      - Custom tax profile instructions
      summary: Get a list of all instructions for a custom tax profile
      description: 'Get a list of all instructions for a custom tax profile <br/>
        Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomTaxProfileInstructions
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileId
        in: path
        description: The custom tax profile identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionResponse'
              example:
                instructions:
                - id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                  leadingField:
                    id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                    name: header.seller.country.name
                    dropdownFieldName: seller.countryName
                    hoverText: Seller country name applied for the tax engine calculation
                    dataType: STRING
                    dataSource: CONDITION
                    order: 1
                  operator: EQUAL
                  value: BE
                  comparisonField:
                  isMandatory: false
                - id: a7f8e3c2-6d41-4b89-9e15-3c7a2f8d6b91
                  leadingField:
                    id: e2a9b7c4-8f3d-4e67-a123-9b8c7d6e5f42
                    name: header.buyer.vat.number
                    dropdownFieldName: buyer.vatNumber
                    hoverText: Buyer VAT number for tax validation
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 2
                  operator: NOT_EQUAL
                  value:
                  comparisonField:
                    id: f3b8c9d5-7e42-4a98-b234-8c9d7e6f5a43
                    name: header.seller.vat.number
                    dropdownFieldName: seller.vatNumber
                    hoverText: Seller VAT number for comparison
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 3
                  isMandatory: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom tax profile instructions
      summary: Create a new instruction for a custom tax profile
      description: 'Create a new instruction for a custom tax profile <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomTaxProfileInstruction
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileId
        in: path
        description: The custom tax profile identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Instruction to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  ? /v1/spaces/{spaceId}/territories/{territoryId}/taxProfiles/{taxProfileId}/instructionGroups/{instructionGroupId}/instructions/{instructionId}
  : delete:
      tags:
      - Custom tax profile instructions
      summary: Delete an instruction by ID for a custom tax profile
      description: 'Delete an instruction by ID for a custom tax profile <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomTaxProfileInstruction
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileId
        in: path
        description: The custom tax profile identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The instruction was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom tax profile instructions
      summary: Update an instruction by ID for a custom tax profile
      description: 'Update an instruction by ID for a custom tax profile <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomTaxProfileInstruction
      parameters:
      - name: spaceId
        in: path
        description: The configuration identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: territoryId
        in: path
        description: The territory identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: taxProfileId
        in: path
        description: The custom tax profile identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Instruction data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/vatexCodes:
    get:
      tags:
      - Custom VATEX codes
      summary: Get a list of all custom VATEX codes
      description: 'Get a list of all custom VATEX codes <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getAllCustomVatexCodes
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: search
        in: query
        description: Search term to filter out VATEX codes
        schema:
          type: string
      - name: page
        in: query
        description: Zero-based page index, cannot be negative, default 0
        schema:
          type: integer
          format: int32
        example: 20
      - name: pageSize
        in: query
        description: 'Page size. Minimum 1, maximum: 400, default 20'
        schema:
          type: integer
          format: int32
        example: 20
      - name: includeTotalElements
        in: query
        description: Return the totalElements number of entries in the response
        schema:
          type: boolean
        example: true
      - name: sortBy
        in: query
        description: Sort by criteria
        schema:
          type: string
          enum:
          - exemptionReasonCode
          - exemptionReasonCode.asc
          - exemptionReasonCode.desc
          - exemptionReason
          - exemptionReason.asc
          - exemptionReason.desc
        example: exemptionReasonCode.asc
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomVatexCodeResponse'
              example:
                results:
                - id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                  exemptionReasonCode: VATEX-EU-132-1C
                  exemptionReason: Provision of medical care (Art. 132.1.c)
                totalElements: 1
                currentPage: 0
                pageSize: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom VATEX codes
      summary: Create a new custom VATEX code
      description: 'Create a new custom VATEX code <br/> Scope: space_write<br/> This
        Endpoint is part of: tax_configuration'
      operationId: createCustomVatexCode
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom VATEX code to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomVatexCodeRequest'
            example:
              exemptionReasonCode: VATEX-EU-132-1C
              exemptionReason: Provision of medical care (Art. 132.1.c)
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomVatexCode'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                exemptionReasonCode: VATEX-EU-132-1C
                exemptionReason: Provision of medical care (Art. 132.1.c)
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/vatexCodes/{codeId}:
    get:
      tags:
      - Custom VATEX codes
      summary: Get custom VATEX code by uuid
      description: 'Get custom VATEX code by uuid <br/> Scope: space_read<br/> This
        Endpoint is part of: tax_configuration'
      operationId: getCustomVatexCodeById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: codeId
        in: path
        description: The custom VATEX code identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomVatexCode'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                exemptionReasonCode: VATEX-EU-132-1C
                exemptionReason: Provision of medical care (Art. 132.1.c)
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    delete:
      tags:
      - Custom VATEX codes
      summary: Delete custom VATEX code by uuid
      description: 'Delete custom VATEX code by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomVatexCode
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: codeId
        in: path
        description: The custom VATEX code identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom VATEX code was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom VATEX codes
      summary: Update an existing custom VATEX code by uuid
      description: 'Update an existing custom VATEX code by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: updateCustomVatexCode
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: codeId
        in: path
        description: The custom VATEX code identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom VATEX code data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomVatexCodeRequest'
            example:
              exemptionReasonCode: VATEX-EU-132-1C
              exemptionReason: Provision of medical care (Art. 132.1.c)
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomVatexCode'
              example:
                id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                exemptionReasonCode: VATEX-EU-132-1C
                exemptionReason: Provision of medical care (Art. 132.1.c)
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/vatexCodeMappings/{mappingId}/instructionGroups:
    get:
      tags:
      - Custom VATEX code mapping instruction groups
      summary: Get a list of all custom VATEX code mapping instruction groups
      description: 'Get a list of all custom VATEX code mapping instruction groups
        <br/> Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomVatexCodeMappingInstructionGroups
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom VATEX code mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionGroupResponse'
              example:
                instructionGroups:
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                  logicalOperator: AND
                  order: 1
                  place: CONDITION
                  instructionsCount: 1
                  entityInstructionsCount: 0
                - id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83498
                  logicalOperator: OR
                  order: 2
                  place: CONDITION
                  instructionsCount: 2
                  entityInstructionsCount: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom VATEX code mapping instruction groups
      summary: Create a new custom VATEX code mapping instruction group
      description: 'Create a new custom VATEX code mapping instruction group <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomVatexCodeMappingInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom VATEX code mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom VATEX code mapping instruction group to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/vatexCodeMappings/{mappingId}/instructionGroups/{instructionGroupId}:
    delete:
      tags:
      - Custom VATEX code mapping instruction groups
      summary: Delete custom VATEX code mapping instruction group by uuid
      description: 'Delete custom VATEX code mapping instruction group by uuid <br/>
        Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomVatexCodeMappingInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom VATEX code mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The custom VATEX code mapping instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom VATEX code mapping instruction group
            was successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom VATEX code mapping instruction groups
      summary: Update an existing custom VATEX code mapping instruction group by uuid
      description: 'Update an existing custom VATEX code mapping instruction group
        by uuid <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomVatexCodeMappingInstructionGroup
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom VATEX code mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The custom VATEX code mapping instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom VATEX code mapping instruction group data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionGroupRequest'
            example:
              logicalOperator: AND
              place: CONDITION
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstructionGroup'
              example:
                id: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
                logicalOperator: AND
                order: 1
                place: CONDITION
                instructionsCount: 1
                entityInstructionsCount: 2
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/vatexCodeMappings/{mappingId}/instructionGroups/{instructionGroupId}/instructions:
    get:
      tags:
      - Custom VATEX code mapping instructions
      summary: Get a list of all custom VATEX code mapping instructions
      description: 'Get a list of all custom VATEX code mapping instructions <br/>
        Scope: space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomVatexCodeMappingInstructions
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom VATEX code mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInstructionResponse'
              example:
                instructions:
                - id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                  leadingField:
                    id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                    name: header.seller.country.name
                    dropdownFieldName: seller.countryName
                    hoverText: Seller country name applied for the tax engine calculation
                    dataType: STRING
                    dataSource: CONDITION
                    order: 1
                  operator: EQUAL
                  value: BE
                  comparisonField:
                  isMandatory: false
                - id: a7f8e3c2-6d41-4b89-9e15-3c7a2f8d6b91
                  leadingField:
                    id: e2a9b7c4-8f3d-4e67-a123-9b8c7d6e5f42
                    name: header.buyer.vat.number
                    dropdownFieldName: buyer.vatNumber
                    hoverText: Buyer VAT number for tax validation
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 2
                  operator: NOT_EQUAL
                  value:
                  comparisonField:
                    id: f3b8c9d5-7e42-4a98-b234-8c9d7e6f5a43
                    name: header.seller.vat.number
                    dropdownFieldName: seller.vatNumber
                    hoverText: Seller VAT number for comparison
                    dataType: STRING
                    dataSource: TRANSACTION
                    order: 3
                  isMandatory: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom VATEX code mapping instructions
      summary: Create a new custom VATEX code mapping instruction
      description: 'Create a new custom VATEX code mapping instruction <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: createCustomVatexCodeMappingInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom VATEX code mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom VATEX code instruction to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/vatexCodeMappings/{mappingId}/instructionGroups/{instructionGroupId}/instructions/{instructionId}:
    delete:
      tags:
      - Custom VATEX code mapping instructions
      summary: Delete custom VATEX code mapping instruction by uuid
      description: 'Delete custom VATEX code mapping instruction by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: deleteCustomVatexCodeMappingInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom VATEX code mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The custom VATEX code mapping instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom VATEX code mapping instruction was
            successfully deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom VATEX code mapping instructions
      summary: Update an existing custom VATEX code mapping instruction by uuid
      description: 'Update an existing custom VATEX code mapping instruction by uuid
        <br/> Scope: space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomVatexCodeMappingInstruction
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom VATEX code mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionGroupId
        in: path
        description: The instruction group identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: instructionId
        in: path
        description: The custom VATEX code mapping instruction identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom VATEX code instruction data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstructionRequest'
            example:
              leadingFieldId: 9830b9eb-2f89-4d47-bdc5-7727d3e70aaf
              operator: EQUAL
              value: BE
              comparisonFieldId:
              isMandatory: false
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Instruction'
              example:
                id: 9830b9eb-2f89-4d47-bdc5-7727d3e70afa
                leadingField:
                  id: 74d3e63d-09be-432a-aa7a-7b686ece0042
                  name: header.seller.country.name
                  dropdownFieldName: seller.countryName
                  hoverText: Seller country name applied for the tax engine calculation
                  dataType: STRING
                  dataSource: CONDITION
                  order: 1
                operator: EQUAL
                value: BE
                comparisonField:
                isMandatory: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/vatexCodeMappings/{mappingId}:clone:
    post:
      tags:
      - Custom VATEX code mappings
      summary: Clone custom VATEX code mappings by uuid
      description: 'Clone custom VATEX code mappings by uuid <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: cloneCustomVatexCodeMappingById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom VATEX code mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomVatexCodeMapping'
              example:
                id: afdb8549-7385-4bd6-bb90-44c5043c99ef
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                instructionGroupsCount: 2
                customVatexCode:
                  id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                  exemptionReasonCode: VATEX-EU-132-1C
                  exemptionReason: Provision of medical care (Art. 132.1.c)
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
  /v1/spaces/{spaceId}/vatexCodeMappings:
    get:
      tags:
      - Custom VATEX code mappings
      summary: Get a list of all custom VATEX code mappings type one
      description: 'Get a list of all custom VATEX code mappings type one <br/> Scope:
        space_read<br/> This Endpoint is part of: tax_configuration'
      operationId: getAllCustomVatexCodeMappings
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: page
        in: query
        description: Zero-based page index, cannot be negative, default 0
        schema:
          type: integer
          format: int32
        example: 20
      - name: pageSize
        in: query
        description: 'Page size. Minimum 1, maximum: 400, default 20'
        schema:
          type: integer
          format: int32
        example: 20
      - name: includeTotalElements
        in: query
        description: Return the totalElements number of entries in the response
        schema:
          type: boolean
        example: true
      - name: sortBy
        in: query
        description: Sort by criteria
        schema:
          type: string
          enum:
          - order
          - order.asc
          - order.desc
        example: order
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomVatexCodeMappingResponse'
              example:
                results:
                - id: afdb8549-7385-4bd6-bb90-44c5043c99ef
                  startDate: 2024-01-01
                  endDate:
                  order: 1
                  logicalOperator: AND
                  condition: ''
                  instructionGroupsCount: 2
                  customVatexCode:
                    id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                    exemptionReasonCode: VATEX-EU-132-1C
                    exemptionReason: Provision of medical care (Art. 132.1.c)
                totalElements: 1
                currentPage: 0
                pageSize: 1
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    post:
      tags:
      - Custom VATEX code mappings
      summary: Create a new custom VATEX code mappings
      description: 'Create a new custom VATEX code mappings <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: createCustomVatexCodeMapping
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom rule to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomVatexCodeMappingRequest'
            example:
              vatexCodeId: dfdb8549-7385-4bd6-bb90-44c5043c99dd
              startDate: 2024-01-01
              endDate: 2024-12-31
              logicalOperator: AND
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomVatexCodeMapping'
              example:
                id: afdb8549-7385-4bd6-bb90-44c5043c99ef
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                instructionGroupsCount: 2
                customVatexCode:
                  id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                  exemptionReasonCode: VATEX-EU-132-1C
                  exemptionReason: Provision of medical care (Art. 132.1.c)
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
  /v1/spaces/{spaceId}/vatexCodeMappings/{mappingId}:
    get:
      tags:
      - Custom VATEX code mappings
      summary: Get custom VATEX code mappings by uuid
      description: 'Get custom VATEX code mappings by uuid <br/> Scope: space_read<br/>
        This Endpoint is part of: tax_configuration'
      operationId: getCustomVatexCodeMappingById
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom VATEX code mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomVatexCodeMapping'
              example:
                id: afdb8549-7385-4bd6-bb90-44c5043c99ef
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                instructionGroupsCount: 2
                customVatexCode:
                  id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                  exemptionReasonCode: VATEX-EU-132-1C
                  exemptionReason: Provision of medical care (Art. 132.1.c)
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_read
    delete:
      tags:
      - Custom VATEX code mappings
      summary: Delete custom VATEX code mappings by uuid
      description: 'Delete custom VATEX code mappings by uuid <br/> Scope: space_write<br/>
        This Endpoint is part of: tax_configuration'
      operationId: deleteCustomVatexCodeMapping
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom VATEX code mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: No Content - The custom VATEX code mapping was successfully
            deleted.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
    patch:
      tags:
      - Custom VATEX code mappings
      summary: Update an existing custom VATEX code mappings by uuid
      description: 'Update an existing custom VATEX code mappings by uuid <br/> Scope:
        space_write<br/> This Endpoint is part of: tax_configuration'
      operationId: updateCustomVatexCodeMapping
      parameters:
      - name: spaceId
        in: path
        description: The space identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: mappingId
        in: path
        description: The custom VATEX code mapping identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Custom rule data to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomVatexCodeMappingPatchRequest'
            example:
              vatexCodeId: dfdb8549-7385-4bd6-bb90-44c5043c99dd
              startDate: 2024-01-01
              endDate: 2024-12-31
              logicalOperator: AND
              order: 1
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomVatexCodeMapping'
              example:
                id: afdb8549-7385-4bd6-bb90-44c5043c99ef
                startDate: 2024-01-01
                endDate:
                order: 1
                logicalOperator: AND
                condition: ''
                instructionGroupsCount: 2
                customVatexCode:
                  id: dfdb8549-7385-4bd6-bb90-44c5043c99df
                  exemptionReasonCode: VATEX-EU-132-1C
                  exemptionReason: Provision of medical care (Art. 132.1.c)
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 400
                error: BAD_REQUEST
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Bad Request
                detail: Bad Request message details.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorProblemDetail'
              example:
                status: 404
                error: NOT_FOUND
                requestId: a78150d2-7913-4ea6-933f-286cadac6745
                timestamp: 2018-08-27T12:34:50Z
                type: about:blank
                title: Not Found
                detail: The HTTP method was not allowed on this endpoint.
      security:
      - oauth2:
        - space_write
components:
  schemas:
    DatabaseExport:
      type: object
      properties:
        success:
          type: boolean
          description: Indicates if the operation was successful
        message:
          type: string
          description: Result message
    ApiErrorProblemDetail:
      required:
      - error
      - requestId
      - timestamp
      type: object
      properties:
        status:
          type: integer
          format: int32
        error:
          type: string
        requestId:
          type: string
        timestamp:
          type: string
          format: date-time
        type:
          type: string
          format: uri
        title:
          type: string
        detail:
          type: string
        instance:
          type: string
          format: uri
        problems:
          type: array
          items:
            $ref: '#/components/schemas/NestedProblem'
        properties:
          type: object
          additionalProperties:
            type: object
    NestedProblem:
      required:
      - detail
      - error
      - title
      type: object
      properties:
        error:
          type: string
        title:
          type: string
        detail:
          type: string
        type:
          type: string
          format: uri
    CustomDiffTransactionMemo:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the custom diff transaction memo
          format: uuid
        diffEvent:
          type: string
          description: Diff event of the custom diff transaction memo
          enum:
          - DIFF_TAXABLE_BASIS
          - DIFF_TAX_RATE
          - DIFF_TAX_ON_INVOICE
          - DIFF_TAX_ON_LINE
          - DIFF_PAYABLE_TAX
          - DIFF_DEDUCTIBLE_TAX
          - DIFF_GROSS_AMOUNT
          - DIFF_TAX_CODE
        mismatchToleranceAmount:
          type: number
          description: Mismatch tolerance amount of the custom diff transaction memo
          format: double
        mismatchTolerancePercentage:
          type: number
          description: Mismatch tolerance percentage of the custom diff transaction
            memo
          format: double
        order:
          type: integer
          description: Order of the custom diff transaction memo
          format: int32
        logicalOperator:
          type: string
          description: Logical operator of the instruction groups
          enum:
          - AND
          - OR
        condition:
          type: string
          description: Summarized representation of the custom diff transaction memo's
            condition
        instructionGroupsCount:
          type: integer
          description: Count of instructions groups associated with the custom diff
            transaction memo
          format: int32
    CustomDiffTransactionMemoRequest:
      type: object
      properties:
        diffEvent:
          type: string
          description: Diff event of the transaction memo
          enum:
          - DIFF_TAXABLE_BASIS
          - DIFF_TAX_RATE
          - DIFF_TAX_ON_INVOICE
          - DIFF_TAX_ON_LINE
          - DIFF_PAYABLE_TAX
          - DIFF_DEDUCTIBLE_TAX
          - DIFF_GROSS_AMOUNT
          - DIFF_TAX_CODE
        mismatchToleranceAmount:
          type: number
          description: Mismatch tolerance amount
          format: double
        mismatchTolerancePercentage:
          type: number
          description: Mismatch tolerance percentage value
          format: double
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
    ListCustomDiffTransactionMemoResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/CustomDiffTransactionMemo'
        totalElements:
          type: integer
          description: Total number of items in the database that correspond to this
            search criteria
          format: int64
        currentPage:
          type: integer
          description: Current page
          format: int32
        pageSize:
          type: integer
          description: Response page size
          format: int32
    CustomDiffTransactionMemoPatchRequest:
      type: object
      properties:
        diffEvent:
          type: string
          description: Diff event of the transaction memo
          enum:
          - DIFF_TAXABLE_BASIS
          - DIFF_TAX_RATE
          - DIFF_TAX_ON_INVOICE
          - DIFF_TAX_ON_LINE
          - DIFF_PAYABLE_TAX
          - DIFF_DEDUCTIBLE_TAX
          - DIFF_GROSS_AMOUNT
          - DIFF_TAX_CODE
        mismatchToleranceAmount:
          type: number
          description: Mismatch tolerance amount
          format: double
        mismatchTolerancePercentage:
          type: number
          description: Mismatch tolerance percentage value
          format: double
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
        order:
          type: integer
          description: Order of the custom PEPPOL tax category
          format: int32
    TerritoryValidationResult:
      type: object
      properties:
        isValid:
          type: boolean
        messages:
          type: array
          items:
            type: string
    InstructionGroup:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the instruction group
          format: uuid
        logicalOperator:
          type: string
          description: Logical operator of the instruction group
          enum:
          - AND
          - OR
        order:
          type: integer
          description: Order of the instruction group
          format: int32
        place:
          type: string
          description: Place of the instruction group
          enum:
          - CONDITION
          - ACTION
        instructionsCount:
          type: integer
          description: Count of instructions associated with the rule
          format: int32
        entityInstructionsCount:
          type: integer
          description: Count of entity instructions associated with the rule
          format: int32
    InstructionGroupRequest:
      type: object
      properties:
        logicalOperator:
          type: string
          description: Denotes the logical operator of the instruction group - AND
            or OR
          example: AND
        place:
          type: string
          description: Denotes the place of the instruction group - CONDITION or ACTION
          example: CONDITION
    ListInstructionGroupResponse:
      type: object
      properties:
        instructionGroups:
          type: array
          items:
            $ref: '#/components/schemas/InstructionGroup'
    CustomLookupTableItem:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the custom lookup table item
          format: uuid
        name:
          type: string
          description: Name of the custom lookup table item
    CustomLookupTableItemRequest:
      type: object
      properties:
        name:
          type: string
          description: Name of the custom lookup table item
    ListCustomLookupTableItemResponse:
      type: object
      properties:
        lookupTableItems:
          type: array
          items:
            $ref: '#/components/schemas/CustomLookupTableItem'
    CustomLookupTable:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the custom lookup table
          format: uuid
        name:
          type: string
          description: Name of the custom lookup table
        itemsCount:
          type: integer
          description: Number of items in the lookup table
          format: int32
    CustomLookupTableRequest:
      type: object
      properties:
        name:
          type: string
          description: Name of the lookup table
    ListCustomLookupTableResponse:
      type: object
      properties:
        lookupTables:
          type: array
          items:
            $ref: '#/components/schemas/CustomLookupTable'
    LookupTableItem:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the lookup table item
          format: uuid
        name:
          type: string
          description: Name of the lookup table item
    LookupTableItemRequest:
      type: object
      properties:
        name:
          type: string
          description: Name of the lookup table item
    ListLookupTableItemResponse:
      type: object
      properties:
        lookupTableItems:
          type: array
          items:
            $ref: '#/components/schemas/LookupTableItem'
    LookupTable:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the lookup table
          format: uuid
        name:
          type: string
          description: Name of the lookup table
        itemsCount:
          type: integer
          description: Number of items in the lookup table
          format: int32
    LookupTableRequest:
      type: object
      properties:
        name:
          type: string
          description: Name of the lookup table
    ListLookupTableResponse:
      type: object
      properties:
        lookupTables:
          type: array
          items:
            $ref: '#/components/schemas/LookupTable'
    FieldMappingGroupItem:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the field mapping group item
          format: uuid
        code:
          type: string
          description: Code of the field mapping group item
    FieldMappingGroupItemRequest:
      type: object
      properties:
        code:
          type: string
          description: Field mapping group item code
    ListFieldMappingGroupItemResponse:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/FieldMappingGroupItem'
    FieldMappingGroup:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the field mapping group
          format: uuid
        order:
          type: integer
          description: Order of the field mapping group
          format: int32
        taxField:
          $ref: '#/components/schemas/TaxFieldShort'
        itemsCount:
          type: integer
          description: Number of items in the field mapping group
          format: int32
    TaxFieldShort:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the tax field
          format: uuid
        name:
          type: string
          description: Name of the tax field
        dropdownFieldName:
          type: string
          description: Dropdown field name for the tax field
        hoverText:
          type: string
          description: Hover text for the tax field
        dataType:
          type: string
          description: Data type of the field
          enum:
          - STRING
          - DOUBLE
          - DATE
          - BOOLEAN
          - LIST
          - LOCATION
        dataSource:
          type: string
          description: Source of data for the field
        order:
          type: integer
          description: Order of the field
          format: int32
      description: Comparison field
    FieldMappingGroupRequest:
      type: object
      properties:
        taxFieldId:
          type: string
          description: Identifier for the tax field
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174001
        order:
          type: integer
          description: Order of the group
          format: int32
    ListFieldMappingGroupResponse:
      type: object
      properties:
        fieldMappingGroups:
          type: array
          items:
            $ref: '#/components/schemas/FieldMappingGroup'
    EngineNote:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the engine note
          format: uuid
        code:
          type: string
          description: Code of the engine note
        description:
          type: string
          description: Description of the the engine note
        information:
          type: string
          description: Information for the the engine note
        taxServiceEvent:
          type: string
          description: Tax service event associated with the engine note
          enum:
          - INVALID_VALUE_HEADER_CALL_INDICATOR
          - INVALID_VALUE_SPACE_ID
          - INVALID_VALUE_HEADER_SELLER_COUNTRY_NAME
          - INVALID_VALUE_HEADER_SELLER_COUNTRY_CODE
          - INVALID_VALUE_HEADER_SELLER_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_HEADER_SELLER_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_HEADER_SELLER_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_HEADER_SELLER_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_HEADER_SELLER_TAX_REGISTRATION_TERRITORY_CODE
          - INVALID_VALUE_HEADER_SELLER_TAX_REGISTRATION_TYPE
          - INVALID_VALUE_HEADER_SELLER_TAX_REGISTRATION_OSS
          - INVALID_VALUE_HEADER_SELLER_TAX_REGISTRATION_VOLUNTARY
          - INVALID_VALUE_HEADER_SELLER_SMALL_ENTERPRISE
          - INVALID_VALUE_HEADER_SELLER_HEAD_OFFICE_INDICATOR
          - INVALID_VALUE_HEADER_SELLER_BRANCH_INDICATOR
          - INVALID_VALUE_HEADER_SELLER_IS_ELECTRONIC_INTERFACE
          - INVALID_VALUE_HEADER_BUYER_COUNTRY_NAME
          - INVALID_VALUE_HEADER_BUYER_COUNTRY_CODE
          - INVALID_VALUE_HEADER_BUYER_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_HEADER_BUYER_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_HEADER_BUYER_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_HEADER_BUYER_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_HEADER_BUYER_TAX_REGISTRATION_TERRITORY_CODE
          - INVALID_VALUE_HEADER_BUYER_TAX_REGISTRATION_TYPE
          - INVALID_VALUE_HEADER_BUYER_TAX_REGISTRATION_VOLUNTARY
          - INVALID_VALUE_HEADER_BUYER_SMALL_ENTERPRISE
          - INVALID_VALUE_HEADER_BUYER_HEAD_OFFICE_INDICATOR
          - INVALID_VALUE_HEADER_BUYER_BRANCH_INDICATOR
          - INVALID_VALUE_HEADER_BUYER_CLASSIFICATION
          - INVALID_VALUE_HEADER_BUYER_DEDUCTION_PERCENTAGE
          - INVALID_VALUE_HEADER_IS_TAX_GROUP
          - INVALID_VALUE_HEADER_B2C_INDICATOR
          - INVALID_VALUE_HEADER_TAX_RELEVANT_DATE
          - INVALID_VALUE_HEADER_DOCUMENT_DATE
          - INVALID_VALUE_HEADER_POSTING_DATE
          - INVALID_VALUE_HEADER_PAYMENT_DATE
          - INVALID_VALUE_HEADER_DELIVERY_DATE
          - INVALID_VALUE_HEADER_IS_CREDIT_NOTE
          - INVALID_VALUE_HEADER_UNDER_SUSPENSION
          - INVALID_VALUE_HEADER_IMPORT_DEFERRAL
          - INVALID_VALUE_HEADER_WHT_PAY_FROM_COUNTRY
          - INVALID_VALUE_HEADER_WHT_PAY_TO_COUNTRY
          - INVALID_VALUE_HEADER_WHT_RESIDENCY_CERTIFICATE
          - INVALID_VALUE_HEADER_WHT_TREATY_RELIEF
          - INVALID_VALUE_HEADER_WHT_PARTICIPATION_PERCENTAGE
          - INVALID_VALUE_HEADER_MISMATCH_TOLERANCE_AMOUNT
          - INVALID_VALUE_HEADER_MISMATCH_TOLERANCE_PERCENTAGE
          - INVALID_VALUE_HEADER_TAX_INCLUSIVE
          - INVALID_VALUE_HEADER_DISTANCE_SALE_UNDER_THRESHOLD
          - INVALID_VALUE_HEADER_ELECTRONIC_INTERFACE_IS_DEEMED_SUPPLIER
          - INVALID_VALUE_HEADER_EXCHANGE_RATE
          - INVALID_VALUE_HEADER_SELF_BILLING
          - INVALID_VALUE_HEADER_CASH_ACCOUNTING
          - INVALID_VALUE_HEADER_MARGIN_SCHEME
          - INVALID_VALUE_HEADER_SIMPLIFIED_INVOICE
          - INVALID_VALUE_HEADER_SPLIT_PAYMENT
          - INVALID_VALUE_HEADER_ORIGINAL_TOTAL_TAX_AMOUNT_ON_INVOICE
          - INVALID_VALUE_HEADER_STORE_FOR_AUDIT
          - INVALID_VALUE_LINE_INVOICE_LINE_NUMBER
          - INVALID_VALUE_LINE_SHIP_FROM_COUNTRY_NAME
          - INVALID_VALUE_LINE_SHIP_FROM_COUNTRY_CODE
          - INVALID_VALUE_LINE_SHIP_FROM_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_SHIP_FROM_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_SHIP_FROM_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_SHIP_FROM_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_SHIP_TO_COUNTRY_NAME
          - INVALID_VALUE_LINE_SHIP_TO_COUNTRY_CODE
          - INVALID_VALUE_LINE_SHIP_TO_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_SHIP_TO_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_SHIP_TO_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_SHIP_TO_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_TAX_PRODUCT_ID_ADMIN
          - INVALID_VALUE_LINE_TAX_PRODUCT_ID_CUSTOM
          - INVALID_VALUE_LINE_IS_PRIVATE_USE
          - INVALID_VALUE_LINE_ITEM_QUANTITY
          - INVALID_VALUE_LINE_ITEM_UNIT_PRICE
          - INVALID_VALUE_LINE_IS_TRADE_GOODS
          - INVALID_VALUE_LINE_IS_CAPITAL_GOODS
          - INVALID_VALUE_LINE_ORIGINAL_TAXABLE_BASIS
          - INVALID_VALUE_LINE_ORIGINAL_TAX_RATE
          - INVALID_VALUE_LINE_ORIGINAL_TAX_ON_INVOICE
          - INVALID_VALUE_LINE_ORIGINAL_PAYABLE_TAX
          - INVALID_VALUE_LINE_ORIGINAL_DEDUCTIBLE_TAX
          - INVALID_VALUE_LINE_ORIGINAL_GROSS_AMOUNT
          - INVALID_VALUE_LINE_LOCATION_IMMOVABLE_GOODS_COUNTRY_NAME
          - INVALID_VALUE_LINE_LOCATION_IMMOVABLE_GOODS_COUNTRY_CODE
          - INVALID_VALUE_LINE_LOCATION_IMMOVABLE_GOODS_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_IMMOVABLE_GOODS_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_IMMOVABLE_GOODS_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_IMMOVABLE_GOODS_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_PUT_AT_DISPOSAL_COUNTRY_NAME
          - INVALID_VALUE_LINE_LOCATION_PUT_AT_DISPOSAL_COUNTRY_CODE
          - INVALID_VALUE_LINE_LOCATION_PUT_AT_DISPOSAL_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_PUT_AT_DISPOSAL_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_PUT_AT_DISPOSAL_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_PUT_AT_DISPOSAL_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_PHYSICAL_SERVICE_COUNTRY_NAME
          - INVALID_VALUE_LINE_LOCATION_PHYSICAL_SERVICE_COUNTRY_CODE
          - INVALID_VALUE_LINE_LOCATION_PHYSICAL_SERVICE_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_PHYSICAL_SERVICE_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_PHYSICAL_SERVICE_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_PHYSICAL_SERVICE_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_DEPARTURE_TRANSPORT_COUNTRY_NAME
          - INVALID_VALUE_LINE_LOCATION_DEPARTURE_TRANSPORT_COUNTRY_CODE
          - INVALID_VALUE_LINE_LOCATION_DEPARTURE_TRANSPORT_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_DEPARTURE_TRANSPORT_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_DEPARTURE_TRANSPORT_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_DEPARTURE_TRANSPORT_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_ARRIVAL_TRANSPORT_COUNTRY_NAME
          - INVALID_VALUE_LINE_LOCATION_ARRIVAL_TRANSPORT_COUNTRY_CODE
          - INVALID_VALUE_LINE_LOCATION_ARRIVAL_TRANSPORT_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_ARRIVAL_TRANSPORT_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_ARRIVAL_TRANSPORT_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_ARRIVAL_TRANSPORT_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_EFFECTIVE_CONSUMPTION_COUNTRY_NAME
          - INVALID_VALUE_LINE_LOCATION_EFFECTIVE_CONSUMPTION_COUNTRY_CODE
          - INVALID_VALUE_LINE_LOCATION_EFFECTIVE_CONSUMPTION_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_EFFECTIVE_CONSUMPTION_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_EFFECTIVE_CONSUMPTION_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_EFFECTIVE_CONSUMPTION_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_INSTALLATION_COUNTRY_NAME
          - INVALID_VALUE_LINE_LOCATION_INSTALLATION_COUNTRY_CODE
          - INVALID_VALUE_LINE_LOCATION_INSTALLATION_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_INSTALLATION_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_INSTALLATION_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_INSTALLATION_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_NO_TRANSPORT_ALLOCATED
          - INVALID_VALUE_LINE_SUPPLY_WITH_INSTALLATION
          - INVALID_VALUE_LINE_IS_TRIANGULATION_PARTY_B
          - INVALID_VALUE_LINE_IS_TRIANGULATION_PARTY_C
          - INVALID_VALUE_LINE_OPT_OUT_IMPORT_OSS
          - INVALID_VALUE_LINE_UNDERLYING_VENDOR_NOT_ESTABLISHED
          - INVALID_VALUE_LINE_CONSIGNMENT_VALUE_UNDER_THRESHOLD
          - INVALID_VALUE_LINE_OPT_NO_RC_NEST
          - INVALID_VALUE_NUMBER_OUTSIDE_ALLOWED_RANGE
          - TAX_REGISTRATION_SELLER_DISREGARDING_DUPLICATED_TAX_REGISTRATION_BASED_ON_TERRITORY_CODE
          - TAX_REGISTRATION_SELLER_SETTING_TERRITORY_CODE_BASED_ON_PREFIX
          - TAX_REGISTRATION_SELLER_SETTING_TERRITORY_CODE_BASED_ON_TAX_ID
          - TAX_REGISTRATION_SELLER_DISREGARDING_INCORRECT_VALUE_IN_TAX_ID_TYPE
          - TAX_REGISTRATION_SELLER_ASSUMING_TAX_ID_TYPE_IF_IT_WAS_MISSING
          - TAX_REGISTRATION_SELLER_ADDING_A_TAX_REGISTRATION_OBJECT_WITH_DEFAULT_SETTING_IF_IT_WAS_NOT_SENT
          - TAX_REGISTRATION_BUYER_DISREGARDING_DUPLICATED_TAX_REGISTRATION_BASED_ON_TERRITORY_CODE
          - TAX_REGISTRATION_BUYER_SETTING_TERRITORY_CODE_BASED_ON_PREFIX
          - TAX_REGISTRATION_BUYER_SETTING_TERRITORY_CODE_BASED_ON_TAX_ID
          - TAX_REGISTRATION_BUYER_DISREGARDING_INCORRECT_VALUE_IN_TAX_ID_TYPE
          - TAX_REGISTRATION_BUYER_ASSUMING_TAX_ID_TYPE_IF_IT_WAS_MISSING
          - TAX_REGISTRATION_BUYER_ADDING_A_TAX_REGISTRATION_OBJECT_WITH_DEFAULT_SETTING_IF_IT_WAS_NOT_SENT
          - TAX_REGISTRATION_WIPING_WHOLE_REGISTRATION_MATRIX_FOR_BUYER_IF_BUYER_SMALL_ENTERPRISE_IS_TRUE
          - TAX_REGISTRATION_WIPING_WHOLE_REGISTRATION_MATRIX_FOR_BUYER_IF_B2C_INDICATOR_IS_TRUE
          - TAX_REGISTRATION_WIPING_WHOLE_REGISTRATION_MATRIX_FOR_SELLER_IF_SELLER_SMALL_ENTERPRISE_IS_TRUE
          - TAX_REGISTRATION_SELLER_CORE_LOCATION_TYPE_CONFLICT
          - TAX_REGISTRATION_BUYER_CORE_LOCATION_TYPE_CONFLICT
          - TAX_REGISTRATION_SELLER_INVALID_TYPE
          - TAX_REGISTRATION_BUYER_INVALID_TYPE
          - TAX_DEFAULTING_STEP_DISREGARDING_THE_B2C_INDICATOR_FOR_AP
          - TAX_DEFAULTING_STEP_DEFAULTING_SHIP_FROM_FIELD_IF_IT_IS_GOODS
          - TAX_DEFAULTING_STEP_DEFAULTING_SHIP_TO_FIELD_IF_IT_IS_GOODS
          - PLACE_OF_SUPPLY_NO_CONFLICT_ALL_DEFAULTED
          - PLACE_OF_SUPPLY_NO_CONFLICT_SINGLE_SUPPORTED_YES_COUNTRY
          - PLACE_OF_SUPPLY_NO_CONFLICT_SINGLE_SUPPORTED_YES_ZERO_COUNTRY
          - PLACE_OF_SUPPLY_CONFLICT_BETWEEN_CONCLUSIONS
          - PLACE_OF_SUPPLY_CONCLUSION_CORRECTED
          - PLACE_OF_SUPPLY_LOCATION_SET_BY_DEFAULT_CONCLUSION
          - PLACE_OF_SUPPLY_CONCLUSION_SET_BY_OOS_PRODUCT
          - PLACE_OF_SUPPLY_LOCATION_EMPTY_DEFAULT_APPLIED
          - PLACE_OF_SUPPLY_PROXIMITY_BASED_ON_SELLER_ESTABLISHMENT_LOCATION
          - PLACE_OF_SUPPLY_PROXIMITY_BASED_ON_BUYER_ESTABLISHMENT_LOCATION
          - PLACE_OF_SUPPLY_PROXIMITY_BASED_ON_SHIP_FROM_LOCATION
          - PLACE_OF_SUPPLY_PROXIMITY_BASED_ON_SHIP_TO_LOCATION
          - PLACE_OF_SUPPLY_PROXIMITY_FALLBACK_TO_FIRST_COUNTRY
          - PLACE_OF_SUPPLY_LOCATION_MISSING_FOR_SOME_COUNTRIES_DEFAULT_APPLIED
          - USE_AND_ENJOYMENT_OUTBOUND_TRUE_INBOUND_TRUE
          - USE_AND_ENJOYMENT_OUTBOUND_TRUE_INBOUND_NULL
          - USE_AND_ENJOYMENT_OUTBOUND_NULL_INBOUND_TRUE_TRANSACTION_TYPE_EXPORT
          - USE_AND_ENJOYMENT_OUTBOUND_NULL_INBOUND_TRUE_TRANSACTION_TYPE_NOT_EXPORT
          - DISREGARDED_TEST_PRODUCT
          - DISREGARDED_TEST_TERRITORY
          - NON_EXISTENT_TERRITORY_TAX_TYPE
          - NO_TAX_RATE_FOUND_SETTING_DEFAULT_RATE
          - NIL_TAX_DEDUCTION_PERCENTAGE_DUE_TO_PRIVATE_USE
          - NIL_TAX_DEDUCTION_PERCENTAGE_DUE_TO_SMALL_ENTERPRISE_EXEMPTION
          - RATE_TYPE_DOES_NOT_EXIST_FOR_THAT_COUNTRY
          - DIFF_TAXABLE_BASIS
          - DIFF_TAX_RATE
          - DIFF_TAX_ON_INVOICE
          - DIFF_TAX_ON_LINE
          - DIFF_PAYABLE_TAX
          - DIFF_DEDUCTIBLE_TAX
          - DIFF_GROSS_AMOUNT
          - DIFF_TAX_CODE
    EngineNoteRequest:
      type: object
      properties:
        code:
          type: string
          description: Engine note code
        description:
          type: string
          description: Description regarding the engine note
        information:
          type: string
          description: Information regarding the engine note
        taxServiceEvent:
          type: string
          description: Tax service event associated with the engine note
          enum:
          - INVALID_VALUE_HEADER_CALL_INDICATOR
          - INVALID_VALUE_SPACE_ID
          - INVALID_VALUE_HEADER_SELLER_COUNTRY_NAME
          - INVALID_VALUE_HEADER_SELLER_COUNTRY_CODE
          - INVALID_VALUE_HEADER_SELLER_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_HEADER_SELLER_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_HEADER_SELLER_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_HEADER_SELLER_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_HEADER_SELLER_TAX_REGISTRATION_TERRITORY_CODE
          - INVALID_VALUE_HEADER_SELLER_TAX_REGISTRATION_TYPE
          - INVALID_VALUE_HEADER_SELLER_TAX_REGISTRATION_OSS
          - INVALID_VALUE_HEADER_SELLER_TAX_REGISTRATION_VOLUNTARY
          - INVALID_VALUE_HEADER_SELLER_SMALL_ENTERPRISE
          - INVALID_VALUE_HEADER_SELLER_HEAD_OFFICE_INDICATOR
          - INVALID_VALUE_HEADER_SELLER_BRANCH_INDICATOR
          - INVALID_VALUE_HEADER_SELLER_IS_ELECTRONIC_INTERFACE
          - INVALID_VALUE_HEADER_BUYER_COUNTRY_NAME
          - INVALID_VALUE_HEADER_BUYER_COUNTRY_CODE
          - INVALID_VALUE_HEADER_BUYER_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_HEADER_BUYER_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_HEADER_BUYER_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_HEADER_BUYER_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_HEADER_BUYER_TAX_REGISTRATION_TERRITORY_CODE
          - INVALID_VALUE_HEADER_BUYER_TAX_REGISTRATION_TYPE
          - INVALID_VALUE_HEADER_BUYER_TAX_REGISTRATION_VOLUNTARY
          - INVALID_VALUE_HEADER_BUYER_SMALL_ENTERPRISE
          - INVALID_VALUE_HEADER_BUYER_HEAD_OFFICE_INDICATOR
          - INVALID_VALUE_HEADER_BUYER_BRANCH_INDICATOR
          - INVALID_VALUE_HEADER_BUYER_CLASSIFICATION
          - INVALID_VALUE_HEADER_BUYER_DEDUCTION_PERCENTAGE
          - INVALID_VALUE_HEADER_IS_TAX_GROUP
          - INVALID_VALUE_HEADER_B2C_INDICATOR
          - INVALID_VALUE_HEADER_TAX_RELEVANT_DATE
          - INVALID_VALUE_HEADER_DOCUMENT_DATE
          - INVALID_VALUE_HEADER_POSTING_DATE
          - INVALID_VALUE_HEADER_PAYMENT_DATE
          - INVALID_VALUE_HEADER_DELIVERY_DATE
          - INVALID_VALUE_HEADER_IS_CREDIT_NOTE
          - INVALID_VALUE_HEADER_UNDER_SUSPENSION
          - INVALID_VALUE_HEADER_IMPORT_DEFERRAL
          - INVALID_VALUE_HEADER_WHT_PAY_FROM_COUNTRY
          - INVALID_VALUE_HEADER_WHT_PAY_TO_COUNTRY
          - INVALID_VALUE_HEADER_WHT_RESIDENCY_CERTIFICATE
          - INVALID_VALUE_HEADER_WHT_TREATY_RELIEF
          - INVALID_VALUE_HEADER_WHT_PARTICIPATION_PERCENTAGE
          - INVALID_VALUE_HEADER_MISMATCH_TOLERANCE_AMOUNT
          - INVALID_VALUE_HEADER_MISMATCH_TOLERANCE_PERCENTAGE
          - INVALID_VALUE_HEADER_TAX_INCLUSIVE
          - INVALID_VALUE_HEADER_DISTANCE_SALE_UNDER_THRESHOLD
          - INVALID_VALUE_HEADER_ELECTRONIC_INTERFACE_IS_DEEMED_SUPPLIER
          - INVALID_VALUE_HEADER_EXCHANGE_RATE
          - INVALID_VALUE_HEADER_SELF_BILLING
          - INVALID_VALUE_HEADER_CASH_ACCOUNTING
          - INVALID_VALUE_HEADER_MARGIN_SCHEME
          - INVALID_VALUE_HEADER_SIMPLIFIED_INVOICE
          - INVALID_VALUE_HEADER_SPLIT_PAYMENT
          - INVALID_VALUE_HEADER_ORIGINAL_TOTAL_TAX_AMOUNT_ON_INVOICE
          - INVALID_VALUE_HEADER_STORE_FOR_AUDIT
          - INVALID_VALUE_LINE_INVOICE_LINE_NUMBER
          - INVALID_VALUE_LINE_SHIP_FROM_COUNTRY_NAME
          - INVALID_VALUE_LINE_SHIP_FROM_COUNTRY_CODE
          - INVALID_VALUE_LINE_SHIP_FROM_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_SHIP_FROM_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_SHIP_FROM_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_SHIP_FROM_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_SHIP_TO_COUNTRY_NAME
          - INVALID_VALUE_LINE_SHIP_TO_COUNTRY_CODE
          - INVALID_VALUE_LINE_SHIP_TO_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_SHIP_TO_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_SHIP_TO_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_SHIP_TO_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_TAX_PRODUCT_ID_ADMIN
          - INVALID_VALUE_LINE_TAX_PRODUCT_ID_CUSTOM
          - INVALID_VALUE_LINE_IS_PRIVATE_USE
          - INVALID_VALUE_LINE_ITEM_QUANTITY
          - INVALID_VALUE_LINE_ITEM_UNIT_PRICE
          - INVALID_VALUE_LINE_IS_TRADE_GOODS
          - INVALID_VALUE_LINE_IS_CAPITAL_GOODS
          - INVALID_VALUE_LINE_ORIGINAL_TAXABLE_BASIS
          - INVALID_VALUE_LINE_ORIGINAL_TAX_RATE
          - INVALID_VALUE_LINE_ORIGINAL_TAX_ON_INVOICE
          - INVALID_VALUE_LINE_ORIGINAL_PAYABLE_TAX
          - INVALID_VALUE_LINE_ORIGINAL_DEDUCTIBLE_TAX
          - INVALID_VALUE_LINE_ORIGINAL_GROSS_AMOUNT
          - INVALID_VALUE_LINE_LOCATION_IMMOVABLE_GOODS_COUNTRY_NAME
          - INVALID_VALUE_LINE_LOCATION_IMMOVABLE_GOODS_COUNTRY_CODE
          - INVALID_VALUE_LINE_LOCATION_IMMOVABLE_GOODS_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_IMMOVABLE_GOODS_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_IMMOVABLE_GOODS_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_IMMOVABLE_GOODS_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_PUT_AT_DISPOSAL_COUNTRY_NAME
          - INVALID_VALUE_LINE_LOCATION_PUT_AT_DISPOSAL_COUNTRY_CODE
          - INVALID_VALUE_LINE_LOCATION_PUT_AT_DISPOSAL_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_PUT_AT_DISPOSAL_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_PUT_AT_DISPOSAL_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_PUT_AT_DISPOSAL_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_PHYSICAL_SERVICE_COUNTRY_NAME
          - INVALID_VALUE_LINE_LOCATION_PHYSICAL_SERVICE_COUNTRY_CODE
          - INVALID_VALUE_LINE_LOCATION_PHYSICAL_SERVICE_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_PHYSICAL_SERVICE_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_PHYSICAL_SERVICE_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_PHYSICAL_SERVICE_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_DEPARTURE_TRANSPORT_COUNTRY_NAME
          - INVALID_VALUE_LINE_LOCATION_DEPARTURE_TRANSPORT_COUNTRY_CODE
          - INVALID_VALUE_LINE_LOCATION_DEPARTURE_TRANSPORT_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_DEPARTURE_TRANSPORT_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_DEPARTURE_TRANSPORT_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_DEPARTURE_TRANSPORT_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_ARRIVAL_TRANSPORT_COUNTRY_NAME
          - INVALID_VALUE_LINE_LOCATION_ARRIVAL_TRANSPORT_COUNTRY_CODE
          - INVALID_VALUE_LINE_LOCATION_ARRIVAL_TRANSPORT_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_ARRIVAL_TRANSPORT_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_ARRIVAL_TRANSPORT_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_ARRIVAL_TRANSPORT_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_EFFECTIVE_CONSUMPTION_COUNTRY_NAME
          - INVALID_VALUE_LINE_LOCATION_EFFECTIVE_CONSUMPTION_COUNTRY_CODE
          - INVALID_VALUE_LINE_LOCATION_EFFECTIVE_CONSUMPTION_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_EFFECTIVE_CONSUMPTION_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_EFFECTIVE_CONSUMPTION_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_EFFECTIVE_CONSUMPTION_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_INSTALLATION_COUNTRY_NAME
          - INVALID_VALUE_LINE_LOCATION_INSTALLATION_COUNTRY_CODE
          - INVALID_VALUE_LINE_LOCATION_INSTALLATION_COUNTRY_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_INSTALLATION_COUNTRY_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_LOCATION_INSTALLATION_COUNTRY_SUBDIVISION_SUBDIVISION_NAME
          - INVALID_VALUE_LINE_LOCATION_INSTALLATION_COUNTRY_SUBDIVISION_SUBDIVISION_CODE
          - INVALID_VALUE_LINE_NO_TRANSPORT_ALLOCATED
          - INVALID_VALUE_LINE_SUPPLY_WITH_INSTALLATION
          - INVALID_VALUE_LINE_IS_TRIANGULATION_PARTY_B
          - INVALID_VALUE_LINE_IS_TRIANGULATION_PARTY_C
          - INVALID_VALUE_LINE_OPT_OUT_IMPORT_OSS
          - INVALID_VALUE_LINE_UNDERLYING_VENDOR_NOT_ESTABLISHED
          - INVALID_VALUE_LINE_CONSIGNMENT_VALUE_UNDER_THRESHOLD
          - INVALID_VALUE_LINE_OPT_NO_RC_NEST
          - INVALID_VALUE_NUMBER_OUTSIDE_ALLOWED_RANGE
          - TAX_REGISTRATION_SELLER_DISREGARDING_DUPLICATED_TAX_REGISTRATION_BASED_ON_TERRITORY_CODE
          - TAX_REGISTRATION_SELLER_SETTING_TERRITORY_CODE_BASED_ON_PREFIX
          - TAX_REGISTRATION_SELLER_SETTING_TERRITORY_CODE_BASED_ON_TAX_ID
          - TAX_REGISTRATION_SELLER_DISREGARDING_INCORRECT_VALUE_IN_TAX_ID_TYPE
          - TAX_REGISTRATION_SELLER_ASSUMING_TAX_ID_TYPE_IF_IT_WAS_MISSING
          - TAX_REGISTRATION_SELLER_ADDING_A_TAX_REGISTRATION_OBJECT_WITH_DEFAULT_SETTING_IF_IT_WAS_NOT_SENT
          - TAX_REGISTRATION_BUYER_DISREGARDING_DUPLICATED_TAX_REGISTRATION_BASED_ON_TERRITORY_CODE
          - TAX_REGISTRATION_BUYER_SETTING_TERRITORY_CODE_BASED_ON_PREFIX
          - TAX_REGISTRATION_BUYER_SETTING_TERRITORY_CODE_BASED_ON_TAX_ID
          - TAX_REGISTRATION_BUYER_DISREGARDING_INCORRECT_VALUE_IN_TAX_ID_TYPE
          - TAX_REGISTRATION_BUYER_ASSUMING_TAX_ID_TYPE_IF_IT_WAS_MISSING
          - TAX_REGISTRATION_BUYER_ADDING_A_TAX_REGISTRATION_OBJECT_WITH_DEFAULT_SETTING_IF_IT_WAS_NOT_SENT
          - TAX_REGISTRATION_WIPING_WHOLE_REGISTRATION_MATRIX_FOR_BUYER_IF_BUYER_SMALL_ENTERPRISE_IS_TRUE
          - TAX_REGISTRATION_WIPING_WHOLE_REGISTRATION_MATRIX_FOR_BUYER_IF_B2C_INDICATOR_IS_TRUE
          - TAX_REGISTRATION_WIPING_WHOLE_REGISTRATION_MATRIX_FOR_SELLER_IF_SELLER_SMALL_ENTERPRISE_IS_TRUE
          - TAX_REGISTRATION_SELLER_CORE_LOCATION_TYPE_CONFLICT
          - TAX_REGISTRATION_BUYER_CORE_LOCATION_TYPE_CONFLICT
          - TAX_REGISTRATION_SELLER_INVALID_TYPE
          - TAX_REGISTRATION_BUYER_INVALID_TYPE
          - TAX_DEFAULTING_STEP_DISREGARDING_THE_B2C_INDICATOR_FOR_AP
          - TAX_DEFAULTING_STEP_DEFAULTING_SHIP_FROM_FIELD_IF_IT_IS_GOODS
          - TAX_DEFAULTING_STEP_DEFAULTING_SHIP_TO_FIELD_IF_IT_IS_GOODS
          - PLACE_OF_SUPPLY_NO_CONFLICT_ALL_DEFAULTED
          - PLACE_OF_SUPPLY_NO_CONFLICT_SINGLE_SUPPORTED_YES_COUNTRY
          - PLACE_OF_SUPPLY_NO_CONFLICT_SINGLE_SUPPORTED_YES_ZERO_COUNTRY
          - PLACE_OF_SUPPLY_CONFLICT_BETWEEN_CONCLUSIONS
          - PLACE_OF_SUPPLY_CONCLUSION_CORRECTED
          - PLACE_OF_SUPPLY_LOCATION_SET_BY_DEFAULT_CONCLUSION
          - PLACE_OF_SUPPLY_CONCLUSION_SET_BY_OOS_PRODUCT
          - PLACE_OF_SUPPLY_LOCATION_EMPTY_DEFAULT_APPLIED
          - PLACE_OF_SUPPLY_PROXIMITY_BASED_ON_SELLER_ESTABLISHMENT_LOCATION
          - PLACE_OF_SUPPLY_PROXIMITY_BASED_ON_BUYER_ESTABLISHMENT_LOCATION
          - PLACE_OF_SUPPLY_PROXIMITY_BASED_ON_SHIP_FROM_LOCATION
          - PLACE_OF_SUPPLY_PROXIMITY_BASED_ON_SHIP_TO_LOCATION
          - PLACE_OF_SUPPLY_PROXIMITY_FALLBACK_TO_FIRST_COUNTRY
          - PLACE_OF_SUPPLY_LOCATION_MISSING_FOR_SOME_COUNTRIES_DEFAULT_APPLIED
          - USE_AND_ENJOYMENT_OUTBOUND_TRUE_INBOUND_TRUE
          - USE_AND_ENJOYMENT_OUTBOUND_TRUE_INBOUND_NULL
          - USE_AND_ENJOYMENT_OUTBOUND_NULL_INBOUND_TRUE_TRANSACTION_TYPE_EXPORT
          - USE_AND_ENJOYMENT_OUTBOUND_NULL_INBOUND_TRUE_TRANSACTION_TYPE_NOT_EXPORT
          - DISREGARDED_TEST_PRODUCT
          - DISREGARDED_TEST_TERRITORY
          - NON_EXISTENT_TERRITORY_TAX_TYPE
          - NO_TAX_RATE_FOUND_SETTING_DEFAULT_RATE
          - NIL_TAX_DEDUCTION_PERCENTAGE_DUE_TO_PRIVATE_USE
          - NIL_TAX_DEDUCTION_PERCENTAGE_DUE_TO_SMALL_ENTERPRISE_EXEMPTION
          - RATE_TYPE_DOES_NOT_EXIST_FOR_THAT_COUNTRY
          - DIFF_TAXABLE_BASIS
          - DIFF_TAX_RATE
          - DIFF_TAX_ON_INVOICE
          - DIFF_TAX_ON_LINE
          - DIFF_PAYABLE_TAX
          - DIFF_DEDUCTIBLE_TAX
          - DIFF_GROSS_AMOUNT
          - DIFF_TAX_CODE
    ListEngineNoteResponse:
      type: object
      properties:
        engineNotes:
          type: array
          items:
            $ref: '#/components/schemas/EngineNote'
    CustomInstructionUsage:
      type: object
      properties:
        customInstructionId:
          type: string
          description: Custom instruction ID
          format: uuid
        customInstructionGroupId:
          type: string
          description: Custom instruction group that contains it
          format: uuid
        parentEntityType:
          type: string
          description: Type of the upper-level entity associated with the custom instruction
            group
          enum:
          - TAX_PROFILE
          - TAX_PROFILE_TEMPLATE
          - TAX_PROFILE_CATEGORY
          - TAX_PROFILE_CHAPTER
          - CUSTOM_TAX_PROFILE
          - INPUT_RULE
          - OUTPUT_RULE
          - TAXCODE
          - INVOICE_WORDING
          - OVERRIDE_MAPPING
          - TAX_TRANSACTION_MEMO
          - DIFF_TRANSACTION_MEMO
          - TERRITORY_RULE
        parentEntityId:
          type: string
          description: ID of the upper-level entity
          format: uuid
      description: Custom instructions where this engine note is used
    EngineNoteUsageResult:
      type: object
      properties:
        engineNoteId:
          type: string
          description: Engine note ID
          format: uuid
        used:
          type: boolean
          description: Indicates if the engine note is used anywhere
        instructions:
          type: array
          description: Instructions where this engine note is used
          items:
            $ref: '#/components/schemas/InstructionUsage'
        customInstructions:
          type: array
          description: Custom instructions where this engine note is used
          items:
            $ref: '#/components/schemas/CustomInstructionUsage'
    InstructionUsage:
      type: object
      properties:
        instructionId:
          type: string
          description: Instruction ID
          format: uuid
        instructionGroupId:
          type: string
          description: Instruction group that contains it
          format: uuid
        parentEntityType:
          type: string
          description: Type of the upper-level entity associated with the instruction
            group
          enum:
          - TAX_PROFILE
          - TAX_PROFILE_TEMPLATE
          - TAX_PROFILE_CATEGORY
          - TAX_PROFILE_CHAPTER
          - CUSTOM_TAX_PROFILE
          - INPUT_RULE
          - OUTPUT_RULE
          - TAXCODE
          - INVOICE_WORDING
          - OVERRIDE_MAPPING
          - TAX_TRANSACTION_MEMO
          - DIFF_TRANSACTION_MEMO
          - TERRITORY_RULE
        parentEntityId:
          type: string
          description: ID of the upper-level entity
          format: uuid
      description: Instructions where this engine note is used
    ListMailingResponse:
      type: object
      properties:
        mailings:
          type: array
          items:
            $ref: '#/components/schemas/Mailing'
    Mailing:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the mailing
          format: uuid
        subject:
          type: string
          description: Subject of the mail
        message:
          type: string
          description: Message of the mail
        name:
          type: string
          description: First name of mail sender
        surname:
          type: string
          description: Surname of the mail sender
        email:
          type: string
          description: Email of the user
        status:
          type: string
          description: Status of the mail
          example: SENT
        ccEmailList:
          type: string
          description: List of user's that can be carbon copied to the mail
        isHtml:
          type: boolean
          description: Flag that indicates if the email message contains HTML
        attachmentsList:
          type: string
          description: List of attachments that can be attached to the mail
        sentDate:
          type: string
          description: Sent date of the mail
          format: date-time
    ListCustomTaxCallCounterResponse:
      type: object
      properties:
        taxCallStatistics:
          type: array
          items:
            $ref: '#/components/schemas/TaxCallCounter'
    TaxCallCounter:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the tax call counter
          format: uuid
        calls:
          type: integer
          description: Tracks the number of aggregated calls
          format: int32
        year:
          type: integer
          description: Year of the tax call
          format: int32
        month:
          type: integer
          description: Month of the tax call
          format: int32
        type:
          type: string
          description: Tracks what type the tax call
          example: API
          enum:
          - SINGLE
          - BATCH
          - API
      description: List of tax call statistics
    ListTaxCallCounterResponse:
      type: object
      properties:
        taxCallStatistics:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/TaxCallCounterSpace'
          description: List of tax call statistics and space details by space ID
    TaxCallCounterSpace:
      type: object
      properties:
        entityId:
          type: string
          description: ID of the entity the space belongs to
          format: uuid
        entityName:
          type: string
          description: Name of the entity the space belongs to
        spaceName:
          type: string
          description: Name of the space
        counters:
          type: array
          items:
            $ref: '#/components/schemas/TaxCallCounter'
      description: List of tax call statistics and space details by space ID
    TaxCallCounterRequest:
      type: object
      properties:
        spaceIds:
          type: array
          description: List of space IDs for which to show tax call counter statistics
          items:
            type: string
            description: List of space IDs for which to show tax call counter statistics
            format: uuid
    AllTaxFieldResult:
      type: object
      properties:
        taxFields:
          type: array
          items:
            $ref: '#/components/schemas/TaxField'
        totalElements:
          type: integer
          description: Total number of items in the database that correspond to this
            search criteria
          format: int64
        currentPage:
          type: integer
          description: Current page
          format: int32
        pageSize:
          type: integer
          description: Response page size
          format: int32
    TaxField:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the tax field
          format: uuid
        name:
          type: string
          description: Name of the tax field
        dropdownFieldName:
          type: string
          description: Dropdown field name for the tax field
        hoverText:
          type: string
          description: Hover text for the tax field
        dataType:
          type: string
          description: Data type of the field
          enum:
          - STRING
          - DOUBLE
          - DATE
          - BOOLEAN
          - LIST
          - LOCATION
        dataSource:
          type: string
          description: Source of data for the field
        order:
          type: integer
          description: Order of the field
          format: int32
        adminInputRuleVisibility:
          type: string
          description: Visibility of the field for admin under input rule
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        customInputRuleVisibility:
          type: string
          description: Visibility of the field for custom settings under input rule
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        adminOutputRuleVisibility:
          type: string
          description: Visibility of the field for admin under output rule
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        customOutputRuleVisibility:
          type: string
          description: Visibility of the field for custom settings under output rule
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        adminTaxCodeVisibility:
          type: string
          description: Visibility of the field for admin for tax code
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        customTaxCodeVisibility:
          type: string
          description: Visibility of the field for custom settings for tax code
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        adminInvoiceWordingVisibility:
          type: string
          description: Visibility of the field for admin for invoice wording
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        customInvoiceWordingVisibility:
          type: string
          description: Visibility of the field for custom settings for invoice wording
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        overrideMappingVisibility:
          type: string
          description: Visibility of the field for override mapping
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        adminTaxTransactionMemoVisibility:
          type: string
          description: Visibility of the field for admin transaction memo tax rules
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        adminDiffTransactionMemoVisibility:
          type: string
          description: Visibility of the field for admin transaction memo diff rules
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        customTaxTransactionMemoVisibility:
          type: string
          description: Visibility of the field for custom transaction memo tax rules
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        customDiffTransactionMemoVisibility:
          type: string
          description: Visibility of the field for custom transaction memo diff rules
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        adminTerritoryRuleVisibility:
          type: string
          description: Visibility of the field for admin territory rules
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        customTerritoryRuleVisibility:
          type: string
          description: Visibility of the field for custom territory rules
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        adminTaxProfileVisibility:
          type: string
          description: Visibility of the field for admin tax profile conditions
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        customTaxProfileVisibility:
          type: string
          description: Visibility of the field for custom tax profile conditions
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        adminPeppolTaxCategoryVisibility:
          type: string
          description: Visibility of the field for admin PEPPOL tax categories
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        customPeppolTaxCategoryVisibility:
          type: string
          description: Visibility of the field for custom PEPPOL tax categories
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        adminVatexCodeVisibility:
          type: string
          description: Visibility of the field for admin VATEX codes
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        customVatexCodeVisibility:
          type: string
          description: Visibility of the field for custom VATEX codes
          enum:
          - NONE
          - CONDITION
          - ACTION
          - BOTH
        type:
          type: string
          description: Type of the field
          enum:
          - CLIENT_SUPPLIED
          - SYSTEM
          - LOCATION
          - ANY_TERRITORY
          - TAX_ID_LOCATION
    ListTaxFieldOptionsResponse:
      type: object
      properties:
        options:
          type: array
          items:
            $ref: '#/components/schemas/TaxFieldOption'
    TaxFieldOption:
      type: object
      properties:
        label:
          type: string
          description: Label of the tax field option to be shown in the select
        value:
          type: string
          description: Value of the tax field option to be sent to the server
        isAdmin:
          type: boolean
          description: Flag that indicates if the tax field option is an admin entity
      description: List of tax field options
    TaxFieldPatchRequest:
      type: object
      properties:
        dropdownFieldName:
          type: string
          description: Dropdown field name for the tax field
        hoverText:
          type: string
          description: Hover text for the tax field
        adminInputRuleVisibility:
          type: string
          description: Admin input rule visibility of the field
          example: CONDITION
        customInputRuleVisibility:
          type: string
          description: Custom input rule visibility of the field
          example: CONDITION
        adminOutputRuleVisibility:
          type: string
          description: Admin output rule visibility of the field
          example: CONDITION
        customOutputRuleVisibility:
          type: string
          description: Custom output rule visibility of the field
          example: CONDITION
        adminTaxCodeVisibility:
          type: string
          description: Admin tax code visibility of the field
          example: CONDITION
        customTaxCodeVisibility:
          type: string
          description: Custom tax code visibility of the field
          example: CONDITION
        adminInvoiceWordingVisibility:
          type: string
          description: Admin invoice wording visibility of the field
          example: CONDITION
        customInvoiceWordingVisibility:
          type: string
          description: Custom invoice wording visibility of the field
          example: CONDITION
        overrideMappingVisibility:
          type: string
          description: Override mapping visibility of the field
          example: CONDITION
        adminTaxTransactionMemoVisibility:
          type: string
          description: Admin TM tax rule visibility of the field
          example: CONDITION
        adminDiffTransactionMemoVisibility:
          type: string
          description: Admin TM diff rule visibility of the field
          example: CONDITION
        customTaxTransactionMemoVisibility:
          type: string
          description: Custom TM tax rule visibility of the field
          example: CONDITION
        customDiffTransactionMemoVisibility:
          type: string
          description: Custom TM diff rule visibility of the field
          example: CONDITION
        adminTerritoryRuleVisibility:
          type: string
          description: Admin territory rule visibility of the field
          example: CONDITION
        customTerritoryRuleVisibility:
          type: string
          description: Custom territory rule visibility of the field
          example: CONDITION
        adminTaxProfileVisibility:
          type: string
          description: Visibility of the field for admin tax profile conditions
          example: CONDITION
        customTaxProfileVisibility:
          type: string
          description: Visibility of the field for custom tax profile conditions
          example: CONDITION
        adminPeppolTaxCategoryVisibility:
          type: string
          description: Visibility of the field for admin PEPPOL tax category
          example: CONDITION
        customPeppolTaxCategoryVisibility:
          type: string
          description: Visibility of the field for custom PEPPOL tax category
          example: CONDITION
        adminVatexCodeVisibility:
          type: string
          description: Visibility of the field for admin VATEX codes
          example: CONDITION
        customVatexCodeVisibility:
          type: string
          description: Visibility of the field for custom VATEX codes
          example: CONDITION
    PeppolTaxCategory:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the PEPPOL tax category
          format: uuid
        code:
          type: string
          description: Code of the PEPPOL tax category
        name:
          type: string
          description: Name date of the PEPPOL tax category
      description: PEPPOL tax category of the PEPPOL tax category mapping
    PeppolTaxCategoryRequest:
      type: object
      properties:
        code:
          type: string
          description: Code for the PEPPOL tax category
        name:
          type: string
          description: Name for the PEPPOL tax category
    ListPeppolTaxCategoryResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/PeppolTaxCategory'
        totalElements:
          type: integer
          description: Total number of items in the database that correspond to this
            search criteria
          format: int64
        currentPage:
          type: integer
          description: Current page
          format: int32
        pageSize:
          type: integer
          description: Response page size
          format: int32
    CustomPeppolTaxCategory:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the PEPPOL tax category
          format: uuid
        code:
          type: string
          description: Code of the PEPPOL tax category
        name:
          type: string
          description: Name date of the PEPPOL tax category
      description: Custom PEPPOL tax category of the PEPPOL tax category mapping
    CustomPeppolTaxCategoryRequest:
      type: object
      properties:
        code:
          type: string
          description: Code for the PEPPOL tax category
        name:
          type: string
          description: Name for the PEPPOL tax category
    ListCustomPeppolTaxCategoryResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/CustomPeppolTaxCategory'
        totalElements:
          type: integer
          description: Total number of items in the database that correspond to this
            search criteria
          format: int64
        currentPage:
          type: integer
          description: Current page
          format: int32
        pageSize:
          type: integer
          description: Response page size
          format: int32
    Instruction:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the instruction
          format: uuid
        leadingField:
          $ref: '#/components/schemas/TaxFieldShort'
        operator:
          type: string
          description: Operator of the instruction
          enum:
          - EQUAL
          - NOT_EQUAL
          - LESS_THAN
          - LESS_THAN_OR_EQUAL
          - GREATER_THAN
          - GREATER_THAN_OR_EQUAL
          - CONTAINS
          - NOT_CONTAINS
          - IS_NULL
          - IS_NOT_NULL
          - IS_PART_OF_COUNTRY_GROUP
          - IS_NOT_PART_OF_COUNTRY_GROUP
          - IS_PART_OF_LOOKUP_TABLE
          - IS_NOT_PART_OF_LOOKUP_TABLE
        value:
          type: string
          description: Static value of the instruction when comparison tax field is
            not selected
        comparisonField:
          $ref: '#/components/schemas/TaxFieldShort'
        isMandatory:
          type: boolean
          description: Flag that indicates if the instruction is mandatory for the
            tax profiles
          example: false
    InstructionRequest:
      type: object
      properties:
        leadingFieldId:
          type: string
          description: Identifier for the leading instruction tax field
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174001
        operator:
          type: string
          description: Denotes the operator of the instruction - EQUAL, NOT_EQUAL
            etc.
          example: EQUAL
        value:
          type: string
          description: Static value for the instruction when it's not a tax field
        comparisonFieldId:
          type: string
          description: Identifier for the comparison instruction tax field
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174002
        isMandatory:
          type: boolean
          description: Flag that indicates if the instruction is mandatory for the
            tax profiles
          example: false
    ListInstructionResponse:
      type: object
      properties:
        instructions:
          type: array
          items:
            $ref: '#/components/schemas/Instruction'
    PeppolTaxCategoryMapping:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the PEPPOL tax category mapping
          format: uuid
        startDate:
          type: string
          description: Start date of the PEPPOL tax category mapping
          format: date
        endDate:
          type: string
          description: End date of the PEPPOL tax category mapping
          format: date
        order:
          type: integer
          description: Order of the PEPPOL tax category mapping
          format: int32
        logicalOperator:
          type: string
          description: Logical operator of the instruction groups
          enum:
          - AND
          - OR
        condition:
          type: string
          description: Summarized representation of the PEPPOL tax category mapping's
            condition
        instructionGroupsCount:
          type: integer
          description: Count of instructions groups associated with the PEPPOL tax
            category mapping
          format: int32
        peppolTaxCategory:
          $ref: '#/components/schemas/PeppolTaxCategory'
    PeppolTaxCategoryMappingRequest:
      type: object
      properties:
        peppolTaxCategoryId:
          type: string
          description: PEPPOL tax category ID
          format: uuid
        startDate:
          type: string
          description: Start date of the PEPPOL tax category mapping
          format: date
        endDate:
          type: string
          description: End date of the PEPPOL tax category mapping
          format: date
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
    ListPeppolTaxCategoryMappingResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/PeppolTaxCategoryMapping'
        totalElements:
          type: integer
          description: Total number of items in the database that correspond to this
            search criteria
          format: int64
        currentPage:
          type: integer
          description: Current page
          format: int32
        pageSize:
          type: integer
          description: Response page size
          format: int32
    PeppolTaxCategoryMappingPatchRequest:
      type: object
      properties:
        peppolTaxCategoryId:
          type: string
          description: PEPPOL tax category ID
          format: uuid
        startDate:
          type: string
          description: Start date of the PEPPOL tax category mapping
          format: date
        endDate:
          type: string
          description: End date of the PEPPOL tax category mapping
          format: date
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
        order:
          type: integer
          description: Order of the PEPPOL tax category mapping
          format: int32
    CustomPeppolTaxCategoryMapping:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the PEPPOL tax category mapping
          format: uuid
        startDate:
          type: string
          description: Start date of the PEPPOL tax category mapping
          format: date
        endDate:
          type: string
          description: End date of the PEPPOL tax category mapping
          format: date
        order:
          type: integer
          description: Order of the PEPPOL tax category mapping
          format: int32
        logicalOperator:
          type: string
          description: Logical operator of the instruction groups
          enum:
          - AND
          - OR
        condition:
          type: string
          description: Summarized representation of the PEPPOL tax category mapping's
            condition
        instructionGroupsCount:
          type: integer
          description: Count of instructions groups associated with the PEPPOL tax
            category mapping
          format: int32
        customPeppolTaxCategory:
          $ref: '#/components/schemas/CustomPeppolTaxCategory'
    CustomPeppolTaxCategoryMappingRequest:
      type: object
      properties:
        peppolTaxCategoryId:
          type: string
          description: PEPPOL tax category ID
          format: uuid
        startDate:
          type: string
          description: Start date of the PEPPOL tax category mapping
          format: date
        endDate:
          type: string
          description: End date of the PEPPOL tax category mapping
          format: date
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
    ListCustomPeppolTaxCategoryMappingResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/CustomPeppolTaxCategoryMapping'
        totalElements:
          type: integer
          description: Total number of items in the database that correspond to this
            search criteria
          format: int64
        currentPage:
          type: integer
          description: Current page
          format: int32
        pageSize:
          type: integer
          description: Response page size
          format: int32
    CustomPeppolTaxCategoryMappingPatchRequest:
      type: object
      properties:
        peppolTaxCategoryId:
          type: string
          description: PEPPOL tax category ID
          format: uuid
        startDate:
          type: string
          description: Start date of the PEPPOL tax category mapping
          format: date
        endDate:
          type: string
          description: End date of the PEPPOL tax category mapping
          format: date
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
        order:
          type: integer
          description: Order of the custom PEPPOL tax category mapping
          format: int32
    CustomTaxDeductionLimitation:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the deduction limitation
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174000
        taxProductId:
          type: string
          description: Tax product identifier
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174001
        percentage:
          type: number
          description: Percentage value of the deduction limitation
          example: 20
        startDate:
          type: string
          description: Start date of the deduction limitation
          format: date
        endDate:
          type: string
          description: End date of the deduction limitation
          format: date
        comment:
          type: string
          description: Comment about the deduction limitation
          example: Applies only during the fiscal year-end
        isCustomProduct:
          type: boolean
          description: Flag that indicates if the tax product is custom
          example: false
        productDetails:
          $ref: '#/components/schemas/ExtendedTaxProduct'
    ExtendedTaxProduct:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the entity
          format: uuid
        code:
          type: string
          description: Entity code
        displayCode:
          type: string
          description: Entity display code
        name:
          type: string
          description: Entity name
        description:
          type: string
          description: Entity description
        isInstallable:
          type: boolean
          description: Is installable flag
          default: false
        serviceType:
          type: string
          description: Entity service type
          example: GOODS
        classification:
          type: string
          description: Entity classification
          example: NEW_CAR
        isCustomProduct:
          type: boolean
          description: Indicates if the tax product is custom
        taxProductCategoryId:
          type: string
          description: Unique identifier of the tax product category
          format: uuid
        taxProductCategoryName:
          type: string
          description: Related tax product category name
        taxProductRegisterId:
          type: string
          description: Unique identifier of the tax product register
          format: uuid
        taxProductRegisterName:
          type: string
          description: Related tax product register name
      description: Linked tax product result
    CustomTaxDeductionLimitationRequest:
      type: object
      properties:
        taxProductId:
          type: string
          description: Identifier for the tax product associated with the deduction
            limitation
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174000
        percentage:
          type: number
          description: Percentage value of the deduction limitation
          example: 15.25
        startDate:
          type: string
          description: Start date of the deduction limitation
          format: date
        endDate:
          type: string
          description: End date of the deduction limitation
          format: date
        comment:
          type: string
          description: Comment about the deduction limitation
          example: Comment on the applicability and conditions
        isCustomProduct:
          type: boolean
          description: Flag that indicates if the tax product is custom
          example: false
    ListCustomTaxDeductionLimitationResponse:
      type: object
      properties:
        taxDeductionLimitations:
          type: array
          items:
            $ref: '#/components/schemas/CustomTaxDeductionLimitation'
    CustomTaxProductTaxRateMapping:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the tax product tax rate mapping
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174000
        taxProductId:
          type: string
          description: Tax product identifier
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174001
        taxRateCategoryId:
          type: string
          description: Tax rate category identifier
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174001
        startDate:
          type: string
          description: Start date of the membership
          format: date
        endDate:
          type: string
          description: End date of the membership
          format: date
        taxType:
          type: string
          description: Tax type of the tax product tax rate mapping
          enum:
          - ITX
          - PPT
          - WHT
        comment:
          type: string
          description: Mapping comment
        isCustomProduct:
          type: boolean
          description: Flag that indicates if the tax product tax rate mapping is
            custom
          example: false
        productDetails:
          $ref: '#/components/schemas/ExtendedTaxProduct'
    CustomTaxProductTaxRateMappingRequest:
      type: object
      properties:
        taxProductId:
          type: string
          description: Identifier for the tax product associated with the tax rate
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174001
        taxRateCategoryId:
          type: string
          description: Identifier for the tax rate category
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174002
        startDate:
          type: string
          description: Start date of the mapping
          format: date
        endDate:
          type: string
          description: End date of the mapping
          format: date
        taxType:
          type: string
          description: The tax type of the tax product tax rate mapping
        comment:
          type: string
          description: Mapping comment
        isCustomProduct:
          type: boolean
          description: Flag that indicates if the tax product is custom
          example: false
    ListCustomTaxProductTaxRateMappingResponse:
      type: object
      properties:
        taxProductTaxRateMappings:
          type: array
          items:
            $ref: '#/components/schemas/CustomTaxProductTaxRateMapping'
    TaxDeductionLimitation:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the deduction limitation
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174000
        taxProductId:
          type: string
          description: Tax product identifier
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174001
        percentage:
          type: number
          description: Percentage value of the deduction limitation
          example: 20
        startDate:
          type: string
          description: Start date of the deduction limitation
          format: date
        endDate:
          type: string
          description: End date of the deduction limitation
          format: date
        comment:
          type: string
          description: Comment about the deduction limitation
          example: Applies only during the fiscal year-end
        productDetails:
          $ref: '#/components/schemas/ExtendedTaxProduct'
    TaxDeductionLimitationRequest:
      type: object
      properties:
        taxProductId:
          type: string
          description: Identifier for the tax product associated with the deduction
            limitation
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174000
        percentage:
          type: number
          description: Percentage value of the deduction limitation
          example: 15.25
        startDate:
          type: string
          description: Start date of the deduction limitation
          format: date
        endDate:
          type: string
          description: End date of the deduction limitation
          format: date
        comment:
          type: string
          description: Comment about the deduction limitation
          example: Comment on the applicability and conditions
    ListTaxDeductionLimitationResponse:
      type: object
      properties:
        taxDeductionLimitations:
          type: array
          items:
            $ref: '#/components/schemas/TaxDeductionLimitation'
    TaxProductTaxRateMapping:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the tax product tax rate mapping
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174000
        taxProductId:
          type: string
          description: Tax product identifier
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174001
        taxRateCategoryId:
          type: string
          description: Tax rate category identifier
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174001
        startDate:
          type: string
          description: Start date of the membership
          format: date
        endDate:
          type: string
          description: End date of the membership
          format: date
        taxType:
          type: string
          description: Tax type of the tax product tax rate mapping
          enum:
          - ITX
          - PPT
          - WHT
        comment:
          type: string
          description: Mapping comment
        productDetails:
          $ref: '#/components/schemas/ExtendedTaxProduct'
    TaxProductTaxRateMappingRequest:
      type: object
      properties:
        taxProductId:
          type: string
          description: Identifier for the tax product associated with the tax rate
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174001
        taxRateCategoryId:
          type: string
          description: Identifier for the tax rate category
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174002
        startDate:
          type: string
          description: Start date of the mapping
          format: date
        endDate:
          type: string
          description: End date of the mapping
          format: date
        taxType:
          type: string
          description: The tax type of the tax product tax rate mapping
        comment:
          type: string
          description: Mapping comment
    ListTaxProductTaxRateMappingResponse:
      type: object
      properties:
        taxProductTaxRateMappings:
          type: array
          items:
            $ref: '#/components/schemas/TaxProductTaxRateMapping'
    Rule:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the rule
          format: uuid
        comment:
          type: string
          description: Comment for the rule
        startDate:
          type: string
          description: Start date of the rule
          format: date
        endDate:
          type: string
          description: End date of the rule
          format: date
        order:
          type: integer
          description: Order of the rule
          format: int32
        logicalOperator:
          type: string
          description: Logical operator of the instruction groups
          enum:
          - AND
          - OR
        condition:
          type: string
          description: Summarized representation of the rule's condition
        action:
          type: string
          description: Summarized representation of the rule's actions
        instructionGroupsCount:
          type: integer
          description: Count of instructions groups associated with the rule
          format: int32
    RuleRequest:
      type: object
      properties:
        comment:
          type: string
          description: Comment for the rule
        startDate:
          type: string
          description: Start date of the rule
          format: date
        endDate:
          type: string
          description: End date of the rule
          format: date
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
    ListRuleResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/Rule'
        totalElements:
          type: integer
          description: Total number of items in the database that correspond to this
            search criteria
          format: int64
        currentPage:
          type: integer
          description: Current page
          format: int32
        pageSize:
          type: integer
          description: Response page size
          format: int32
    RulePatchRequest:
      type: object
      properties:
        comment:
          type: string
          description: Comment for the rule
        startDate:
          type: string
          description: Start date of the rule
          format: date
        endDate:
          type: string
          description: End date of the rule
          format: date
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
        order:
          type: integer
          description: Order of the rule
          format: int32
    TaxCode:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the rule
          format: uuid
        comment:
          type: string
          description: Comment for the rule
        startDate:
          type: string
          description: Start date of the rule
          format: date
        endDate:
          type: string
          description: End date of the rule
          format: date
        order:
          type: integer
          description: Order of the rule
          format: int32
        logicalOperator:
          type: string
          description: Logical operator of the instruction groups
          enum:
          - AND
          - OR
        condition:
          type: string
          description: Summarized representation of the rule's condition
        action:
          type: string
          description: Summarized representation of the rule's actions
        instructionGroupsCount:
          type: integer
          description: Count of instructions groups associated with the rule
          format: int32
        jurisdiction:
          type: string
          description: Jurisdiction of the tax code
          enum:
          - COUNTRY
          - SUBDIVISION
    TaxCodeRequest:
      type: object
      properties:
        comment:
          type: string
          description: Comment for the rule
        startDate:
          type: string
          description: Start date of the rule
          format: date
        endDate:
          type: string
          description: End date of the rule
          format: date
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
        jurisdiction:
          type: string
          description: Jurisdiction of the tax code
          enum:
          - COUNTRY
          - SUBDIVISION
    ListTaxCodeResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/TaxCode'
        totalElements:
          type: integer
          description: Total number of items in the database that correspond to this
            search criteria
          format: int64
        currentPage:
          type: integer
          description: Current page
          format: int32
        pageSize:
          type: integer
          description: Response page size
          format: int32
    TaxCodePatchRequest:
      type: object
      properties:
        comment:
          type: string
          description: Comment for the rule
        startDate:
          type: string
          description: Start date of the rule
          format: date
        endDate:
          type: string
          description: End date of the rule
          format: date
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
        jurisdiction:
          type: string
          description: Jurisdiction of the tax code
          enum:
          - COUNTRY
          - SUBDIVISION
        order:
          type: integer
          description: Order of the rule
          format: int32
    CustomRule:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the rule
          format: uuid
        comment:
          type: string
          description: Comment for the rule
        startDate:
          type: string
          description: Start date of the rule
          format: date
        endDate:
          type: string
          description: End date of the rule
          format: date
        order:
          type: integer
          description: Order of the rule
          format: int32
        logicalOperator:
          type: string
          description: Logical operator of the instruction groups
          enum:
          - AND
          - OR
        condition:
          type: string
          description: Summarized representation of the rule's condition
        action:
          type: string
          description: Summarized representation of the rule's actions
        instructionGroupsCount:
          type: integer
          description: Count of instructions groups associated with the rule
          format: int32
    CustomRuleRequest:
      type: object
      properties:
        comment:
          type: string
          description: Comment for the rule
        startDate:
          type: string
          description: Start date of the rule
          format: date
        endDate:
          type: string
          description: End date of the rule
          format: date
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
    ListCustomRuleResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/CustomRule'
        totalElements:
          type: integer
          description: Total number of items in the database that correspond to this
            search criteria
          format: int64
        currentPage:
          type: integer
          description: Current page
          format: int32
        pageSize:
          type: integer
          description: Response page size
          format: int32
    CustomRulePatchRequest:
      type: object
      properties:
        comment:
          type: string
          description: Comment for the rule
        startDate:
          type: string
          description: Start date of the rule
          format: date
        endDate:
          type: string
          description: End date of the rule
          format: date
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
        order:
          type: integer
          description: Order of the rule
          format: int32
    CustomTaxCode:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the rule
          format: uuid
        comment:
          type: string
          description: Comment for the rule
        startDate:
          type: string
          description: Start date of the rule
          format: date
        endDate:
          type: string
          description: End date of the rule
          format: date
        order:
          type: integer
          description: Order of the rule
          format: int32
        logicalOperator:
          type: string
          description: Logical operator of the instruction groups
          enum:
          - AND
          - OR
        condition:
          type: string
          description: Summarized representation of the rule's condition
        action:
          type: string
          description: Summarized representation of the rule's actions
        instructionGroupsCount:
          type: integer
          description: Count of instructions groups associated with the rule
          format: int32
        jurisdiction:
          type: string
          description: Jurisdiction of the tax code
          enum:
          - COUNTRY
          - SUBDIVISION
    CustomTaxCodeRequest:
      type: object
      properties:
        comment:
          type: string
          description: Comment for the rule
        startDate:
          type: string
          description: Start date of the rule
          format: date
        endDate:
          type: string
          description: End date of the rule
          format: date
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
        jurisdiction:
          type: string
          description: Jurisdiction of the tax code
          enum:
          - COUNTRY
          - SUBDIVISION
    listCustomTaxCodeResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/CustomTaxCode'
        totalElements:
          type: integer
          description: Total number of items in the database that correspond to this
            search criteria
          format: int64
        currentPage:
          type: integer
          description: Current page
          format: int32
        pageSize:
          type: integer
          description: Response page size
          format: int32
    CustomTaxCodePatchRequest:
      type: object
      properties:
        comment:
          type: string
          description: Comment for the rule
        startDate:
          type: string
          description: Start date of the rule
          format: date
        endDate:
          type: string
          description: End date of the rule
          format: date
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
        jurisdiction:
          type: string
          description: Jurisdiction of the tax code
          enum:
          - COUNTRY
          - SUBDIVISION
        order:
          type: integer
          description: Order of the tax code
          format: int32
    OverrideMapping:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the rule
          format: uuid
        comment:
          type: string
          description: Comment for the rule
        startDate:
          type: string
          description: Start date of the rule
          format: date
        endDate:
          type: string
          description: End date of the rule
          format: date
        order:
          type: integer
          description: Order of the rule
          format: int32
        logicalOperator:
          type: string
          description: Logical operator of the instruction groups
          enum:
          - AND
          - OR
        condition:
          type: string
          description: Summarized representation of the rule's condition
        action:
          type: string
          description: Summarized representation of the rule's actions
        instructionGroupsCount:
          type: integer
          description: Count of instructions groups associated with the rule
          format: int32
        taxProduct:
          $ref: '#/components/schemas/ExtendedTaxProduct'
    ListOverrideMappingResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/OverrideMapping'
        totalElements:
          type: integer
          description: Total number of items in the database that correspond to this
            search criteria
          format: int64
        currentPage:
          type: integer
          description: Current page
          format: int32
        pageSize:
          type: integer
          description: Response page size
          format: int32
    EntityInstruction:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the entity instruction
          format: uuid
        entityType:
          type: string
          description: Entity type of the instruction
          enum:
          - SELLER_IS
          - BUYER_IS
          - SELLER_AND_BUYER_ARE_BOTH
        operator:
          type: string
          description: Operator of the instruction
          enum:
          - ESTABLISHED_IN
          - NOT_ESTABLISHED_IN
          - VAT_REGISTERED_WITH_ANY_REGULAR_TYPE_INCLUDING_ESTABLISHMENT_IN
          - VAT_REGISTERED_WITH_ANY_REGULAR_TYPE_BUT_NOT_ESTABLISHED_IN
          - VAT_REGISTERED_WITHOUT_VAT_REP_IN
          - VAT_REGISTERED_WITH_VAT_REP_IN
          - VAT_REGISTERED_WITH_OSS_ACTIVATED_IN
          - REGISTERED_WITH_NEUOSS_TAX_ID_TYPE_IN
          - REGISTERED_WITH_IOSS_TAX_ID_TYPE_IN
          - REGISTERED_WITH_VOLUNTARY_TAX_ID_IN
          - OPTING_OUT_OF_NON_ESTABLISHED_REVERSE_CHARGE_SCHEME_IN
          - NOT_VAT_REGISTERED_WITH_ANY_REGULAR_TYPE_EXCLUDING_ESTABLISHMENT_IN
          - HAVING_VALID_TAX_ID_FORMAT
          - NOT_VAT_REGISTERED_WITH_ANY_REGULAR_TYPE_INCLUDING_ESTABLISHMENT_IN
        taxIdClassification:
          type: string
          description: Tax ID classification of the instruction
          enum:
          - TTID
          - MTID
          - TTID_MTID
          - ALL
        location:
          type: string
          description: Location of the instruction
          enum:
          - TRANSACTION_LOCATION_LOCATION
          - SHIP_FROM_LOCATION
          - SHIP_TO_LOCATION
          - SELLER_ESTABLISHMENT_LOCATION
          - BUYER_ESTABLISHMENT_LOCATION
          - SELLER_CORE_LOCATION
          - BUYER_CORE_LOCATION
          - LOCATION_IMMOVABLE_GOODS_LOCATION
          - LOCATION_INSTALLATION_LOCATION
          - LOCATION_DEPARTURE_TRANSPORT_LOCATION
          - LOCATION_ARRIVAL_TRANSPORT_LOCATION
          - LOCATION_EFFECTIVE_CONSUMPTION_LOCATION
          - LOCATION_PUT_AT_DISPOSAL_LOCATION
          - LOCATION_PHYSICAL_SERVICE_LOCATION
          - ANY_EU_COUNTRY
          - ANY_EU_COUNTRY_NOT_EQUAL_TO_THE_SHIP_FROM_LOCATION
          - ANY_EU_COUNTRY_NOT_EQUAL_TO_THE_SHIP_TO_LOCATION
          - ANY_EU_COUNTRY_NOT_EQUAL_TO_THE_SHIP_TO_AND_SHIP_FROM_LOCATION
          - ANY_EU_COUNTRY_EQUAL_TO_THE_SHIP_TO_LOCATION
          - ANY_EU_COUNTRY_EQUAL_TO_THE_SHIP_FROM_LOCATION
          - ANY_NON_EU_COUNTRY
          - VALUE
        territoryId:
          type: string
          description: Territory ID when the location is 'VALUE'
          format: uuid
        isMandatory:
          type: boolean
          description: Flag that indicates if the instruction is mandatory for the
            tax profiles
          example: false
    EntityInstructionRequest:
      type: object
      properties:
        entityType:
          type: string
          description: Entity type of the instruction
          enum:
          - SELLER_IS
          - BUYER_IS
          - SELLER_AND_BUYER_ARE_BOTH
        operator:
          type: string
          description: Operator of the instruction
          enum:
          - ESTABLISHED_IN
          - NOT_ESTABLISHED_IN
          - VAT_REGISTERED_WITH_ANY_REGULAR_TYPE_INCLUDING_ESTABLISHMENT_IN
          - VAT_REGISTERED_WITH_ANY_REGULAR_TYPE_BUT_NOT_ESTABLISHED_IN
          - VAT_REGISTERED_WITHOUT_VAT_REP_IN
          - VAT_REGISTERED_WITH_VAT_REP_IN
          - VAT_REGISTERED_WITH_OSS_ACTIVATED_IN
          - REGISTERED_WITH_NEUOSS_TAX_ID_TYPE_IN
          - REGISTERED_WITH_IOSS_TAX_ID_TYPE_IN
          - REGISTERED_WITH_VOLUNTARY_TAX_ID_IN
          - OPTING_OUT_OF_NON_ESTABLISHED_REVERSE_CHARGE_SCHEME_IN
          - NOT_VAT_REGISTERED_WITH_ANY_REGULAR_TYPE_EXCLUDING_ESTABLISHMENT_IN
          - HAVING_VALID_TAX_ID_FORMAT
          - NOT_VAT_REGISTERED_WITH_ANY_REGULAR_TYPE_INCLUDING_ESTABLISHMENT_IN
        taxIdClassification:
          type: string
          description: Tax ID classification of the instruction
          enum:
          - TTID
          - MTID
          - TTID_MTID
          - ALL
        location:
          type: string
          description: Location of the instruction
          enum:
          - TRANSACTION_LOCATION_LOCATION
          - SHIP_FROM_LOCATION
          - SHIP_TO_LOCATION
          - SELLER_ESTABLISHMENT_LOCATION
          - BUYER_ESTABLISHMENT_LOCATION
          - SELLER_CORE_LOCATION
          - BUYER_CORE_LOCATION
          - LOCATION_IMMOVABLE_GOODS_LOCATION
          - LOCATION_INSTALLATION_LOCATION
          - LOCATION_DEPARTURE_TRANSPORT_LOCATION
          - LOCATION_ARRIVAL_TRANSPORT_LOCATION
          - LOCATION_EFFECTIVE_CONSUMPTION_LOCATION
          - LOCATION_PUT_AT_DISPOSAL_LOCATION
          - LOCATION_PHYSICAL_SERVICE_LOCATION
          - ANY_EU_COUNTRY
          - ANY_EU_COUNTRY_NOT_EQUAL_TO_THE_SHIP_FROM_LOCATION
          - ANY_EU_COUNTRY_NOT_EQUAL_TO_THE_SHIP_TO_LOCATION
          - ANY_EU_COUNTRY_NOT_EQUAL_TO_THE_SHIP_TO_AND_SHIP_FROM_LOCATION
          - ANY_EU_COUNTRY_EQUAL_TO_THE_SHIP_TO_LOCATION
          - ANY_EU_COUNTRY_EQUAL_TO_THE_SHIP_FROM_LOCATION
          - ANY_NON_EU_COUNTRY
          - VALUE
        territoryId:
          type: string
          description: Territory ID when the location is 'VALUE'
          format: uuid
        isMandatory:
          type: boolean
          description: Flag that indicates if the instruction is mandatory for the
            tax profiles
          example: false
    ListEntityInstructionResponse:
      type: object
      properties:
        entityInstructions:
          type: array
          description: List of entity instructions
          items:
            $ref: '#/components/schemas/EntityInstruction'
    SourcingRuleItem:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the sourcing rule item
          format: uuid
        taxField:
          $ref: '#/components/schemas/TaxFieldShort'
        remarks:
          type: string
          description: Remarks about the sourcing rule item
          example: Remarks on the applicability and conditions
        order:
          type: integer
          description: Order of the sourcing rule item
          format: int32
    SourcingRuleItemRequest:
      type: object
      properties:
        taxFieldId:
          type: string
          description: Identifier for the tax field
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174001
        remarks:
          type: string
          description: Remarks about the sourcing rule item
          example: Remarks on the applicability and conditions
        order:
          type: integer
          description: Order of the sourcing rule item
          format: int32
    ListSourcingRuleItemResponse:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/CustomSourcingRuleItem'
    SourcingRule:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the sourcing rule
          format: uuid
        order:
          type: integer
          description: Order of the sourcing rule
          format: int32
        taxField:
          $ref: '#/components/schemas/TaxFieldShort'
        itemsCount:
          type: integer
          description: The number of items in the sourcing rule
          format: int32
    SourcingRuleRequest:
      type: object
      properties:
        taxFieldId:
          type: string
          description: Identifier for the tax field
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174001
        order:
          type: integer
          description: Order of the sourcing rule. Used only in patch requests
          format: int32
    ListSourcingRuleResponse:
      type: object
      properties:
        sourcingRules:
          type: array
          items:
            $ref: '#/components/schemas/SourcingRule'
    CustomSourcingRuleItem:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the sourcing rule item
          format: uuid
        taxField:
          $ref: '#/components/schemas/TaxFieldShort'
        remarks:
          type: string
          description: Remarks about the sourcing rule item
          example: Remarks on the applicability and conditions
        order:
          type: integer
          description: Order of the sourcing rule item
          format: int32
    CustomSourcingRuleItemRequest:
      type: object
      properties:
        taxFieldId:
          type: string
          description: Identifier for the tax field
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174001
        remarks:
          type: string
          description: Remarks about the sourcing rule item
          example: Remarks on the applicability and conditions
        order:
          type: integer
          description: Order of the sourcing rule item
          format: int32
    CustomSourcingRule:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the sourcing rule
          format: uuid
        order:
          type: integer
          description: Order of the sourcing rule
          format: int32
        taxField:
          $ref: '#/components/schemas/TaxFieldShort'
        itemsCount:
          type: integer
          description: The number of items in the sourcing rule
          format: int32
    CustomSourcingRuleRequest:
      type: object
      properties:
        taxFieldId:
          type: string
          description: Identifier for the tax field
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174001
        order:
          type: integer
          description: Order of the sourcing rule. Used only in patch requests
          format: int32
    ListCustomSourcingRuleResponse:
      type: object
      properties:
        sourcingRules:
          type: array
          items:
            $ref: '#/components/schemas/CustomSourcingRule'
    TaxProductCategory:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the category
          format: uuid
        code:
          type: string
          description: Code of the category
        displayCode:
          type: string
          description: Display code of the category
        name:
          type: string
          description: Name of the category
        productsCount:
          type: integer
          description: Count of the products in the category
          format: int32
        isTest:
          type: boolean
          description: Is test category?
          default: false
    TaxProductCategoryRequest:
      type: object
      properties:
        code:
          type: string
          description: Code of the category
        name:
          type: string
          description: Name of the category
        isTest:
          type: boolean
          description: Is test category?
          default: false
    ListTaxProductCategoryResponse:
      type: object
      properties:
        categories:
          type: array
          items:
            $ref: '#/components/schemas/TaxProductCategory'
    TaxProductRegister:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the register
          format: uuid
        name:
          type: string
          description: Name of the register
        prefix:
          type: string
          description: Prefix of the register
        taxTypes:
          type: string
          description: Comma-separated tax types
          example: ITX
        isCodeLookupEnabled:
          type: boolean
          description: Enable code lookup?
        productCodeDelimiter:
          type: string
          description: Product code delimiter
          example: UNDERSCORE
        categoryCodeLength:
          type: integer
          description: Length of the category code
          format: int32
          example: 4
        productCodeLength:
          type: integer
          description: Length of the product code
          format: int32
          example: 4
        subProductCodeLength:
          type: integer
          description: Length of the sub-product code
          format: int32
          example: 4
        taxProductCategoriesCount:
          type: integer
          description: Count of the tax product categories in the register
          format: int32
          example: 4
        isTest:
          type: boolean
          description: Is test register?
          default: false
    TaxProductRegisterRequest:
      type: object
      properties:
        name:
          type: string
          description: Name of the register
        prefix:
          type: string
          description: Prefix of the register
        taxTypes:
          type: array
          description: Comma-separated tax types for the register
          items:
            type: string
            description: Comma-separated tax types for the register
        isCodeLookupEnabled:
          type: boolean
          description: Enable code lookup?
        productCodeDelimiter:
          type: string
          description: Product code delimiter
          example: UNDERSCORE
        categoryCodeLength:
          type: integer
          description: Length of the category code
          format: int32
          example: 4
        productCodeLength:
          type: integer
          description: Length of the product code
          format: int32
          example: 4
        subProductCodeLength:
          type: integer
          description: Length of the sub-product code
          format: int32
          example: 4
        isTest:
          type: boolean
          description: Is test register?
          default: false
    ListTaxProductResponse:
      type: object
      properties:
        products:
          type: array
          items:
            $ref: '#/components/schemas/TaxProduct'
    TaxProduct:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the entity
          format: uuid
        code:
          type: string
          description: Entity code
        displayCode:
          type: string
          description: Entity display code
        name:
          type: string
          description: Entity name
        description:
          type: string
          description: Entity description
        isInstallable:
          type: boolean
          description: Is installable flag
          default: false
        serviceType:
          type: string
          description: Entity service type
          example: GOODS
        classification:
          type: string
          description: Entity classification
          example: NEW_CAR
        subProductsCount:
          type: integer
          description: Count of sub-products
          format: int32
        hasTaxDeductionLimitationInAnyTerritory:
          type: boolean
          description: A flag indicating whether the product has any tax deduction
            limitation mappings in any territories
        hasTaxProductTaxRateMappingInAnyTerritory:
          type: boolean
          description: A flag indicating whether the product has any tax product tax
            rate mappings in any territories
        linkedTaxProduct:
          $ref: '#/components/schemas/ExtendedTaxProduct'
        isTest:
          type: boolean
          description: Is test tax product?
          default: false
    ListTaxProductRegisterResponse:
      type: object
      properties:
        registers:
          type: array
          items:
            $ref: '#/components/schemas/TaxProductRegister'
    TaxProductRegisterPatchRequest:
      type: object
      properties:
        name:
          type: string
          description: Name of the register
        prefix:
          type: string
          description: Prefix of the register
        taxTypes:
          type: array
          description: Comma-separated tax types for the register
          items:
            type: string
            description: Comma-separated tax types for the register
        productCodeDelimiter:
          type: string
          description: Product code delimiter
          example: UNDERSCORE
        isTest:
          type: boolean
          description: Is test register?
          default: false
    TaxProductRequest:
      type: object
      properties:
        code:
          type: string
          description: Entity code
        name:
          type: string
          description: Entity name
        description:
          type: string
          description: Entity description
        isInstallable:
          type: boolean
          description: Is installable flag
        serviceType:
          type: string
          description: Entity service type
          example: GOODS
        classification:
          type: string
          description: Entity product classification
          example: NEW_CAR
        linkedTaxProductId:
          type: string
          description: The ID of a linked tax product
          format: uuid
        isTest:
          type: boolean
          description: Is test entity?
          default: false
    CustomTaxProductCategory:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the category
          format: uuid
        code:
          type: string
          description: Code of the category
        displayCode:
          type: string
          description: Display code of the category
        name:
          type: string
          description: Name of the category
        productsCount:
          type: integer
          description: Count of the products in the category
          format: int32
    CustomTaxProductCategoryRequest:
      type: object
      properties:
        code:
          type: string
          description: Code of the category
        name:
          type: string
          description: Name of the category
    ListCustomTaxProductCategory:
      type: object
      properties:
        categories:
          type: array
          items:
            $ref: '#/components/schemas/CustomTaxProductCategory'
    CustomTaxProductRegister:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the register
          format: uuid
        name:
          type: string
          description: Name of the register
        prefix:
          type: string
          description: Prefix of the register
        taxTypes:
          type: string
          description: Comma-separated tax types
          example: ITX
        isCodeLookupEnabled:
          type: boolean
          description: Enable code lookup?
        productCodeDelimiter:
          type: string
          description: Product code delimiter
          example: UNDERSCORE
        categoryCodeLength:
          type: integer
          description: Length of the category code
          format: int32
          example: 4
        productCodeLength:
          type: integer
          description: Length of the product code
          format: int32
          example: 4
        subProductCodeLength:
          type: integer
          description: Length of the sub-product code
          format: int32
          example: 4
        taxProductCategoriesCount:
          type: integer
          description: Count of the tax product categories in the register
          format: int32
          example: 4
    CustomTaxProductRegisterRequest:
      type: object
      properties:
        name:
          type: string
          description: Name of the register
        prefix:
          type: string
          description: Prefix of the register
        taxTypes:
          type: array
          description: Comma-separated tax types for the register
          items:
            type: string
            description: Comma-separated tax types for the register
        isCodeLookupEnabled:
          type: boolean
          description: Enable code lookup?
        productCodeDelimiter:
          type: string
          description: Product code delimiter
          example: UNDERSCORE
        categoryCodeLength:
          type: integer
          description: Length of the category code
          format: int32
          example: 4
        productCodeLength:
          type: integer
          description: Length of the product code
          format: int32
          example: 4
        subProductCodeLength:
          type: integer
          description: Length of the sub-product code
          format: int32
          example: 4
    ListCustomTaxProductRegisterResponse:
      type: object
      properties:
        registers:
          type: array
          items:
            $ref: '#/components/schemas/CustomTaxProductRegister'
    CustomTaxProduct:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the entity
          format: uuid
        code:
          type: string
          description: Entity code
        displayCode:
          type: string
          description: Entity display code
        name:
          type: string
          description: Entity name
        description:
          type: string
          description: Entity description
        isInstallable:
          type: boolean
          description: Is installable flag
          default: false
        serviceType:
          type: string
          description: Entity service type
          example: GOODS
        classification:
          type: string
          description: Entity classification
          example: NEW_CAR
        subProductsCount:
          type: integer
          description: Count of sub-products
          format: int32
        hasTaxDeductionLimitationInAnyTerritory:
          type: boolean
          description: A flag indicating whether the product has any tax deduction
            limitation mappings in any territories
        hasTaxProductTaxRateMappingInAnyTerritory:
          type: boolean
          description: A flag indicating whether the product has any tax product tax
            rate mappings in any territories
        linkedTaxProduct:
          $ref: '#/components/schemas/ExtendedTaxProduct'
    ListCustomTaxProductResponse:
      type: object
      properties:
        products:
          type: array
          items:
            $ref: '#/components/schemas/CustomTaxProduct'
    CustomTaxProductRegisterPatchRequest:
      type: object
      properties:
        name:
          type: string
          description: Name of the register
        prefix:
          type: string
          description: Prefix of the register
        taxTypes:
          type: array
          description: Comma-separated tax types for the register
          items:
            type: string
            description: Comma-separated tax types for the register
        productCodeDelimiter:
          type: string
          description: Product code delimiter
          example: UNDERSCORE
    CustomTaxProductRequest:
      type: object
      properties:
        code:
          type: string
          description: Entity code
        name:
          type: string
          description: Entity name
        description:
          type: string
          description: Entity description
        isInstallable:
          type: boolean
          description: Is installable flag
        serviceType:
          type: string
          description: Entity service type
          example: GOODS
        classification:
          type: string
          description: Entity product classification
          example: NEW_CAR
        linkedTaxProductId:
          type: string
          description: The ID of a linked tax product
          format: uuid
        isCustomProduct:
          type: boolean
          description: Is the linked product a custom product?
          default: false
    CustomTaxProfile:
      type: object
      properties:
        id:
          type: string
          description: ID of the custom tax profile
          format: uuid
          example: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
        name:
          type: string
          description: Name of the custom tax profile
          example: Custom Profile 1
        description:
          type: string
          description: Description of the custom tax profile
          example: Description for custom profile 1
        order:
          type: integer
          description: Order of the custom tax profile
          format: int32
        taxProfileCategoryId:
          type: string
          description: ID of the associated tax profile category
          format: uuid
        taxProfileTemplateId:
          type: string
          description: ID of the tax profile template
          format: uuid
          example: 74d3e63d-09be-432a-aa7a-7b686ece0041
        startDate:
          type: string
          description: Start date of the custom tax profile
          example: 2024-01-01
        endDate:
          type: string
          description: End date of the custom tax profile
          example: 2024-12-31
        active:
          type: boolean
          description: Is the custom tax profile active
          example: true
        logicalOperator:
          type: string
          description: Logical operator of the instruction groups
          enum:
          - AND
          - OR
        condition:
          type: string
          description: Summarized representation of the tax profile's condition
        action:
          type: string
          description: Summarized representation of the tax profile's actions
        instructionGroupsCount:
          type: integer
          description: Count of instruction groups associated with the custom tax
            profile
          format: int32
      description: List of custom tax profiles
    ListCustomTaxProfileResponse:
      type: object
      properties:
        taxProfiles:
          type: array
          description: List of custom tax profiles
          items:
            $ref: '#/components/schemas/CustomTaxProfile'
    CustomTaxProfileRequest:
      type: object
      properties:
        name:
          type: string
          description: Name of the custom tax profile
        description:
          type: string
          description: Description of the custom tax profile
        order:
          type: integer
          description: Order of the custom tax profile
          format: int32
        legalReference:
          type: string
          description: Legal reference of the custom tax profile
        startDate:
          type: string
          description: Start date of the custom tax profile
          format: date
        endDate:
          type: string
          description: End date of the custom tax profile
          format: date
        taxProfileTemplateId:
          type: string
          description: Template ID of the custom tax profile
          format: uuid
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
        active:
          type: boolean
          description: Flag to indicate if the custom tax profile is active
          default: false
    CustomTaxProfileWithTerritoryResult:
      type: object
      properties:
        id:
          type: string
          description: ID of the custom tax profile
          format: uuid
          example: 8d64d87a-06d6-4cb2-b6bf-5c7492f83499
        name:
          type: string
          description: Name of the custom tax profile
          example: Custom Profile 1
        description:
          type: string
          description: Description of the custom tax profile
          example: Description for custom profile 1
        order:
          type: integer
          description: Order of the custom tax profile
          format: int32
        taxProfileCategoryId:
          type: string
          description: ID of the associated tax profile category
          format: uuid
        taxProfileTemplateId:
          type: string
          description: ID of the tax profile template
          format: uuid
          example: 74d3e63d-09be-432a-aa7a-7b686ece0041
        startDate:
          type: string
          description: Start date of the custom tax profile
          example: 2024-01-01
        endDate:
          type: string
          description: End date of the custom tax profile
          example: 2024-12-31
        active:
          type: boolean
          description: Is the custom tax profile active
          example: true
        logicalOperator:
          type: string
          description: Logical operator of the instruction groups
          enum:
          - AND
          - OR
        condition:
          type: string
          description: Summarized representation of the tax profile's condition
        action:
          type: string
          description: Summarized representation of the tax profile's actions
        instructionGroupsCount:
          type: integer
          description: Count of instruction groups associated with the custom tax
            profile
          format: int32
        territory:
          $ref: '#/components/schemas/TaxProfileTerritory'
      description: List of all tax profiles with territory information
    TaxProfileTerritory:
      type: object
      properties:
        id:
          type: string
          description: ID of the territory
          format: uuid
        alpha2:
          type: string
          description: Alpha 2 ISO code of the territory
        shortName:
          type: string
          description: Short name of the territory
      description: Territory information of the tax profile
    AllCustomTaxProfileWithTerritoryResult:
      type: object
      properties:
        taxProfiles:
          type: array
          description: List of all tax profiles with territory information
          items:
            $ref: '#/components/schemas/CustomTaxProfileWithTerritoryResult'
    TaxProfileCategory:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the tax profile category
          format: uuid
        name:
          type: string
          description: Name of the tax profile category
        description:
          type: string
          description: Description of the tax profile category
        order:
          type: integer
          description: Order of the tax profile category
          format: int32
        logicalOperator:
          type: string
          description: Logical operator of the instruction groups
          enum:
          - AND
          - OR
        condition:
          type: string
          description: Summarized representation of the tax profile category's condition
        taxProfileCategoriesCount:
          type: integer
          description: Count of nested tax profile categories associated with the
            tax profile category
          format: int32
        taxProfileTemplatesCount:
          type: integer
          description: Count of tax profile templates associated with the tax profile
            category
          format: int32
        taxProfilesCount:
          type: integer
          description: Count of tax profiles associated with the tax profile category
          format: int32
        customTaxProfilesCount:
          type: integer
          description: Count of tax profile templates associated with the tax profile
            category
          format: int32
        instructionGroupsCount:
          type: integer
          description: Count of instruction groups associated with the tax profile
            category
          format: int32
    TaxProfileCategoryRequest:
      type: object
      properties:
        name:
          type: string
          description: Name of the tax profile category
        description:
          type: string
          description: Description of the tax profile category
        order:
          type: integer
          description: Order of the tax profile category
          format: int32
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
    ListTaxProfileCategoryResponse:
      type: object
      properties:
        taxProfileCategories:
          type: array
          items:
            $ref: '#/components/schemas/TaxProfileCategory'
    ListTaxProfileResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/TaxProfileWithTerritoryResult'
        totalElements:
          type: integer
          description: Total number of items in the database that correspond to this
            search criteria
          format: int64
        currentPage:
          type: integer
          description: Current page
          format: int32
        pageSize:
          type: integer
          description: Response page size
          format: int32
    TaxProfile:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the tax profile
          format: uuid
        name:
          type: string
          description: Name of the tax profile
        description:
          type: string
          description: Description of the tax profile
        order:
          type: integer
          description: Order of the tax profile
          format: int32
        logicalOperator:
          type: string
          description: Logical operator of the instruction groups
          enum:
          - AND
          - OR
        condition:
          type: string
          description: Summarized representation of the tax profile's condition
        action:
          type: string
          description: Summarized representation of the tax profile's actions
        legalReference:
          type: string
          description: Legal reference of the tax profile
        active:
          type: boolean
          description: Flag to indicate if the tax profile is active
          default: false
        startDate:
          type: string
          description: Start date of the tax profile
          format: date
        endDate:
          type: string
          description: End date of the tax profile
          format: date
        taxProfileCategoryId:
          type: string
          description: ID of the associated tax profile category
          format: uuid
        taxProfileTemplateId:
          type: string
          description: ID of the associated tax profile template
          format: uuid
        instructionGroupsCount:
          type: integer
          description: Count of instruction groups associated with the tax profile
          format: int32
    TaxProfileChapter:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the tax profile chapter
          format: uuid
        description:
          type: string
          description: Description of the tax profile chapter
        taxType:
          type: string
          description: Tax type of the tax profile chapter
          enum:
          - ITX
          - PPT
          - WHT
        chapterType:
          type: string
          description: Chapter type of the tax profile chapter
          enum:
          - PLACE_OF_SUPPLY
          - USE_AND_ENJOYMENT
          - DOMESTIC_LIABILITY
          - CROSS_BORDER_ACQUISITIONS_BY_TAXABLE_PERSONS
          - ZERO_RATING
          - OTHER
        logicalOperator:
          type: string
          description: Logical operator of the instruction groups
          enum:
          - AND
          - OR
        condition:
          type: string
          description: Summarized representation of the tax profile chapter's condition
        taxProfileCategoriesCount:
          type: integer
          description: Count of tax profile categories associated with the tax profile
            chapter
          format: int32
        instructionGroupsCount:
          type: integer
          description: Count of instructions groups associated with the tax profile
            chapter
          format: int32
    TaxProfileChapterRequest:
      type: object
      properties:
        description:
          type: string
          description: Description of the tax profile chapter
        taxType:
          type: string
          description: Tax type of the tax profile chapter
        chapterType:
          type: string
          description: Chapter type of the tax profile chapter
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
    ListTaxProfileChapterResponse:
      type: object
      properties:
        taxProfileChapters:
          type: array
          items:
            $ref: '#/components/schemas/TaxProfileChapter'
    TaxProfileRequest:
      type: object
      properties:
        name:
          type: string
          description: Name of the tax profile
        description:
          type: string
          description: Description of the tax profile
        order:
          type: integer
          description: Order of the tax profile
          format: int32
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
        legalReference:
          type: string
          description: Legal reference of the tax profile
        startDate:
          type: string
          description: Start date of the tax profile
          format: date
        endDate:
          type: string
          description: End date of the tax profile
          format: date
        taxProfileTemplateId:
          type: string
          description: Template ID of the tax profile
          format: uuid
        active:
          type: boolean
          description: Flag to indicate if the tax profile is active
          default: false
    TaxProfileWithTerritoryResult:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the tax profile
          format: uuid
        name:
          type: string
          description: Name of the tax profile
        description:
          type: string
          description: Description of the tax profile
        order:
          type: integer
          description: Order of the tax profile
          format: int32
        logicalOperator:
          type: string
          description: Logical operator of the instruction groups
          enum:
          - AND
          - OR
        condition:
          type: string
          description: Summarized representation of the tax profile's condition
        action:
          type: string
          description: Summarized representation of the tax profile's actions
        legalReference:
          type: string
          description: Legal reference of the tax profile
        active:
          type: boolean
          description: Flag to indicate if the tax profile is active
          default: false
        startDate:
          type: string
          description: Start date of the tax profile
          format: date
        endDate:
          type: string
          description: End date of the tax profile
          format: date
        taxProfileCategoryId:
          type: string
          description: ID of the associated tax profile category
          format: uuid
        taxProfileTemplateId:
          type: string
          description: ID of the associated tax profile template
          format: uuid
        instructionGroupsCount:
          type: integer
          description: Count of instruction groups associated with the tax profile
          format: int32
        territory:
          $ref: '#/components/schemas/TaxProfileTerritory'
      description: List of all tax profiles with territory information
    AllTaxProfileWithTerritoryResult:
      type: object
      properties:
        taxProfiles:
          type: array
          description: List of all tax profiles with territory information
          items:
            $ref: '#/components/schemas/TaxProfileWithTerritoryResult'
    TaxProfileTemplateIsUsedInProfilesResult:
      type: object
      properties:
        isUsedInProfiles:
          type: boolean
          description: Indicates whether the tax profile template is used in tax profiles
            templates
        adminProfiles:
          type: array
          description: List of admin profiles that use the tax profile template
          items:
            type: string
            description: List of admin profiles that use the tax profile template
            format: uuid
        customProfiles:
          type: array
          description: List of custom profiles that use the tax profile template
          items:
            type: string
            description: List of custom profiles that use the tax profile template
            format: uuid
    TaxProfileTemplate:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the tax profile template
          format: uuid
        name:
          type: string
          description: Name of the tax profile template
        description:
          type: string
          description: Description of the tax profile template
        legalReference:
          type: string
          description: Legal reference for the tax profile template
        order:
          type: integer
          description: Order of the tax profile template
          format: int32
        logicalOperator:
          type: string
          description: Logical operator of the instruction groups
          enum:
          - AND
          - OR
        condition:
          type: string
          description: Summarized representation of the tax profile template's condition
        action:
          type: string
          description: Summarized representation of the tax profile template's actions
        startDate:
          type: string
          description: Start date of the tax profile template
          format: date
          example: 2024-01-01
        endDate:
          type: string
          description: End date of the tax profile template
          format: date
          example: 2024-12-31
        instructionGroupsCount:
          type: integer
          description: Count of instruction groups associated with the tax profile
            template
          format: int32
    TaxProfileTemplateRequest:
      type: object
      properties:
        name:
          type: string
          description: Name of the tax profile template
        description:
          type: string
          description: Description of the tax profile template
        legalReference:
          type: string
          description: Legal reference for the tax profile template
        startDate:
          type: string
          description: Start date of the tax profile template
          format: date
          example: 2024-01-01
        endDate:
          type: string
          description: End date of the tax profile template
          format: date
          example: 2024-12-31
        order:
          type: integer
          description: Order of the tax profile template
          format: int32
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
    ListTaxProfileTemplateResponse:
      type: object
      properties:
        taxProfileTemplates:
          type: array
          items:
            $ref: '#/components/schemas/TaxProfileTemplate'
    VatexCode:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the VATEX code
          format: uuid
        exemptionReasonCode:
          type: string
          description: Exemption reason code of the VATEX code
        exemptionReason:
          type: string
          description: Exemption reason date of the VATEX code
      description: VATEX code of the VATEX code mapping
    VatexCodeRequest:
      type: object
      properties:
        exemptionReasonCode:
          type: string
          description: Exemption reason code for the VATEX code
        exemptionReason:
          type: string
          description: Exemption reason for the VATEX code
    ListVatexCodeResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/VatexCode'
        totalElements:
          type: integer
          description: Total number of items in the database that correspond to this
            search criteria
          format: int64
        currentPage:
          type: integer
          description: Current page
          format: int32
        pageSize:
          type: integer
          description: Response page size
          format: int32
    CustomVatexCode:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the VATEX code
          format: uuid
        exemptionReasonCode:
          type: string
          description: Exemption reason code of the VATEX code
        exemptionReason:
          type: string
          description: Exemption reason date of the VATEX code
      description: Custom VATEX code of the VATEX code mapping
    CustomVatexCodeRequest:
      type: object
      properties:
        exemptionReasonCode:
          type: string
          description: Exemption reason code for the VATEX code
        exemptionReason:
          type: string
          description: Exemption reason for the VATEX code
    ListCustomVatexCodeResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/CustomVatexCode'
        totalElements:
          type: integer
          description: Total number of items in the database that correspond to this
            search criteria
          format: int64
        currentPage:
          type: integer
          description: Current page
          format: int32
        pageSize:
          type: integer
          description: Response page size
          format: int32
    VatexCodeMapping:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the VATEX code mapping
          format: uuid
        startDate:
          type: string
          description: Start date of the VATEX code mapping
          format: date
        endDate:
          type: string
          description: End date of the VATEX code mapping
          format: date
        order:
          type: integer
          description: Order of the VATEX code mapping
          format: int32
        logicalOperator:
          type: string
          description: Logical operator of the instruction groups
          enum:
          - AND
          - OR
        condition:
          type: string
          description: Summarized representation of the VATEX code mapping's condition
        instructionGroupsCount:
          type: integer
          description: Count of instructions groups associated with the VATEX code
            mapping
          format: int32
        vatexCode:
          $ref: '#/components/schemas/VatexCode'
    VatexCodeMappingRequest:
      type: object
      properties:
        vatexCodeId:
          type: string
          description: VATEX code ID
          format: uuid
        startDate:
          type: string
          description: Start date of the VATEX code mapping
          format: date
        endDate:
          type: string
          description: End date of the VATEX code mapping
          format: date
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
    ListVatexCodeMappingResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/VatexCodeMapping'
        totalElements:
          type: integer
          description: Total number of items in the database that correspond to this
            search criteria
          format: int64
        currentPage:
          type: integer
          description: Current page
          format: int32
        pageSize:
          type: integer
          description: Response page size
          format: int32
    VatexCodeMappingPatchRequest:
      type: object
      properties:
        vatexCodeId:
          type: string
          description: VATEX code ID
          format: uuid
        startDate:
          type: string
          description: Start date of the VATEX code mapping
          format: date
        endDate:
          type: string
          description: End date of the VATEX code mapping
          format: date
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
        order:
          type: integer
          description: Order of the VATEX code mapping
          format: int32
    CustomVatexCodeMapping:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the VATEX code mapping
          format: uuid
        startDate:
          type: string
          description: Start date of the VATEX code mapping
          format: date
        endDate:
          type: string
          description: End date of the VATEX code mapping
          format: date
        order:
          type: integer
          description: Order of the VATEX code mapping
          format: int32
        logicalOperator:
          type: string
          description: Logical operator of the instruction groups
          enum:
          - AND
          - OR
        condition:
          type: string
          description: Summarized representation of the VATEX code mapping's condition
        instructionGroupsCount:
          type: integer
          description: Count of instructions groups associated with the VATEX code
            mapping
          format: int32
        customVatexCode:
          $ref: '#/components/schemas/CustomVatexCode'
    CustomVatexCodeMappingRequest:
      type: object
      properties:
        vatexCodeId:
          type: string
          description: VATEX code ID
          format: uuid
        startDate:
          type: string
          description: Start date of the VATEX code mapping
          format: date
        endDate:
          type: string
          description: End date of the VATEX code mapping
          format: date
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
    ListCustomVatexCodeMappingResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/CustomVatexCodeMapping'
        totalElements:
          type: integer
          description: Total number of items in the database that correspond to this
            search criteria
          format: int64
        currentPage:
          type: integer
          description: Current page
          format: int32
        pageSize:
          type: integer
          description: Response page size
          format: int32
    CustomVatexCodeMappingPatchRequest:
      type: object
      properties:
        vatexCodeId:
          type: string
          description: VATEX code ID
          format: uuid
        startDate:
          type: string
          description: Start date of the VATEX code mapping
          format: date
        endDate:
          type: string
          description: End date of the VATEX code mapping
          format: date
        logicalOperator:
          type: string
          description: Denotes the logical operator of the underlying instruction
            groups - AND or OR
          example: AND
        order:
          type: integer
          description: Order of the custom VATEX code mapping
          format: int32
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://api.btx.eu.banqup.com/oauth2/client_credential/gettoken
          scopes:
            info: Scopes are endpoint-specific, see each endpoint for required scope.
        authorizationCode:
          authorizationUrl: https://api.btx.eu.banqup.com/oauth2/auth
          tokenUrl: https://api.btx.eu.banqup.com/oauth2/token
          scopes:
            info: Scopes are endpoint-specific, see each endpoint for required scope.
