{
  "openapi": "3.0.1",
  "info": {
    "title": "EInvoice API",
    "description": "Cổng chuyển tiếp hóa đơn điện tử (không dùng DB; tài khoản BKAV mặc định ở cấu hình Bkav:Production / Bkav:Demo): đầu vào chung /api/invoices cho mọi nhà cung cấp và API riêng /api/bkav. Provider.Config BKAV: UserName, Password, IsDemo.",
    "version": "1.0.0"
  },
  "paths": {
    "/api/bkav/bills": {
      "post": {
        "tags": [
          "BkavBills"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBillRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBillRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBillRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/bills/invoices": {
      "post": {
        "tags": [
          "BkavBills"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceFromBillsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceFromBillsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceFromBillsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/bills/lookup": {
      "post": {
        "tags": [
          "BkavBills"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillLookupRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BillLookupRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BillLookupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/businesses/lookup": {
      "post": {
        "tags": [
          "BkavBusinesses"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavTaxCodeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavTaxCodeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BkavTaxCodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/catalogs": {
      "get": {
        "tags": [
          "BkavCatalogs"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/get": {
      "post": {
        "tags": [
          "BkavInvoiceQueries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavIdRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavIdRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BkavIdRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/status": {
      "post": {
        "tags": [
          "BkavInvoiceQueries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavGuidRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavGuidRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BkavGuidRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/history": {
      "post": {
        "tags": [
          "BkavInvoiceQueries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavGuidRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavGuidRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BkavGuidRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/tax-status": {
      "post": {
        "tags": [
          "BkavInvoiceQueries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavGuidRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavGuidRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BkavGuidRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaxStatusResult"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaxStatusResult"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaxStatusResult"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/pdf": {
      "post": {
        "tags": [
          "BkavInvoiceQueries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavIdRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavIdRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BkavIdRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "$ref": "#/components/schemas/Stream"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/xml": {
      "post": {
        "tags": [
          "BkavInvoiceQueries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavIdRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavIdRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BkavIdRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/Stream"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/lookup/display": {
      "post": {
        "tags": [
          "BkavInvoiceQueries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavLookupCodeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavLookupCodeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BkavLookupCodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "$ref": "#/components/schemas/Stream"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/lookup/converted": {
      "post": {
        "tags": [
          "BkavInvoiceQueries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavLookupCodeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavLookupCodeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BkavLookupCodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "$ref": "#/components/schemas/Stream"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/lookup/xml": {
      "post": {
        "tags": [
          "BkavInvoiceQueries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavLookupCodeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavLookupCodeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BkavLookupCodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/Stream"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/number-range": {
      "post": {
        "tags": [
          "BkavInvoiceQueries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NumberRangeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/NumberRangeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/NumberRangeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/by-date": {
      "post": {
        "tags": [
          "BkavInvoiceQueries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavPagedDateRangeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavPagedDateRangeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BkavPagedDateRangeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/links/converted": {
      "post": {
        "tags": [
          "BkavInvoiceQueries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerRefRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerRefRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerRefRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceLinkResult"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceLinkResult"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceLinkResult"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/links/display": {
      "post": {
        "tags": [
          "BkavInvoiceQueries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerRefRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerRefRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerRefRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceLinkResult"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceLinkResult"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceLinkResult"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/links/04ss": {
      "post": {
        "tags": [
          "BkavInvoiceQueries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerRefRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerRefRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerRefRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceLinkResult"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceLinkResult"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceLinkResult"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/files/04ss": {
      "post": {
        "tags": [
          "BkavInvoiceQueries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerRefRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerRefRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerRefRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Invoice04SsPdfResult"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Invoice04SsPdfResult"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Invoice04SsPdfResult"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices": {
      "post": {
        "tags": [
          "BkavInvoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceBatchRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceBatchRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceBatchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "BkavInvoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceBatchRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceBatchRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceBatchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/replacements": {
      "post": {
        "tags": [
          "BkavInvoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceBatchRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceBatchRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceBatchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/adjustments": {
      "post": {
        "tags": [
          "BkavInvoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceBatchRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceBatchRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceBatchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/cancel": {
      "post": {
        "tags": [
          "BkavInvoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceActionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceActionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceActionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/delete": {
      "post": {
        "tags": [
          "BkavInvoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceActionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceActionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceActionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/sign": {
      "post": {
        "tags": [
          "BkavInvoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavGuidRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavGuidRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BkavGuidRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/sign/many": {
      "post": {
        "tags": [
          "BkavInvoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignManyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SignManyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SignManyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/explanations": {
      "post": {
        "tags": [
          "BkavInvoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExplainRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ExplainRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ExplainRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/explanations/replaced-adjusted": {
      "post": {
        "tags": [
          "BkavInvoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExplainReplacedRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ExplainReplacedRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ExplainReplacedRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/attachments": {
      "post": {
        "tags": [
          "BkavInvoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AttachRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AttachRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AttachRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceResult"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/resend": {
      "post": {
        "tags": [
          "BkavInvoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavGuidRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavGuidRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BkavGuidRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/invoices/resend/contacts": {
      "post": {
        "tags": [
          "BkavInvoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResendToContactRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResendToContactRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResendToContactRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/qrcode/parse": {
      "post": {
        "tags": [
          "BkavQrCode"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QrCodeParseRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QrCodeParseRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QrCodeParseRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QrCodeResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QrCodeResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QrCodeResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/reports/bc26": {
      "post": {
        "tags": [
          "BkavReports"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavDateRangeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavDateRangeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BkavDateRangeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/bkav/reports/listing": {
      "post": {
        "tags": [
          "BkavReports"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavListingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BkavListingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BkavListingRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              }
            }
          }
        }
      }
    },
    "/api/invoices": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvoiceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvoiceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvoiceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceSummary"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceSummary"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceSummary"
                }
              }
            }
          }
        }
      }
    },
    "/api/invoices/get": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceReferenceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceReferenceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceReferenceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceSummary"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceSummary"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceSummary"
                }
              }
            }
          }
        }
      }
    },
    "/api/invoices/publish": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceReferenceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceReferenceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceReferenceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          }
        }
      }
    },
    "/api/invoices/cancel": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelInvoiceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelInvoiceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CancelInvoiceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          }
        }
      }
    },
    "/api/invoices/delete": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceReferenceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceReferenceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceReferenceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          }
        }
      }
    },
    "/api/invoices/pdf": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceReferenceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceReferenceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceReferenceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "$ref": "#/components/schemas/Stream"
                }
              }
            }
          }
        }
      }
    },
    "/api/invoices/xml": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceReferenceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceReferenceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceReferenceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/Stream"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AttachItem": {
        "type": "object",
        "properties": {
          "InvoiceGUID": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "PartnerInvoiceID": {
            "type": "integer",
            "format": "int64"
          },
          "PartnerInvoiceStringID": {
            "type": "string"
          },
          "Files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoiceAttachFile"
            }
          }
        }
      },
      "AttachRequest": {
        "type": "object",
        "properties": {
          "Items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AttachItem"
            }
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "BillDetail": {
        "type": "object",
        "properties": {
          "ItemCode": {
            "type": "string"
          },
          "ItemName": {
            "type": "string"
          },
          "UnitName": {
            "type": "string"
          },
          "Qty": {
            "type": "number",
            "format": "double"
          },
          "Price": {
            "type": "number",
            "format": "double"
          },
          "Amount": {
            "type": "number",
            "format": "double"
          },
          "TaxRateID": {
            "type": "integer",
            "format": "int32"
          },
          "TaxRate": {
            "type": "number",
            "format": "double"
          },
          "TaxAmount": {
            "type": "number",
            "format": "double"
          },
          "DiscountRate": {
            "type": "number",
            "format": "double"
          },
          "DiscountAmount": {
            "type": "number",
            "format": "double"
          },
          "IsDiscount": {
            "type": "boolean"
          },
          "ItemTypeID": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "BillHeader": {
        "type": "object",
        "properties": {
          "BillCode": {
            "type": "integer",
            "format": "int64"
          },
          "OriginalBillCode": {
            "type": "integer",
            "format": "int64"
          },
          "BillDate": {
            "type": "string"
          },
          "BillStatusID": {
            "type": "integer",
            "format": "int32"
          },
          "PayMethod": {
            "type": "string"
          },
          "Note": {
            "type": "string"
          }
        }
      },
      "BillLookupRequest": {
        "type": "object",
        "properties": {
          "SellerTaxCode": {
            "type": "string"
          },
          "OrganizationCode": {
            "type": "string"
          },
          "BillCode": {
            "type": "integer",
            "format": "int64"
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "BkavConnection": {
        "type": "object",
        "properties": {
          "IsDemo": {
            "type": "boolean",
            "nullable": true
          },
          "PartnerGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "PartnerToken": {
            "type": "string",
            "nullable": true
          },
          "ServiceUrl": {
            "type": "string",
            "nullable": true
          },
          "UserName": {
            "type": "string",
            "nullable": true
          },
          "Password": {
            "type": "string",
            "nullable": true
          }
        },
        "nullable": true
      },
      "BkavDateRangeRequest": {
        "required": [
          "From",
          "To"
        ],
        "type": "object",
        "properties": {
          "From": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "To": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "BkavGuidRequest": {
        "type": "object",
        "properties": {
          "InvoiceGUID": {
            "type": "string",
            "format": "uuid"
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "BkavIdRequest": {
        "required": [
          "Id"
        ],
        "type": "object",
        "properties": {
          "Id": {
            "type": "string"
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "BkavListingRequest": {
        "required": [
          "From",
          "To"
        ],
        "type": "object",
        "properties": {
          "InvoiceTypeId": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "From": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "To": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "BkavLookupCodeRequest": {
        "required": [
          "Code"
        ],
        "type": "object",
        "properties": {
          "Code": {
            "type": "string"
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "BkavPagedDateRangeRequest": {
        "required": [
          "From",
          "To"
        ],
        "type": "object",
        "properties": {
          "Page": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "From": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "To": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "BkavTaxCodeRequest": {
        "required": [
          "TaxCode"
        ],
        "type": "object",
        "properties": {
          "TaxCode": {
            "type": "string"
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "CancelInvoiceRequest": {
        "required": [
          "Reason",
          "Provider"
        ],
        "type": "object",
        "properties": {
          "Reason": {
            "type": "string"
          },
          "InvoiceId": {
            "type": "string",
            "nullable": true
          },
          "ReferenceId": {
            "maxLength": 36,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "Provider": {
            "$ref": "#/components/schemas/ProviderInfo"
          }
        }
      },
      "CatalogsResponse": {
        "required": [
          "InvoiceStatuses",
          "TaxStatuses",
          "InvoiceActions",
          "InvoiceTypes",
          "ItemTypes",
          "PayMethods",
          "TaxRates",
          "ReceiveTypes"
        ],
        "type": "object",
        "properties": {
          "InvoiceStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusEntry"
            }
          },
          "TaxStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/#/properties/InvoiceStatuses/items"
            }
          },
          "InvoiceActions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoiceActionEntry"
            }
          },
          "InvoiceTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedEntry"
            }
          },
          "ItemTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/#/properties/InvoiceTypes/items"
            }
          },
          "PayMethods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PayMethodEntry"
            }
          },
          "TaxRates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaxRateEntry"
            }
          },
          "ReceiveTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/#/properties/InvoiceTypes/items"
            }
          }
        }
      },
      "CreateBillRequest": {
        "type": "object",
        "properties": {
          "Bill": {
            "$ref": "#/components/schemas/BillHeader"
          },
          "ListBillDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BillDetail"
            }
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "CreateInvoiceRequest": {
        "required": [
          "ReferenceId",
          "Buyer",
          "Provider"
        ],
        "type": "object",
        "properties": {
          "ReferenceId": {
            "maxLength": 36,
            "minLength": 0,
            "type": "string"
          },
          "Kind": {
            "$ref": "#/components/schemas/InvoiceKind"
          },
          "InvoiceDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "InvoiceForm": {
            "type": "string",
            "nullable": true
          },
          "InvoiceSerial": {
            "type": "string",
            "nullable": true
          },
          "Buyer": {
            "$ref": "#/components/schemas/InvoiceBuyer"
          },
          "PaymentMethod": {
            "$ref": "#/components/schemas/PaymentMethod"
          },
          "Currency": {
            "maxLength": 3,
            "minLength": 3,
            "type": "string"
          },
          "ExchangeRate": {
            "maximum": 79228162514264337593543950335,
            "minimum": 0.000001,
            "type": "number",
            "format": "double"
          },
          "Note": {
            "type": "string",
            "nullable": true
          },
          "Items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoiceItem"
            }
          },
          "Provider": {
            "$ref": "#/components/schemas/ProviderInfo"
          }
        }
      },
      "DeliveryNote": {
        "type": "object",
        "properties": {
          "ShiftCommandNo": {
            "type": "string"
          },
          "ShiftCommandDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "ShiftUnitName": {
            "type": "string"
          },
          "ShiftReason": {
            "type": "string"
          },
          "ReferenceNote": {
            "type": "string"
          },
          "TransporterName": {
            "type": "string"
          },
          "ContractNo": {
            "type": "string"
          },
          "OutWareHouse": {
            "type": "string"
          },
          "InWareHouse": {
            "type": "string"
          },
          "Transportation": {
            "type": "string"
          },
          "TaxCodeAgent": {
            "type": "string",
            "nullable": true
          }
        },
        "nullable": true
      },
      "ExplainItem": {
        "required": [
          "Reason"
        ],
        "type": "object",
        "properties": {
          "InvoiceGUID": {
            "type": "string",
            "format": "uuid"
          },
          "Reason": {
            "type": "string"
          },
          "Notify": {
            "type": "boolean"
          },
          "DateNotify": {
            "type": "string"
          },
          "NumberNotify": {
            "type": "string"
          }
        }
      },
      "ExplainReplacedItem": {
        "required": [
          "Reason"
        ],
        "type": "object",
        "properties": {
          "InvoiceGUID": {
            "type": "string",
            "format": "uuid"
          },
          "Reason": {
            "type": "string"
          }
        }
      },
      "ExplainReplacedRequest": {
        "type": "object",
        "properties": {
          "Items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExplainReplacedItem"
            }
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "ExplainRequest": {
        "type": "object",
        "properties": {
          "Items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExplainItem"
            }
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "Invoice04SsPdfResult": {
        "type": "object",
        "properties": {
          "PartnerInvoiceID": {
            "type": "integer",
            "format": "int64"
          },
          "PartnerInvoiceStringID": {
            "type": "string",
            "nullable": true
          },
          "Status": {
            "type": "integer",
            "format": "int32"
          },
          "MessLog": {
            "type": "string",
            "nullable": true
          },
          "PDF": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "InvoiceActionEntry": {
        "required": [
          "StatusId",
          "Name",
          "CanUpdate",
          "CanCancel",
          "CanReplace",
          "CanAdjust"
        ],
        "type": "object",
        "properties": {
          "StatusId": {
            "type": "integer",
            "format": "int32"
          },
          "Name": {
            "type": "string"
          },
          "CanUpdate": {
            "type": "boolean"
          },
          "CanCancel": {
            "type": "boolean"
          },
          "CanReplace": {
            "type": "boolean"
          },
          "CanAdjust": {
            "type": "boolean"
          }
        }
      },
      "InvoiceActionItem": {
        "type": "object",
        "properties": {
          "InvoiceGUID": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "PartnerInvoiceID": {
            "type": "integer",
            "format": "int64"
          },
          "PartnerInvoiceStringID": {
            "type": "string"
          },
          "InvoiceTypeID": {
            "type": "integer",
            "format": "int32"
          },
          "Reason": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "InvoiceActionRequest": {
        "type": "object",
        "properties": {
          "Items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoiceActionItem"
            }
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "InvoiceAttachFile": {
        "type": "object",
        "properties": {
          "FileName": {
            "type": "string"
          },
          "FileExtension": {
            "type": "string"
          },
          "FileContent": {
            "type": "string"
          }
        }
      },
      "InvoiceBatchRequest": {
        "type": "object",
        "properties": {
          "CommandType": {
            "type": "integer",
            "format": "int32"
          },
          "Invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoiceData"
            }
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "InvoiceBuyer": {
        "type": "object",
        "properties": {
          "Code": {
            "type": "string",
            "nullable": true
          },
          "Name": {
            "type": "string",
            "nullable": true
          },
          "CompanyName": {
            "type": "string",
            "nullable": true
          },
          "TaxCode": {
            "type": "string",
            "nullable": true
          },
          "Address": {
            "type": "string",
            "nullable": true
          },
          "BankAccount": {
            "type": "string",
            "nullable": true
          },
          "IdentityNumber": {
            "type": "string",
            "nullable": true
          },
          "PassportNumber": {
            "type": "string",
            "nullable": true
          },
          "BudgetUnitCode": {
            "type": "string",
            "nullable": true
          },
          "Email": {
            "type": "string",
            "nullable": true
          },
          "Phone": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "InvoiceData": {
        "type": "object",
        "properties": {
          "Invoice": {
            "$ref": "#/components/schemas/InvoiceHeader"
          },
          "ListInvoiceDetailsWS": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoiceDetail"
            }
          },
          "ListInvoiceAttachFileWS": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoiceAttachFile"
            }
          },
          "AttachListNumber": {
            "type": "string",
            "nullable": true
          },
          "AttachListDate": {
            "type": "string",
            "nullable": true
          },
          "PartnerInvoiceID": {
            "type": "integer",
            "format": "int64"
          },
          "PartnerInvoiceStringID": {
            "type": "string"
          }
        }
      },
      "InvoiceDetail": {
        "type": "object",
        "properties": {
          "ItemTypeID": {
            "type": "integer",
            "format": "int32"
          },
          "ItemCode": {
            "type": "string"
          },
          "ItemName": {
            "type": "string"
          },
          "UnitName": {
            "type": "string"
          },
          "Qty": {
            "type": "number",
            "format": "double"
          },
          "Price": {
            "type": "number",
            "format": "double"
          },
          "Amount": {
            "type": "number",
            "format": "double"
          },
          "TaxRateID": {
            "type": "integer",
            "format": "int32"
          },
          "TaxRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "TaxAmount": {
            "type": "number",
            "format": "double"
          },
          "OtherAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "DiscountRate": {
            "type": "number",
            "format": "double"
          },
          "DiscountAmount": {
            "type": "number",
            "format": "double"
          },
          "IsDiscount": {
            "type": "boolean"
          },
          "UserDefineDetails": {
            "type": "string"
          },
          "IsIncrease": {
            "type": "boolean",
            "nullable": true
          }
        }
      },
      "InvoiceFromBillsRequest": {
        "type": "object",
        "properties": {
          "Invoice": {
            "$ref": "#/components/schemas/InvoiceHeader"
          },
          "BillGUIDs": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "InvoiceHeader": {
        "type": "object",
        "properties": {
          "InvoiceTypeID": {
            "type": "integer",
            "format": "int32"
          },
          "InvoiceDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "BuyerCode": {
            "type": "string"
          },
          "BuyerName": {
            "type": "string"
          },
          "BuyerTaxCode": {
            "type": "string"
          },
          "BuyerUnitName": {
            "type": "string"
          },
          "BuyerAddress": {
            "type": "string"
          },
          "BuyerBankAccount": {
            "type": "string"
          },
          "CCCD": {
            "type": "string",
            "nullable": true
          },
          "PassportNumber": {
            "type": "string",
            "nullable": true
          },
          "FiscalCodes": {
            "type": "string",
            "nullable": true
          },
          "PayMethodID": {
            "type": "integer",
            "format": "int32"
          },
          "ReceiveTypeID": {
            "type": "integer",
            "format": "int32"
          },
          "ReceiverEmail": {
            "type": "string"
          },
          "ReceiverMobile": {
            "type": "string"
          },
          "ReceiverAddress": {
            "type": "string"
          },
          "ReceiverName": {
            "type": "string"
          },
          "Note": {
            "type": "string"
          },
          "BillCode": {
            "type": "string"
          },
          "CurrencyID": {
            "type": "string"
          },
          "ExchangeRate": {
            "type": "number",
            "format": "double"
          },
          "InvoiceForm": {
            "type": "string"
          },
          "InvoiceSerial": {
            "type": "string"
          },
          "InvoiceNo": {
            "type": "integer",
            "format": "int32"
          },
          "MaCuaCQT": {
            "type": "string",
            "nullable": true
          },
          "UserDefine": {
            "type": "string"
          },
          "UIDefine": {
            "type": "string",
            "nullable": true
          },
          "DeliveryNote": {
            "$ref": "#/components/schemas/DeliveryNote"
          },
          "isBTH": {
            "type": "string",
            "nullable": true
          },
          "InvoiceGUID": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "Reason": {
            "type": "string",
            "nullable": true
          },
          "OriginalInvoiceIdentify": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "InvoiceItem": {
        "required": [
          "Name"
        ],
        "type": "object",
        "properties": {
          "Kind": {
            "$ref": "#/components/schemas/ItemKind"
          },
          "Code": {
            "type": "string",
            "nullable": true
          },
          "Name": {
            "type": "string"
          },
          "Unit": {
            "type": "string",
            "nullable": true
          },
          "Quantity": {
            "type": "number",
            "format": "double"
          },
          "UnitPrice": {
            "type": "number",
            "format": "double"
          },
          "Amount": {
            "type": "number",
            "format": "double"
          },
          "VatRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "VatCategory": {
            "$ref": "#/components/schemas/VatCategory"
          },
          "VatAmount": {
            "type": "number",
            "format": "double"
          },
          "DiscountRate": {
            "type": "number",
            "format": "double"
          },
          "DiscountAmount": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "InvoiceKind": {
        "enum": [
          "Vat",
          "Sales"
        ]
      },
      "InvoiceLinkResult": {
        "type": "object",
        "properties": {
          "PartnerInvoiceID": {
            "type": "integer",
            "format": "int64"
          },
          "PartnerInvoiceStringID": {
            "type": "string",
            "nullable": true
          },
          "Status": {
            "type": "integer",
            "format": "int32"
          },
          "MessLog": {
            "type": "string",
            "nullable": true
          },
          "Url": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "InvoiceReferenceRequest": {
        "required": [
          "Provider"
        ],
        "type": "object",
        "properties": {
          "InvoiceId": {
            "type": "string",
            "nullable": true
          },
          "ReferenceId": {
            "maxLength": 36,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "Provider": {
            "$ref": "#/components/schemas/ProviderInfo"
          }
        }
      },
      "InvoiceResult": {
        "type": "object",
        "properties": {
          "PartnerInvoiceID": {
            "type": "integer",
            "format": "int64"
          },
          "PartnerInvoiceStringID": {
            "type": "string",
            "nullable": true
          },
          "InvoiceGUID": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "InvoiceForm": {
            "type": "string",
            "nullable": true
          },
          "InvoiceSerial": {
            "type": "string",
            "nullable": true
          },
          "InvoiceNo": {
            "type": "integer",
            "format": "int32"
          },
          "MTC": {
            "type": "string",
            "nullable": true
          },
          "MaCuaCQT": {
            "type": "string",
            "nullable": true
          },
          "Status": {
            "type": "integer",
            "format": "int32"
          },
          "MessLog": {
            "type": "string",
            "nullable": true
          },
          "LookupUrl": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "InvoiceStatus": {
        "enum": [
          "Unknown",
          "Draft",
          "PendingSignature",
          "Issued",
          "PendingCancellation",
          "Cancelled",
          "Replaced",
          "Adjusted",
          "Deleted"
        ]
      },
      "InvoiceSummary": {
        "type": "object",
        "properties": {
          "Provider": {
            "type": "string"
          },
          "ReferenceId": {
            "type": "string"
          },
          "InvoiceId": {
            "type": "string",
            "nullable": true
          },
          "InvoiceForm": {
            "type": "string",
            "nullable": true
          },
          "InvoiceSerial": {
            "type": "string",
            "nullable": true
          },
          "InvoiceNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "InvoiceDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "Status": {
            "$ref": "#/components/schemas/InvoiceStatus"
          },
          "ProviderStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "LookupCode": {
            "type": "string",
            "nullable": true
          },
          "LookupUrl": {
            "type": "string",
            "nullable": true
          },
          "TaxAuthorityCode": {
            "type": "string",
            "nullable": true
          },
          "TotalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "TotalDiscountAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "TotalVatAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "TotalPayment": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        }
      },
      "ItemKind": {
        "enum": [
          "Goods",
          "Promotion",
          "Discount",
          "Note"
        ]
      },
      "JsonElement": { },
      "NamedEntry": {
        "required": [
          "Id",
          "Name"
        ],
        "type": "object",
        "properties": {
          "Id": {
            "type": "integer",
            "format": "int32"
          },
          "Name": {
            "type": "string"
          }
        }
      },
      "NumberRangeRequest": {
        "type": "object",
        "properties": {
          "InvoiceForm": {
            "type": "string"
          },
          "InvoiceSerial": {
            "type": "string"
          },
          "FromInvoiceNo": {
            "type": "integer",
            "format": "int32"
          },
          "ToInvoiceNo": {
            "type": "integer",
            "format": "int32"
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "PartnerRef": {
        "type": "object",
        "properties": {
          "PartnerInvoiceID": {
            "type": "integer",
            "format": "int64"
          },
          "PartnerInvoiceStringID": {
            "type": "string"
          }
        }
      },
      "PartnerRefRequest": {
        "type": "object",
        "properties": {
          "Items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PartnerRef"
            }
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "PaymentMethod": {
        "enum": [
          "Cash",
          "BankTransfer",
          "CashOrBankTransfer",
          "Card",
          "DebtOffset",
          "EWallet",
          "NoPayment"
        ]
      },
      "PayMethodEntry": {
        "required": [
          "Id",
          "Name",
          "Description"
        ],
        "type": "object",
        "properties": {
          "Id": {
            "type": "integer",
            "format": "int32"
          },
          "Name": {
            "type": "string"
          },
          "Description": {
            "type": "string"
          }
        }
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ProviderInfo": {
        "type": "object",
        "properties": {
          "Id": {
            "type": "string",
            "nullable": true
          },
          "Config": {
            "$ref": "#/components/schemas/JsonElement"
          }
        }
      },
      "QrCodeParseRequest": {
        "type": "object",
        "properties": {
          "Content": {
            "type": "string"
          }
        }
      },
      "QrCodeResult": {
        "type": "object",
        "properties": {
          "Version": {
            "type": "string",
            "nullable": true
          },
          "InvoiceGUID": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "SellerTaxCode": {
            "type": "string",
            "nullable": true
          },
          "InvoiceForm": {
            "type": "string",
            "nullable": true
          },
          "InvoiceSerial": {
            "type": "string",
            "nullable": true
          },
          "InvoiceNo": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "InvoiceDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "TotalPayment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "Crc": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ResendItem": {
        "type": "object",
        "properties": {
          "InvoiceGUID": {
            "type": "string",
            "format": "uuid"
          },
          "ReceiverEmail": {
            "type": "string"
          },
          "ReceiverMobile": {
            "type": "string"
          }
        }
      },
      "ResendToContactRequest": {
        "type": "object",
        "properties": {
          "Items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResendItem"
            }
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "SignManyRequest": {
        "type": "object",
        "properties": {
          "InvoiceGUIDs": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "Connection": {
            "$ref": "#/components/schemas/BkavConnection"
          }
        }
      },
      "StatusEntry": {
        "required": [
          "Id",
          "Name",
          "Note"
        ],
        "type": "object",
        "properties": {
          "Id": {
            "type": "integer",
            "format": "int32"
          },
          "Name": {
            "type": "string"
          },
          "Note": {
            "type": "string"
          }
        }
      },
      "Stream": {
        "type": "string",
        "format": "binary"
      },
      "TaxRateEntry": {
        "required": [
          "Id",
          "Rate",
          "Description"
        ],
        "type": "object",
        "properties": {
          "Id": {
            "type": "integer",
            "format": "int32"
          },
          "Rate": {
            "type": "number",
            "format": "double"
          },
          "Description": {
            "type": "string"
          }
        }
      },
      "TaxStatusResult": {
        "type": "object",
        "properties": {
          "BkavStatus": {
            "type": "integer",
            "format": "int32"
          },
          "TaxStatus": {
            "type": "integer",
            "format": "int32"
          },
          "TaxAuthorityCode": {
            "type": "string",
            "nullable": true
          },
          "ErrorContent": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ValidationProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      },
      "VatCategory": {
        "enum": [
          "Taxable",
          "NotSubjectToVat",
          "NotDeclared"
        ]
      }
    }
  },
  "tags": [
    {
      "name": "BkavBills"
    },
    {
      "name": "BkavBusinesses"
    },
    {
      "name": "BkavCatalogs"
    },
    {
      "name": "BkavInvoiceQueries"
    },
    {
      "name": "BkavInvoices"
    },
    {
      "name": "BkavQrCode"
    },
    {
      "name": "BkavReports"
    },
    {
      "name": "Invoices"
    }
  ]
}