openapi: 3.1.0
info:
  title: AbaNinja Documents API - Receipt Settings
  version: 3.0.0
  x-domain-id: documents
servers:
  - url: https://api.abaninja.ch
    description: The AbaNinja API server
tags:
  - name: document-receipt-settings
    description: Manage receipt settings
    x-displayName: Receipt Settings
security:
  - ApiToken: []
paths:
  /accounts/{accountUuid}/documents/v2/receipts/settings/auto-processing/abaclik:
    get:
      tags:
        - document-receipt-settings
      summary: Get AbaClik auto-processing settings
      description: Get AbaClik auto-processing settings
      operationId: documents_list_abaclik
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                properties:
                  data:
                    title: Auto-processing setting resource
                    properties:
                      limit:
                        type: number
                        format: float
                        minimum: 1
                      isActive:
                        type: boolean
                    type: object
                  message:
                    title: message
                    type: string
                  status:
                    example: 200
                  meta:
                    title: meta
                    type:
                      - object
                      - 'null'
                required:
                  - data
                  - message
                  - status
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/settings
      x-legacy-operation-id: 7199f6a4aa05dc3d64176f89a56dfef6
      x-required-scopes:
        - settings
    patch:
      tags:
        - document-receipt-settings
      summary: Update AbaClik auto-processing settings
      description: Update AbaClik auto-processing settings
      operationId: documents_update_abaclik
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: auto-processing settings
        required: true
        content:
          application/json:
            schema:
              title: Update auto-processing setting request
              required: []
              properties:
                limit:
                  type: number
                  format: float
                  minimum: 1
                isActive:
                  type: boolean
                isAutoImportActive:
                  description: Skip Editor in AbaNinja
                  type: boolean
                  default: false
              type: object
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                properties:
                  data:
                    title: Auto-processing setting resource
                    properties:
                      limit:
                        type: number
                        format: float
                        minimum: 1
                      isActive:
                        type: boolean
                    type: object
                  message:
                    title: message
                    type: string
                  status:
                    example: 200
                  meta:
                    title: meta
                    type:
                      - object
                      - 'null'
                required:
                  - data
                  - message
                  - status
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                properties:
                  detail:
                    title: details
                  type:
                    title: type
                    type: string
                  requestUuid:
                    title: requestUuid
                    type: string
                    format: uuid
                  path:
                    title: path
                    type: string
                  message:
                    title: message
                    type:
                      - string
                      - 'null'
                  status:
                    title: status
                    description: HTTP status code
                    type: integer
                required:
                  - detail
                  - type
                  - message
                  - status
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/settings
      x-legacy-operation-id: fe5c852e9b01a3461d646193d3445a59
      x-required-scopes:
        - settings
  /accounts/{accountUuid}/documents/v2/receipts/settings/auto-processing/deepcloud:
    get:
      tags:
        - document-receipt-settings
      summary: Get DeepCloud auto-processing settings
      description: Get DeepCloud auto-processing settings
      operationId: documents_list_deepcloud
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                properties:
                  data:
                    title: Auto-processing setting resource
                    properties:
                      limit:
                        type: number
                        format: float
                        minimum: 1
                      isActive:
                        type: boolean
                    type: object
                  message:
                    title: message
                    type: string
                  status:
                    example: 200
                  meta:
                    title: meta
                    type:
                      - object
                      - 'null'
                required:
                  - data
                  - message
                  - status
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/settings
      x-legacy-operation-id: 5917d27f2775bb6afc69292a21db9496
      x-required-scopes:
        - settings
    patch:
      tags:
        - document-receipt-settings
      summary: Update DeepCloud auto-processing settings
      description: Update DeepCloud auto-processing settings
      operationId: documents_update_deepcloud
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: auto-processing settings
        required: true
        content:
          application/json:
            schema:
              title: Update auto-processing setting request
              required: []
              properties:
                limit:
                  type: number
                  format: float
                  minimum: 1
                isActive:
                  type: boolean
                isAutoImportActive:
                  description: Skip Editor in AbaNinja
                  type: boolean
                  default: false
              type: object
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                properties:
                  data:
                    title: Auto-processing setting resource
                    properties:
                      limit:
                        type: number
                        format: float
                        minimum: 1
                      isActive:
                        type: boolean
                    type: object
                  message:
                    title: message
                    type: string
                  status:
                    example: 200
                  meta:
                    title: meta
                    type:
                      - object
                      - 'null'
                required:
                  - data
                  - message
                  - status
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                properties:
                  detail:
                    title: details
                  type:
                    title: type
                    type: string
                  requestUuid:
                    title: requestUuid
                    type: string
                    format: uuid
                  path:
                    title: path
                    type: string
                  message:
                    title: message
                    type:
                      - string
                      - 'null'
                  status:
                    title: status
                    description: HTTP status code
                    type: integer
                required:
                  - detail
                  - type
                  - message
                  - status
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/settings
      x-legacy-operation-id: 6c21038abc011ec09de077a66c519dfb
      x-required-scopes:
        - settings
  /accounts/{accountUuid}/documents/v2/receipts/settings/number-ranges/receipts:
    get:
      tags:
        - document-receipt-settings
      summary: Get receipt number range settings
      description: Get receipt number range settings
      operationId: documents_list_receipts_2
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                properties:
                  data:
                    title: Number range settings resource
                    properties:
                      counter:
                        type: number
                        format: int64
                        minimum: 1
                      pattern:
                        type: string
                      padding:
                        type: number
                        format: int64
                        maximum: 8
                        minimum: 1
                    type: object
                  message:
                    title: message
                    type: string
                  status:
                    example: 200
                  meta:
                    title: meta
                    type:
                      - object
                      - 'null'
                required:
                  - data
                  - message
                  - status
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/settings
      x-legacy-operation-id: 40c1d49ec0a2c741a318dac41b0afc0f
      x-required-scopes:
        - settings
    patch:
      tags:
        - document-receipt-settings
      summary: Update receipt number range settings
      description: Update receipt number range settings
      operationId: documents_update_receipts
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: number range settings
        required: true
        content:
          application/json:
            schema:
              title: Update number range request
              required: []
              properties:
                counter:
                  type: number
                  format: int64
                  minimum: 1
                pattern:
                  type: string
                padding:
                  type: number
                  format: int64
                  maximum: 8
                  minimum: 1
              type: object
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                properties:
                  data:
                    title: Number range settings resource
                    properties:
                      counter:
                        type: number
                        format: int64
                        minimum: 1
                      pattern:
                        type: string
                      padding:
                        type: number
                        format: int64
                        maximum: 8
                        minimum: 1
                    type: object
                  message:
                    title: message
                    type: string
                  status:
                    example: 200
                  meta:
                    title: meta
                    type:
                      - object
                      - 'null'
                required:
                  - data
                  - message
                  - status
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                properties:
                  detail:
                    title: details
                  type:
                    title: type
                    type: string
                  requestUuid:
                    title: requestUuid
                    type: string
                    format: uuid
                  path:
                    title: path
                    type: string
                  message:
                    title: message
                    type:
                      - string
                      - 'null'
                  status:
                    title: status
                    description: HTTP status code
                    type: integer
                required:
                  - detail
                  - type
                  - message
                  - status
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/settings
      x-legacy-operation-id: 679c075a20c73f0c30945fe5328408b6
      x-required-scopes:
        - settings
components:
  securitySchemes:
    ApiToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token authentication. Create tokens in Settings > API Token.
