swagger: "2.0"

info:
  description: "This is BMBIX API server. For this sample, you can use the api key `special-key` to test the authorization filters."
  version: "1.0.0"
  title: "Bmbix API"
  
host: "api.bmbix.com"
basePath: "/v1"
tags:
- name: "documents"
  description: "Invoices, credit notes etc."
schemes:
- "https"
paths:
  /documents/get_uploaded_documents_j:
    post:
      tags:
      - "documents"
      summary: "Get the documents for the given accounting system"
      description: ""
      operationId: "get_documents"
      consumes:
      - "application/json"
      produces:
      - "application/json"
      parameters:
      - in: "body"
        name: "body"
        description: "Gets documents for the accounting system"
        required: true
        schema:
          $ref: "#/definitions/AccountingSystemMessage"
      responses:
        405:
          description: "Invalid input"
      security:
      - bmbix_oauth:
        - "use.bmbix"
      - basic_auth: []
        


securityDefinitions:
  basic_auth:
    type: basic
  bmbix_oauth:
    type: "oauth2"
    authorizationUrl: "https://auth.bmbix.com/hydra/oauth2/auth"
    flow: "implicit"
    scopes:
      use.bmbix: "work with bmbix api"
  api_key:
    type: "apiKey"
    name: "api_key"
    in: "header"
definitions:
  AccountingSystemMessage:
    type: "object"
    required:
    - "accountingSystemId"
    properties:
      accountingSystemId:
        type: "string"

externalDocs:
  description: "Find out more about Swagger"
  url: "http://swagger.io"
  