{
  "openapi": "3.0.4",
  "info": {
    "title": "Billings API",
    "version": "v1"
  },
  "paths": {
    "/api/accounts/{accountId}/companies/{companyId}/Invoices": {
      "get": {
        "tags": [
          "Invoices"
        ],
        "operationId": "InvoicesGetInvoicesByCompany",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dteType",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/DteType"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/InvoiceStatus"
            }
          },
          {
            "name": "issueStartDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "issueEndDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "controlNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "generationCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "emittedBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceOutput"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceOutput"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InvoiceOutput"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      },
      "post": {
        "tags": [
          "Invoices"
        ],
        "operationId": "InvoicesCreateInvoice",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvoiceData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvoiceData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvoiceData"
              }
            }
          }
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceOutput"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/Invoices/{id}": {
      "get": {
        "tags": [
          "Invoices"
        ],
        "operationId": "InvoicesGetById",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceOutput"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/Invoices/{id}/fex-data": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "operationId": "InvoicesSetFexData",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetFexDataData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SetFexDataData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SetFexDataData"
              }
            }
          }
        },
        "responses": {
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/Invoices/{id}/copy": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "operationId": "InvoicesCopy",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyInvoiceData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyInvoiceData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CopyInvoiceData"
              }
            }
          }
        },
        "responses": {
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CopyInvoiceResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CopyInvoiceResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CopyInvoiceResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/Invoices/{id}/customer-info": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "operationId": "InvoicesAddCustomerInfo",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddCustomerInfoData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddCustomerInfoData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddCustomerInfoData"
              }
            }
          }
        },
        "responses": {
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/Invoices/{id}/lines": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "operationId": "InvoicesAddLine",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvoiceLineData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvoiceLineData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvoiceLineData"
              }
            }
          }
        },
        "responses": {
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/Invoices/{id}/lines/{lineId}": {
      "delete": {
        "tags": [
          "Invoices"
        ],
        "operationId": "InvoicesRemoveLine",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/Invoices/{id}/mark-paid": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "operationId": "InvoicesMarkAsPaid",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarkAsPaidData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MarkAsPaidData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MarkAsPaidData"
              }
            }
          }
        },
        "responses": {
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceOutput"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/Invoices/{id}/submit": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "operationId": "InvoicesSubmitToTaxAuthority",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitInvoiceToTaxAuthorityData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitInvoiceToTaxAuthorityData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitInvoiceToTaxAuthorityData"
              }
            }
          }
        },
        "responses": {
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/Invoices/{id}/invalidate": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "operationId": "InvoicesInvalidate",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvalidateInvoiceData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InvalidateInvoiceData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InvalidateInvoiceData"
              }
            }
          }
        },
        "responses": {
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceOutput"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/Invoices/{id}/retorno": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "operationId": "InvoicesRetorno",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RetornoData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RetornoData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RetornoData"
              }
            }
          }
        },
        "responses": {
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceOutput"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/Invoices/{id}/status": {
      "patch": {
        "tags": [
          "Invoices"
        ],
        "operationId": "InvoicesChangeStatus",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeStatusData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeStatusData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeStatusData"
              }
            }
          }
        },
        "responses": {
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceOutput"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/Invoices/{id}/resend-email": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "operationId": "InvoicesResendEmail",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResendInvoiceEmailData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResendInvoiceEmailData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResendInvoiceEmailData"
              }
            }
          }
        },
        "responses": {
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/Invoices/{id}/pdf": {
      "get": {
        "tags": [
          "Invoices"
        ],
        "operationId": "InvoicesDownloadPdf",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/Invoices/{id}/invalidation-json": {
      "get": {
        "tags": [
          "Invoices"
        ],
        "operationId": "InvoicesDownloadInvalidationJson",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/Invoices/reports/sales-book": {
      "get": {
        "tags": [
          "Invoices"
        ],
        "operationId": "InvoicesDownloadSalesBook",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/liquidaciones-cl": {
      "get": {
        "tags": [
          "LiquidacionCl"
        ],
        "operationId": "LiquidacionClGetAll",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LiquidacionClOutput"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LiquidacionClOutput"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LiquidacionClOutput"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      },
      "post": {
        "tags": [
          "LiquidacionCl"
        ],
        "operationId": "LiquidacionClCreate",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLiquidacionClData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLiquidacionClData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLiquidacionClData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionClOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionClOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionClOutput"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/liquidaciones-cl/{id}": {
      "get": {
        "tags": [
          "LiquidacionCl"
        ],
        "operationId": "LiquidacionClGetById",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionClOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionClOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionClOutput"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/liquidaciones-cl/{id}/items": {
      "post": {
        "tags": [
          "LiquidacionCl"
        ],
        "operationId": "LiquidacionClAddItem",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddLiquidacionClItemData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddLiquidacionClItemData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddLiquidacionClItemData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionClOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionClOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionClOutput"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/liquidaciones-cl/{id}/items/{itemId}": {
      "delete": {
        "tags": [
          "LiquidacionCl"
        ],
        "operationId": "LiquidacionClRemoveItem",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionClOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionClOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionClOutput"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/liquidaciones-cl/{id}/submit": {
      "post": {
        "tags": [
          "LiquidacionCl"
        ],
        "operationId": "LiquidacionClSubmit",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitLiquidacionData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitLiquidacionData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitLiquidacionData"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/liquidaciones-cl/{id}/pdf": {
      "get": {
        "tags": [
          "LiquidacionCl"
        ],
        "operationId": "LiquidacionClDownloadPdf",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/liquidaciones-cl/{id}/resend-email": {
      "post": {
        "tags": [
          "LiquidacionCl"
        ],
        "operationId": "LiquidacionClResendEmail",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/liquidaciones-cl/{id}/invalidate": {
      "post": {
        "tags": [
          "LiquidacionCl"
        ],
        "operationId": "LiquidacionClInvalidate",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvalidateLiquidacionClData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InvalidateLiquidacionClData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InvalidateLiquidacionClData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionClOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionClOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionClOutput"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/liquidaciones-dcl": {
      "get": {
        "tags": [
          "LiquidacionDcl"
        ],
        "operationId": "LiquidacionDclGetAll",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LiquidacionDclOutput"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LiquidacionDclOutput"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LiquidacionDclOutput"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      },
      "post": {
        "tags": [
          "LiquidacionDcl"
        ],
        "operationId": "LiquidacionDclCreate",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLiquidacionDclData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLiquidacionDclData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLiquidacionDclData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionDclOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionDclOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionDclOutput"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/liquidaciones-dcl/{id}": {
      "get": {
        "tags": [
          "LiquidacionDcl"
        ],
        "operationId": "LiquidacionDclGetById",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionDclOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionDclOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidacionDclOutput"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/liquidaciones-dcl/{id}/submit": {
      "post": {
        "tags": [
          "LiquidacionDcl"
        ],
        "operationId": "LiquidacionDclSubmit",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitLiquidacionData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitLiquidacionData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitLiquidacionData"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/public/invoices/{generationCode}": {
      "get": {
        "tags": [
          "PublicInvoices"
        ],
        "operationId": "PublicInvoicesGetByGenerationCode",
        "parameters": [
          {
            "name": "generationCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PublicInvoiceOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicInvoiceOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicInvoiceOutput"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/invoices/{generationCode}/pdf": {
      "get": {
        "tags": [
          "PublicInvoices"
        ],
        "operationId": "PublicInvoicesGetPdf",
        "parameters": [
          {
            "name": "generationCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/invoices/{generationCode}/qr": {
      "get": {
        "tags": [
          "PublicInvoices"
        ],
        "operationId": "PublicInvoicesGetQrPng",
        "parameters": [
          {
            "name": "generationCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/invoices/{generationCode}/json": {
      "get": {
        "tags": [
          "PublicInvoices"
        ],
        "operationId": "PublicInvoicesGetJson",
        "parameters": [
          {
            "name": "generationCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/liquidaciones-cl/{generationCode}": {
      "get": {
        "tags": [
          "PublicLiquidacionCl"
        ],
        "operationId": "PublicLiquidacionClGetByGenerationCode",
        "parameters": [
          {
            "name": "generationCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PublicClOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicClOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicClOutput"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/liquidaciones-cl/{generationCode}/pdf": {
      "get": {
        "tags": [
          "PublicLiquidacionCl"
        ],
        "operationId": "PublicLiquidacionClGetPdf",
        "parameters": [
          {
            "name": "generationCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/liquidaciones-cl/{generationCode}/qr": {
      "get": {
        "tags": [
          "PublicLiquidacionCl"
        ],
        "operationId": "PublicLiquidacionClGetQrPng",
        "parameters": [
          {
            "name": "generationCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/liquidaciones-cl/{generationCode}/json": {
      "get": {
        "tags": [
          "PublicLiquidacionCl"
        ],
        "operationId": "PublicLiquidacionClGetJson",
        "parameters": [
          {
            "name": "generationCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/purchase-categories": {
      "get": {
        "tags": [
          "PurchaseCategories"
        ],
        "operationId": "PurchaseCategoriesGetAll",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PurchaseCategoryOutput"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PurchaseCategoryOutput"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PurchaseCategoryOutput"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      },
      "post": {
        "tags": [
          "PurchaseCategories"
        ],
        "operationId": "PurchaseCategoriesCreate",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavePurchaseCategoryData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SavePurchaseCategoryData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SavePurchaseCategoryData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseCategoryOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseCategoryOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseCategoryOutput"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/purchase-categories/{id}": {
      "put": {
        "tags": [
          "PurchaseCategories"
        ],
        "operationId": "PurchaseCategoriesUpdate",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavePurchaseCategoryData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SavePurchaseCategoryData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SavePurchaseCategoryData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseCategoryOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseCategoryOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseCategoryOutput"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      },
      "delete": {
        "tags": [
          "PurchaseCategories"
        ],
        "operationId": "PurchaseCategoriesDelete",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/purchase-categories/defaults": {
      "post": {
        "tags": [
          "PurchaseCategories"
        ],
        "operationId": "PurchaseCategoriesCreateDefaults",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PurchaseCategoryOutput"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PurchaseCategoryOutput"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PurchaseCategoryOutput"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/purchase-invoices": {
      "get": {
        "tags": [
          "PurchaseInvoices"
        ],
        "operationId": "PurchaseInvoicesGetByCompany",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "issueStartDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "issueEndDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "generationCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "controlNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "supplierNit",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "taxPeriod",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "categoryId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "unclassified",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "dteType",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "supplierName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PurchaseInvoiceOutput"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PurchaseInvoiceOutput"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PurchaseInvoiceOutput"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      },
      "post": {
        "tags": [
          "PurchaseInvoices"
        ],
        "operationId": "PurchaseInvoicesSave",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavePurchaseInvoiceData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SavePurchaseInvoiceData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SavePurchaseInvoiceData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseInvoiceOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseInvoiceOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseInvoiceOutput"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/purchase-invoices/{id}": {
      "delete": {
        "tags": [
          "PurchaseInvoices"
        ],
        "operationId": "PurchaseInvoicesDelete",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "reason",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      },
      "put": {
        "tags": [
          "PurchaseInvoices"
        ],
        "operationId": "PurchaseInvoicesUpdate",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePurchaseInvoiceData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePurchaseInvoiceData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePurchaseInvoiceData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseInvoiceOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseInvoiceOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseInvoiceOutput"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/purchase-invoices/bulk/category": {
      "put": {
        "tags": [
          "PurchaseInvoices"
        ],
        "operationId": "PurchaseInvoicesAssignCategory",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignPurchaseCategoryData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignPurchaseCategoryData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AssignPurchaseCategoryData"
              }
            }
          }
        },
        "responses": {
          "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"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/purchase-invoices/{id}/history": {
      "get": {
        "tags": [
          "PurchaseInvoices"
        ],
        "operationId": "PurchaseInvoicesHistory",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AuditEntryOutput"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AuditEntryOutput"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AuditEntryOutput"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/purchase-invoices/{id}/related": {
      "get": {
        "tags": [
          "PurchaseInvoices"
        ],
        "operationId": "PurchaseInvoicesRelated",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RelatedPurchasesOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RelatedPurchasesOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RelatedPurchasesOutput"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/purchase-invoices/reports/accounting": {
      "get": {
        "tags": [
          "PurchaseInvoices"
        ],
        "operationId": "PurchaseInvoicesAccountingReport",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fromPeriod",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "toPeriod",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/purchase-invoices/{id}/items": {
      "get": {
        "tags": [
          "PurchaseInvoices"
        ],
        "operationId": "PurchaseInvoicesGetItems",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PurchaseInvoiceItemOutput"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PurchaseInvoiceItemOutput"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PurchaseInvoiceItemOutput"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/purchase-invoices/query-dte": {
      "get": {
        "tags": [
          "PurchaseInvoices"
        ],
        "operationId": "PurchaseInvoicesQueryDte",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "nitEmisor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tipoDte",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "codigoGeneracion",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MhDteConsultaOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MhDteConsultaOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MhDteConsultaOutput"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/purchase-invoices/query-dte/batch": {
      "post": {
        "tags": [
          "PurchaseInvoices"
        ],
        "operationId": "PurchaseInvoicesQueryDteBatch",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/QueryDteEntry"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/QueryDteEntry"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/QueryDteEntry"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MhDteBatchResultItem"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MhDteBatchResultItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MhDteBatchResultItem"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/purchase-invoices/upload-json": {
      "post": {
        "tags": [
          "PurchaseInvoices"
        ],
        "operationId": "PurchaseInvoicesUploadJson",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadPurchaseJsonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadPurchaseJsonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UploadPurchaseJsonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseInvoiceOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseInvoiceOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseInvoiceOutput"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/purchase-invoices/reports/purchases-book": {
      "get": {
        "tags": [
          "PurchaseInvoices"
        ],
        "operationId": "PurchaseInvoicesDownloadPurchasesBook",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/system/invoices/monitor/recent": {
      "get": {
        "tags": [
          "SystemInvoices"
        ],
        "operationId": "SystemInvoicesMonitorRecent",
        "parameters": [
          {
            "name": "accountId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/InvoiceStatus"
            }
          },
          {
            "name": "mhEnvironment",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/system/invoices/monitor/daily": {
      "get": {
        "tags": [
          "SystemInvoices"
        ],
        "operationId": "SystemInvoicesMonitorDaily",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 30
            }
          },
          {
            "name": "accountId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/system/invoices/monitor/stats": {
      "get": {
        "tags": [
          "SystemInvoices"
        ],
        "operationId": "SystemInvoicesMonitorStats",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 30
            }
          },
          {
            "name": "accountId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/system/invoices/retry-pending": {
      "post": {
        "tags": [
          "SystemInvoices"
        ],
        "operationId": "SystemInvoicesRetryPending",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/system/invoices/contingency-pending": {
      "post": {
        "tags": [
          "SystemInvoices"
        ],
        "operationId": "SystemInvoicesContingencyPending",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/system/invoices/cancel-stale-drafts": {
      "post": {
        "tags": [
          "SystemInvoices"
        ],
        "operationId": "SystemInvoicesCancelStaleDrafts",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/system/invoices/send-dte-email": {
      "post": {
        "tags": [
          "SystemInvoices"
        ],
        "operationId": "SystemInvoicesSendDteEmail",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendDteEmailData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SendDteEmailData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SendDteEmailData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/system/invoices/send-cl-email": {
      "post": {
        "tags": [
          "SystemInvoices"
        ],
        "operationId": "SystemInvoicesSendClEmail",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendClEmailData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SendClEmailData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SendClEmailData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/system/invoices/send-dcl-email": {
      "post": {
        "tags": [
          "SystemInvoices"
        ],
        "operationId": "SystemInvoicesSendDclEmail",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendDclEmailData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SendDclEmailData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SendDclEmailData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/system/invoices/create-subscription-invoice": {
      "post": {
        "tags": [
          "SystemInvoices"
        ],
        "operationId": "SystemInvoicesCreateSubscriptionInvoice",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSubscriptionInvoiceData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSubscriptionInvoiceData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSubscriptionInvoiceData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/tax-books/{year}/{month}/validation": {
      "get": {
        "tags": [
          "TaxBooks"
        ],
        "operationId": "TaxBooksValidate",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "month",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaxBookValidationOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxBookValidationOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxBookValidationOutput"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/tax-books/{year}/{month}/workbook": {
      "get": {
        "tags": [
          "TaxBooks"
        ],
        "operationId": "TaxBooksWorkbook",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "month",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/tax-books/{year}/{month}/pdf/{book}": {
      "get": {
        "tags": [
          "TaxBooks"
        ],
        "operationId": "TaxBooksPdf",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "month",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "book",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/tax-books/{year}/{month}/annexes": {
      "post": {
        "tags": [
          "TaxBooks"
        ],
        "operationId": "TaxBooksAnnexes",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "month",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/F07AnnexRequestData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/F07AnnexRequestData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/F07AnnexRequestData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaxBookValidationOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxBookValidationOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxBookValidationOutput"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/tax-books/{year}/{month}/purchase-classification": {
      "put": {
        "tags": [
          "TaxBooks"
        ],
        "operationId": "TaxBooksSetPurchaseClassification",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "month",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClassifyPurchasesData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ClassifyPurchasesData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ClassifyPurchasesData"
              }
            }
          }
        },
        "responses": {
          "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"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/tax-periods": {
      "get": {
        "tags": [
          "TaxPeriods"
        ],
        "operationId": "TaxPeriodsGetAll",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaxPeriodStatusOutput"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaxPeriodStatusOutput"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaxPeriodStatusOutput"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/tax-periods/{period}": {
      "get": {
        "tags": [
          "TaxPeriods"
        ],
        "operationId": "TaxPeriodsGet",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaxPeriodStatusOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxPeriodStatusOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxPeriodStatusOutput"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/tax-periods/{period}/close": {
      "post": {
        "tags": [
          "TaxPeriods"
        ],
        "operationId": "TaxPeriodsClose",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloseTaxPeriodData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CloseTaxPeriodData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CloseTaxPeriodData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaxPeriodStatusOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxPeriodStatusOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxPeriodStatusOutput"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/tax-periods/{period}/reopen": {
      "post": {
        "tags": [
          "TaxPeriods"
        ],
        "operationId": "TaxPeriodsReopen",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReopenTaxPeriodData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReopenTaxPeriodData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReopenTaxPeriodData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaxPeriodStatusOutput"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxPeriodStatusOutput"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxPeriodStatusOutput"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiExceptionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    },
    "/api/accounts/{accountId}/companies/{companyId}/tax-periods/{period}/history": {
      "get": {
        "tags": [
          "TaxPeriods"
        ],
        "operationId": "TaxPeriodsHistory",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AuditEntryOutput"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AuditEntryOutput"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AuditEntryOutput"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "billings_api"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AddCustomerInfoData": {
        "type": "object",
        "properties": {
          "customerId": {
            "type": "string",
            "nullable": true
          },
          "fullName": {
            "type": "string",
            "nullable": true
          },
          "contactInfo": {
            "$ref": "#/components/schemas/ContactInfoVo"
          },
          "documentType": {
            "$ref": "#/components/schemas/IdentityVo"
          },
          "customerType": {
            "$ref": "#/components/schemas/CustomerType"
          },
          "address": {
            "$ref": "#/components/schemas/AddressVo"
          },
          "economicActivity": {
            "$ref": "#/components/schemas/EconomicActivityVO"
          },
          "codDomiciliado": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "codPais": {
            "type": "string",
            "nullable": true
          },
          "nombrePais": {
            "type": "string",
            "nullable": true
          },
          "documentTypeCode": {
            "type": "string",
            "nullable": true
          },
          "esGranContribuyente": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "AddLiquidacionClItemData": {
        "type": "object",
        "properties": {
          "tipoDte": {
            "type": "string",
            "nullable": true
          },
          "tipoGeneracion": {
            "type": "integer",
            "format": "int32"
          },
          "numeroDocumento": {
            "type": "string",
            "nullable": true
          },
          "fechaEmision": {
            "type": "string",
            "format": "date"
          },
          "ventaNoSuj": {
            "type": "number",
            "format": "double"
          },
          "ventaExenta": {
            "type": "number",
            "format": "double"
          },
          "ventaGravada": {
            "type": "number",
            "format": "double"
          },
          "exportaciones": {
            "type": "number",
            "format": "double"
          },
          "tributos": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "ivaItem": {
            "type": "number",
            "format": "double"
          },
          "observaciones": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddressVo": {
        "type": "object",
        "properties": {
          "complemento": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "nullable": true
          },
          "department": {
            "type": "string",
            "nullable": true
          },
          "municipality": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApFrequency": {
        "enum": [
          "Semanal",
          "Quincenal",
          "Mensual",
          "Diario",
          "Anual"
        ],
        "type": "string"
      },
      "ApiExceptionResult": {
        "type": "object",
        "properties": {
          "errorTypeCode": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "errorTypeName": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "relatedObject": {
            "type": "string",
            "nullable": true
          },
          "relatedField": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ArFrequency": {
        "enum": [
          "Semanal",
          "Quincenal",
          "Mensual",
          "Diario",
          "Anual"
        ],
        "type": "string"
      },
      "AssignPurchaseCategoryData": {
        "type": "object",
        "properties": {
          "purchaseIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "categoryId": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AttachmentOutput": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "contentType": {
            "type": "string",
            "nullable": true
          },
          "blobPath": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AuditEntryOutput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "entityType": {
            "type": "string",
            "nullable": true
          },
          "entityId": {
            "type": "string",
            "nullable": true
          },
          "action": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "nullable": true
          },
          "at": {
            "type": "string",
            "format": "date-time"
          },
          "changes": {
            "type": "string",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChangeStatusData": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/InvoiceStatus"
          },
          "userId": {
            "type": "string",
            "nullable": true
          },
          "changeReazon": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ClassifyPurchasesData": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PurchaseClassificationItem"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CloseTaxPeriodData": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ContactInfoVo": {
        "type": "object",
        "properties": {
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CopyInvoiceData": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CopyInvoiceResult": {
        "type": "object",
        "properties": {
          "invoiceId": {
            "type": "string",
            "nullable": true
          },
          "skippedLines": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateInvoiceData": {
        "type": "object",
        "properties": {
          "branchId": {
            "type": "string",
            "nullable": true
          },
          "dteType": {
            "$ref": "#/components/schemas/DteType"
          },
          "paymentMethod": {
            "$ref": "#/components/schemas/PaymentMethod"
          },
          "userId": {
            "type": "string",
            "nullable": true
          },
          "referenceDteId": {
            "type": "string",
            "nullable": true
          },
          "operationCondition": {
            "$ref": "#/components/schemas/OperationCondition"
          },
          "creditInstallments": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "creditFrequency": {
            "$ref": "#/components/schemas/ArFrequency"
          },
          "creditFirstInstallmentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "creditInitialPayment": {
            "type": "number",
            "format": "double"
          },
          "creditInitialPaymentMethod": {
            "$ref": "#/components/schemas/PaymentMethod"
          },
          "bienTitulo": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "appliesRentaRetention": {
            "type": "boolean"
          },
          "returnsToInventory": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CreateInvoiceLineData": {
        "type": "object",
        "properties": {
          "productId": {
            "type": "string",
            "nullable": true
          },
          "quantity": {
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "uom": {
            "$ref": "#/components/schemas/UnitOfMeasure"
          },
          "currentPrice": {
            "type": "number",
            "format": "double"
          },
          "normalPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "appliesIva": {
            "type": "boolean"
          },
          "appliesIva0": {
            "type": "boolean"
          },
          "appliesNoSujeto": {
            "type": "boolean"
          },
          "presentationId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateLiquidacionClData": {
        "type": "object",
        "properties": {
          "branchId": {
            "type": "string",
            "nullable": true
          },
          "pointOfSaleId": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "nullable": true
          },
          "receptorTipoDocumento": {
            "type": "string",
            "nullable": true
          },
          "receptorNumDocumento": {
            "type": "string",
            "nullable": true
          },
          "receptorCodDomiciliado": {
            "type": "integer",
            "format": "int32"
          },
          "receptorNrc": {
            "type": "string",
            "nullable": true
          },
          "receptorNombre": {
            "type": "string",
            "nullable": true
          },
          "receptorCodActividad": {
            "type": "string",
            "nullable": true
          },
          "receptorDescActividad": {
            "type": "string",
            "nullable": true
          },
          "receptorNombreComercial": {
            "type": "string",
            "nullable": true
          },
          "receptorDepartamento": {
            "type": "string",
            "nullable": true
          },
          "receptorMunicipio": {
            "type": "string",
            "nullable": true
          },
          "receptorDistrito": {
            "type": "string",
            "nullable": true
          },
          "receptorComplemento": {
            "type": "string",
            "nullable": true
          },
          "receptorTelefono": {
            "type": "string",
            "nullable": true
          },
          "receptorCorreo": {
            "type": "string",
            "nullable": true
          },
          "condicionOperacion": {
            "type": "integer",
            "format": "int32"
          },
          "observaciones": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateLiquidacionDclData": {
        "type": "object",
        "properties": {
          "branchId": {
            "type": "string",
            "nullable": true
          },
          "pointOfSaleId": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "nullable": true
          },
          "receptorNit": {
            "type": "string",
            "nullable": true
          },
          "receptorNrc": {
            "type": "string",
            "nullable": true
          },
          "receptorNombre": {
            "type": "string",
            "nullable": true
          },
          "receptorCodActividad": {
            "type": "string",
            "nullable": true
          },
          "receptorDescActividad": {
            "type": "string",
            "nullable": true
          },
          "receptorNombreComercial": {
            "type": "string",
            "nullable": true
          },
          "receptorTipoEstablecimiento": {
            "type": "string",
            "nullable": true
          },
          "receptorDepartamento": {
            "type": "string",
            "nullable": true
          },
          "receptorMunicipio": {
            "type": "string",
            "nullable": true
          },
          "receptorDistrito": {
            "type": "string",
            "nullable": true
          },
          "receptorComplemento": {
            "type": "string",
            "nullable": true
          },
          "receptorTelefono": {
            "type": "string",
            "nullable": true
          },
          "receptorCorreo": {
            "type": "string",
            "nullable": true
          },
          "periodoInicio": {
            "type": "string",
            "format": "date"
          },
          "periodoFin": {
            "type": "string",
            "format": "date"
          },
          "codLiquidacion": {
            "type": "string",
            "nullable": true
          },
          "cantidadDoc": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "valorOperaciones": {
            "type": "number",
            "format": "double"
          },
          "montoSinPercepcion": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "descripSinPercepcion": {
            "type": "string",
            "nullable": true
          },
          "subTotal": {
            "type": "number",
            "format": "double"
          },
          "iva": {
            "type": "number",
            "format": "double"
          },
          "montoSujetoPercepcion": {
            "type": "number",
            "format": "double"
          },
          "ivaPercibido": {
            "type": "number",
            "format": "double"
          },
          "comision": {
            "type": "number",
            "format": "double"
          },
          "porcentComision": {
            "type": "number",
            "format": "double"
          },
          "ivaComision": {
            "type": "number",
            "format": "double"
          },
          "liquidoApagar": {
            "type": "number",
            "format": "double"
          },
          "totalLetras": {
            "type": "string",
            "nullable": true
          },
          "observaciones": {
            "type": "string",
            "nullable": true
          },
          "nombEntrega": {
            "type": "string",
            "nullable": true
          },
          "docuEntrega": {
            "type": "string",
            "nullable": true
          },
          "codEmpleado": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateSubscriptionInvoiceData": {
        "type": "object",
        "properties": {
          "emitterAccountId": {
            "type": "string",
            "nullable": true
          },
          "emitterCompanyId": {
            "type": "string",
            "nullable": true
          },
          "emitterBranchId": {
            "type": "string",
            "nullable": true
          },
          "emitterPointOfSaleId": {
            "type": "string",
            "nullable": true
          },
          "customerLegalName": {
            "type": "string",
            "nullable": true
          },
          "customerNit": {
            "type": "string",
            "nullable": true
          },
          "customerNrc": {
            "type": "string",
            "nullable": true
          },
          "customerEmail": {
            "type": "string",
            "nullable": true
          },
          "serviceDescription": {
            "type": "string",
            "nullable": true
          },
          "netAmount": {
            "type": "number",
            "format": "double"
          },
          "grandTotal": {
            "type": "number",
            "format": "double"
          },
          "periodLabel": {
            "type": "string",
            "nullable": true
          },
          "wompiTransactionId": {
            "type": "string",
            "nullable": true
          },
          "systemUserId": {
            "type": "string",
            "nullable": true
          },
          "paymentMethod": {
            "$ref": "#/components/schemas/PaymentMethod"
          },
          "customerAccountId": {
            "type": "string",
            "nullable": true
          },
          "customerCompanyId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerType": {
        "enum": [
          "PersonaNatural",
          "PersonaJuridica"
        ],
        "type": "string"
      },
      "DteType": {
        "enum": [
          "FacturaConsumidorFinal",
          "FacturaCreditoFiscal",
          "NotaCredito",
          "NotaDebito",
          "ComprobanteDonacion",
          "ComprobanteRetencion",
          "ComprobanteLiquidacion",
          "DocumentoContableLiquidacion",
          "FacturaExportacion",
          "FacturaSujetoExcluido",
          "NotaRemision",
          "EventoRetorno"
        ],
        "type": "string"
      },
      "EconomicActivity": {
        "enum": [
          "Otro",
          "MantenimientoVehiculos",
          "VentaRepuestosVehiculos",
          "VentaEnMantenimientoMotos",
          "VentaMinoristaOtrosProductos",
          "RestaurantesYServiciosMoviles",
          "CateringEventos",
          "ProgramacionInformatica",
          "ConsultoriaGestion",
          "Publicidad",
          "DisenoEspecializado",
          "EnsenanzaPreelemental",
          "ClinicasMedicas",
          "ClinicasOdontologicas",
          "ActividadesFisicasYDeportes",
          "ReparacionComputadoras",
          "ReparacionEnseresDomesticos",
          "PeluqueriaYBelleza",
          "OtrosServiciosPersonalesNCP"
        ],
        "type": "string"
      },
      "EconomicActivityVO": {
        "type": "object",
        "properties": {
          "activity": {
            "$ref": "#/components/schemas/EconomicActivity"
          },
          "activityCode": {
            "type": "string",
            "nullable": true
          },
          "activityDescription": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "F07AnnexRequestData": {
        "type": "object",
        "properties": {
          "layout": {
            "type": "string",
            "nullable": true
          },
          "salesRentaOperationType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "salesRentaIncomeType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "exportRentaIncomeType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "purchaseOperationType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "purchaseClassification": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "purchaseSector": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "purchaseCostExpenseType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "consolidateConsumerDaily": {
            "type": "boolean"
          },
          "encoding": {
            "type": "string",
            "nullable": true
          },
          "force": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "IdentityVo": {
        "type": "object",
        "properties": {
          "dui": {
            "type": "string",
            "nullable": true
          },
          "nit": {
            "type": "string",
            "nullable": true
          },
          "nrc": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InvalidateInvoiceData": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "nullable": true
          },
          "companyId": {
            "type": "string",
            "nullable": true
          },
          "branchId": {
            "type": "string",
            "nullable": true
          },
          "tipoAnulacion": {
            "type": "integer",
            "format": "int32"
          },
          "nombreResponsable": {
            "type": "string",
            "nullable": true
          },
          "tipDocResponsable": {
            "type": "string",
            "nullable": true
          },
          "numDocResponsable": {
            "type": "string",
            "nullable": true
          },
          "nombreSolicita": {
            "type": "string",
            "nullable": true
          },
          "tipDocSolicita": {
            "type": "string",
            "nullable": true
          },
          "numDocSolicita": {
            "type": "string",
            "nullable": true
          },
          "codigoGeneracionR": {
            "type": "string",
            "nullable": true
          },
          "receptorCorreo": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InvalidateLiquidacionClData": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "nullable": true
          },
          "companyId": {
            "type": "string",
            "nullable": true
          },
          "branchId": {
            "type": "string",
            "nullable": true
          },
          "tipoAnulacion": {
            "type": "integer",
            "format": "int32"
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "nombreResponsable": {
            "type": "string",
            "nullable": true
          },
          "tipDocResponsable": {
            "type": "string",
            "nullable": true
          },
          "numDocResponsable": {
            "type": "string",
            "nullable": true
          },
          "nombreSolicita": {
            "type": "string",
            "nullable": true
          },
          "tipDocSolicita": {
            "type": "string",
            "nullable": true
          },
          "numDocSolicita": {
            "type": "string",
            "nullable": true
          },
          "codigoGeneracionR": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InvoiceCustomerInfoOutput": {
        "type": "object",
        "properties": {
          "customerId": {
            "type": "string",
            "nullable": true
          },
          "fullName": {
            "type": "string",
            "nullable": true
          },
          "contactInfo": {
            "$ref": "#/components/schemas/ContactInfoVo"
          },
          "identity": {
            "$ref": "#/components/schemas/IdentityVo"
          },
          "customerType": {
            "$ref": "#/components/schemas/CustomerType"
          },
          "address": {
            "$ref": "#/components/schemas/AddressVo"
          },
          "economicActivity": {
            "$ref": "#/components/schemas/EconomicActivityVO"
          },
          "esGranContribuyente": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "InvoiceLineOutput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "invoiceId": {
            "type": "string",
            "nullable": true
          },
          "productId": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "uom": {
            "$ref": "#/components/schemas/UnitOfMeasure"
          },
          "quantity": {
            "type": "integer",
            "format": "int32"
          },
          "unitPrice": {
            "type": "number",
            "format": "double"
          },
          "discount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lineSubTotal": {
            "type": "number",
            "format": "double"
          },
          "lineTotal": {
            "type": "number",
            "format": "double"
          },
          "taxDetail": {
            "$ref": "#/components/schemas/TaxDetailVo"
          },
          "appliesIva": {
            "type": "boolean"
          },
          "appliesIva0": {
            "type": "boolean"
          },
          "appliesNoSujeto": {
            "type": "boolean"
          },
          "presentationId": {
            "type": "string",
            "nullable": true
          },
          "presentationName": {
            "type": "string",
            "nullable": true
          },
          "presentationFactor": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "baseQuantity": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "InvoiceOutput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "accountId": {
            "type": "string",
            "nullable": true
          },
          "companyId": {
            "type": "string",
            "nullable": true
          },
          "branchId": {
            "type": "string",
            "nullable": true
          },
          "controlNumber": {
            "type": "string",
            "nullable": true
          },
          "generationCode": {
            "type": "string",
            "nullable": true
          },
          "receptionCode": {
            "type": "string",
            "nullable": true
          },
          "referenceDteId": {
            "type": "string",
            "nullable": true
          },
          "dteType": {
            "$ref": "#/components/schemas/DteType"
          },
          "currentState": {
            "$ref": "#/components/schemas/InvoiceStatus"
          },
          "creationDate": {
            "type": "string",
            "format": "date-time"
          },
          "issueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "customerInformation": {
            "$ref": "#/components/schemas/InvoiceCustomerInfoOutput"
          },
          "subtotal": {
            "type": "number",
            "format": "double"
          },
          "taxTotal": {
            "type": "number",
            "format": "double"
          },
          "discountTotal": {
            "type": "number",
            "format": "double"
          },
          "grandTotal": {
            "type": "number",
            "format": "double"
          },
          "paymentMethod": {
            "$ref": "#/components/schemas/PaymentMethod"
          },
          "paymentAuthorizationCode": {
            "type": "string",
            "nullable": true
          },
          "invalidatedBy": {
            "type": "string",
            "nullable": true
          },
          "invalidatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "invalidationReason": {
            "type": "string",
            "nullable": true
          },
          "invalidationReplacementCode": {
            "type": "string",
            "nullable": true
          },
          "invalidationReceptionCode": {
            "type": "string",
            "nullable": true
          },
          "invalidationJsonUrl": {
            "type": "string",
            "nullable": true
          },
          "contingencyReceptionCode": {
            "type": "string",
            "nullable": true
          },
          "contingencyJsonUrl": {
            "type": "string",
            "nullable": true
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoiceLineOutput"
            },
            "nullable": true
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AttachmentOutput"
            },
            "nullable": true
          },
          "stateHistories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoiceStateHistoryOutput"
            },
            "nullable": true
          },
          "operationCondition": {
            "$ref": "#/components/schemas/OperationCondition"
          },
          "creditInstallments": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "creditFrequency": {
            "$ref": "#/components/schemas/ArFrequency"
          },
          "creditFirstInstallmentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "creditInitialPayment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "creditInitialPaymentMethod": {
            "$ref": "#/components/schemas/PaymentMethod"
          },
          "exportItemType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "exportRecintoFiscal": {
            "type": "string",
            "nullable": true
          },
          "exportRegimen": {
            "type": "string",
            "nullable": true
          },
          "exportFlete": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "exportSeguro": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "exportCodIncoterms": {
            "type": "string",
            "nullable": true
          },
          "exportDescIncoterms": {
            "type": "string",
            "nullable": true
          },
          "exportTipoTransporte": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "exportTipoRegimen": {
            "type": "string",
            "nullable": true
          },
          "exportPaisDestino": {
            "type": "string",
            "nullable": true
          },
          "appliesRentaRetention": {
            "type": "boolean"
          },
          "rentaRetention": {
            "type": "number",
            "format": "double"
          },
          "amountToPay": {
            "type": "number",
            "format": "double"
          },
          "returnsToInventory": {
            "type": "boolean"
          },
          "mhEnvironment": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InvoiceStateHistoryOutput": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/InvoiceStatus"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "userId": {
            "type": "string",
            "nullable": true
          },
          "reazon": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InvoiceStatus": {
        "enum": [
          "Draft",
          "Signed",
          "Sent",
          "Accepted",
          "Rejected",
          "Paid",
          "Cancelled",
          "Pending",
          "Invalidated"
        ],
        "type": "string"
      },
      "LiquidacionClItemOutput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "numItem": {
            "type": "integer",
            "format": "int32"
          },
          "tipoDte": {
            "type": "string",
            "nullable": true
          },
          "tipoGeneracion": {
            "type": "integer",
            "format": "int32"
          },
          "numeroDocumento": {
            "type": "string",
            "nullable": true
          },
          "fechaEmision": {
            "type": "string",
            "format": "date"
          },
          "ventaNoSuj": {
            "type": "number",
            "format": "double"
          },
          "ventaExenta": {
            "type": "number",
            "format": "double"
          },
          "ventaGravada": {
            "type": "number",
            "format": "double"
          },
          "exportaciones": {
            "type": "number",
            "format": "double"
          },
          "tributos": {
            "type": "string",
            "nullable": true
          },
          "ivaItem": {
            "type": "number",
            "format": "double"
          },
          "observaciones": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LiquidacionClOutput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "accountId": {
            "type": "string",
            "nullable": true
          },
          "companyId": {
            "type": "string",
            "nullable": true
          },
          "branchId": {
            "type": "string",
            "nullable": true
          },
          "controlNumber": {
            "type": "string",
            "nullable": true
          },
          "generationCode": {
            "type": "string",
            "nullable": true
          },
          "receptionCode": {
            "type": "string",
            "nullable": true
          },
          "currentState": {
            "$ref": "#/components/schemas/InvoiceStatus"
          },
          "creationDate": {
            "type": "string",
            "format": "date-time"
          },
          "issueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "receptorTipoDocumento": {
            "type": "string",
            "nullable": true
          },
          "receptorNumDocumento": {
            "type": "string",
            "nullable": true
          },
          "receptorCodDomiciliado": {
            "type": "integer",
            "format": "int32"
          },
          "receptorNrc": {
            "type": "string",
            "nullable": true
          },
          "receptorNombre": {
            "type": "string",
            "nullable": true
          },
          "receptorCodActividad": {
            "type": "string",
            "nullable": true
          },
          "receptorDescActividad": {
            "type": "string",
            "nullable": true
          },
          "receptorNombreComercial": {
            "type": "string",
            "nullable": true
          },
          "receptorDepartamento": {
            "type": "string",
            "nullable": true
          },
          "receptorMunicipio": {
            "type": "string",
            "nullable": true
          },
          "receptorDistrito": {
            "type": "string",
            "nullable": true
          },
          "receptorComplemento": {
            "type": "string",
            "nullable": true
          },
          "receptorTelefono": {
            "type": "string",
            "nullable": true
          },
          "receptorCorreo": {
            "type": "string",
            "nullable": true
          },
          "totalNoSuj": {
            "type": "number",
            "format": "double"
          },
          "totalExenta": {
            "type": "number",
            "format": "double"
          },
          "totalGravada": {
            "type": "number",
            "format": "double"
          },
          "totalExportacion": {
            "type": "number",
            "format": "double"
          },
          "subTotalVentas": {
            "type": "number",
            "format": "double"
          },
          "ivaPerci": {
            "type": "number",
            "format": "double"
          },
          "montoTotalOperacion": {
            "type": "number",
            "format": "double"
          },
          "total": {
            "type": "number",
            "format": "double"
          },
          "totalLetras": {
            "type": "string",
            "nullable": true
          },
          "condicionOperacion": {
            "type": "integer",
            "format": "int32"
          },
          "observaciones": {
            "type": "string",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LiquidacionClItemOutput"
            },
            "nullable": true
          },
          "stateHistories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoiceStateHistoryOutput"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LiquidacionDclOutput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "accountId": {
            "type": "string",
            "nullable": true
          },
          "companyId": {
            "type": "string",
            "nullable": true
          },
          "branchId": {
            "type": "string",
            "nullable": true
          },
          "controlNumber": {
            "type": "string",
            "nullable": true
          },
          "generationCode": {
            "type": "string",
            "nullable": true
          },
          "receptionCode": {
            "type": "string",
            "nullable": true
          },
          "currentState": {
            "$ref": "#/components/schemas/InvoiceStatus"
          },
          "creationDate": {
            "type": "string",
            "format": "date-time"
          },
          "issueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "receptorNit": {
            "type": "string",
            "nullable": true
          },
          "receptorNrc": {
            "type": "string",
            "nullable": true
          },
          "receptorNombre": {
            "type": "string",
            "nullable": true
          },
          "receptorCodActividad": {
            "type": "string",
            "nullable": true
          },
          "receptorDescActividad": {
            "type": "string",
            "nullable": true
          },
          "receptorNombreComercial": {
            "type": "string",
            "nullable": true
          },
          "receptorTipoEstablecimiento": {
            "type": "string",
            "nullable": true
          },
          "receptorDepartamento": {
            "type": "string",
            "nullable": true
          },
          "receptorMunicipio": {
            "type": "string",
            "nullable": true
          },
          "receptorDistrito": {
            "type": "string",
            "nullable": true
          },
          "receptorComplemento": {
            "type": "string",
            "nullable": true
          },
          "receptorTelefono": {
            "type": "string",
            "nullable": true
          },
          "receptorCorreo": {
            "type": "string",
            "nullable": true
          },
          "periodoInicio": {
            "type": "string",
            "format": "date"
          },
          "periodoFin": {
            "type": "string",
            "format": "date"
          },
          "codLiquidacion": {
            "type": "string",
            "nullable": true
          },
          "cantidadDoc": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "valorOperaciones": {
            "type": "number",
            "format": "double"
          },
          "montoSinPercepcion": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "descripSinPercepcion": {
            "type": "string",
            "nullable": true
          },
          "subTotal": {
            "type": "number",
            "format": "double"
          },
          "iva": {
            "type": "number",
            "format": "double"
          },
          "montoSujetoPercepcion": {
            "type": "number",
            "format": "double"
          },
          "ivaPercibido": {
            "type": "number",
            "format": "double"
          },
          "comision": {
            "type": "number",
            "format": "double"
          },
          "porcentComision": {
            "type": "number",
            "format": "double"
          },
          "ivaComision": {
            "type": "number",
            "format": "double"
          },
          "liquidoApagar": {
            "type": "number",
            "format": "double"
          },
          "totalLetras": {
            "type": "string",
            "nullable": true
          },
          "observaciones": {
            "type": "string",
            "nullable": true
          },
          "nombEntrega": {
            "type": "string",
            "nullable": true
          },
          "docuEntrega": {
            "type": "string",
            "nullable": true
          },
          "codEmpleado": {
            "type": "string",
            "nullable": true
          },
          "stateHistories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoiceStateHistoryOutput"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MarkAsPaidData": {
        "type": "object",
        "properties": {
          "paymentMethod": {
            "$ref": "#/components/schemas/PaymentMethod"
          },
          "authorizationCode": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MhDteBatchResultItem": {
        "type": "object",
        "properties": {
          "nitEmisor": {
            "type": "string",
            "nullable": true
          },
          "tipoDte": {
            "type": "string",
            "nullable": true
          },
          "codigoGeneracion": {
            "type": "string",
            "nullable": true
          },
          "resultado": {
            "$ref": "#/components/schemas/MhDteConsultaOutput"
          }
        },
        "additionalProperties": false
      },
      "MhDteConsultaOutput": {
        "type": "object",
        "properties": {
          "estado": {
            "type": "string",
            "nullable": true
          },
          "codigoGeneracion": {
            "type": "string",
            "nullable": true
          },
          "selloRecibido": {
            "type": "string",
            "nullable": true
          },
          "fhProcesamiento": {
            "type": "string",
            "nullable": true
          },
          "codigoMsg": {
            "type": "string",
            "nullable": true
          },
          "descripcionMsg": {
            "type": "string",
            "nullable": true
          },
          "observaciones": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OperationCondition": {
        "enum": [
          "Contado",
          "Credito",
          "Otro"
        ],
        "type": "string"
      },
      "PaymentMethod": {
        "enum": [
          "Efectivo",
          "TarjetaDebito",
          "TarjetaCredito",
          "Cheque",
          "Transferencia",
          "ValesCanasta",
          "EfectivoWeb",
          "TarjetaElectronica",
          "Donaciones",
          "Bitcoin",
          "MonederoElectronico",
          "MonedaVirtual",
          "PlataformaDigital",
          "Otros"
        ],
        "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
          }
        },
        "additionalProperties": { }
      },
      "PublicClOutput": {
        "type": "object",
        "properties": {
          "cl": {
            "$ref": "#/components/schemas/LiquidacionClOutput"
          },
          "emisor": {
            "$ref": "#/components/schemas/PublicEmisorOutput"
          }
        },
        "additionalProperties": false
      },
      "PublicEmisorOutput": {
        "type": "object",
        "properties": {
          "legalName": {
            "type": "string",
            "nullable": true
          },
          "tradeName": {
            "type": "string",
            "nullable": true
          },
          "nit": {
            "type": "string",
            "nullable": true
          },
          "nrc": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "department": {
            "type": "string",
            "nullable": true
          },
          "municipality": {
            "type": "string",
            "nullable": true
          },
          "address": {
            "type": "string",
            "nullable": true
          },
          "economicActivity": {
            "type": "string",
            "nullable": true
          },
          "establishmentType": {
            "type": "string",
            "nullable": true
          },
          "esGranContribuyente": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PublicInvoiceOutput": {
        "type": "object",
        "properties": {
          "invoice": {
            "$ref": "#/components/schemas/InvoiceOutput"
          },
          "emisor": {
            "$ref": "#/components/schemas/PublicEmisorOutput"
          }
        },
        "additionalProperties": false
      },
      "PurchaseCategoryKind": {
        "enum": [
          "Inventario",
          "MercaderiaReventa",
          "MateriaPrima",
          "Suministros",
          "Servicios",
          "GastoAdministrativo",
          "GastoOperativo",
          "ActivoFijo",
          "Otro"
        ],
        "type": "string"
      },
      "PurchaseCategoryOutput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "companyId": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "kind": {
            "$ref": "#/components/schemas/PurchaseCategoryKind"
          },
          "isInventory": {
            "type": "boolean"
          },
          "accountingAccount": {
            "type": "string",
            "nullable": true
          },
          "rentaOperationType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rentaClassification": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rentaSector": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rentaCostExpenseType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "active": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PurchaseClassificationItem": {
        "type": "object",
        "properties": {
          "purchaseId": {
            "type": "string",
            "nullable": true
          },
          "operationType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "classification": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sector": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "costExpenseType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PurchaseInvoiceItemOutput": {
        "type": "object",
        "properties": {
          "numItem": {
            "type": "integer",
            "format": "int32"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "quantity": {
            "type": "number",
            "format": "double"
          },
          "unitCost": {
            "type": "number",
            "format": "double"
          },
          "lineTotal": {
            "type": "number",
            "format": "double"
          },
          "itemType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PurchaseInvoiceOutput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "accountId": {
            "type": "string",
            "nullable": true
          },
          "companyId": {
            "type": "string",
            "nullable": true
          },
          "branchId": {
            "type": "string",
            "nullable": true
          },
          "generationCode": {
            "type": "string",
            "nullable": true
          },
          "controlNumber": {
            "type": "string",
            "nullable": true
          },
          "receptionSeal": {
            "type": "string",
            "nullable": true
          },
          "dteType": {
            "type": "string",
            "nullable": true
          },
          "issueDate": {
            "type": "string",
            "format": "date-time"
          },
          "supplierNit": {
            "type": "string",
            "nullable": true
          },
          "supplierName": {
            "type": "string",
            "nullable": true
          },
          "supplierNrc": {
            "type": "string",
            "nullable": true
          },
          "supplierAddress": {
            "type": "string",
            "nullable": true
          },
          "supplierEconomicActivity": {
            "type": "string",
            "nullable": true
          },
          "subtotal": {
            "type": "number",
            "format": "double"
          },
          "taxTotal": {
            "type": "number",
            "format": "double"
          },
          "discountTotal": {
            "type": "number",
            "format": "double"
          },
          "exemptTotal": {
            "type": "number",
            "format": "double"
          },
          "nonSubjectTotal": {
            "type": "number",
            "format": "double"
          },
          "grandTotal": {
            "type": "number",
            "format": "double"
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "recordedByUserId": {
            "type": "string",
            "nullable": true
          },
          "recordedAt": {
            "type": "string",
            "format": "date-time"
          },
          "rentaOperationType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rentaClassification": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rentaSector": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rentaCostExpenseType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "receptionDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "taxPeriod": {
            "type": "string",
            "nullable": true
          },
          "accountingPeriod": {
            "type": "string",
            "nullable": true
          },
          "categoryId": {
            "type": "string",
            "nullable": true
          },
          "relatedGenerationCode": {
            "type": "string",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updatedByUserId": {
            "type": "string",
            "nullable": true
          },
          "isLateRegistered": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "QueryDteEntry": {
        "type": "object",
        "properties": {
          "nitEmisor": {
            "type": "string",
            "nullable": true
          },
          "tipoDte": {
            "type": "string",
            "nullable": true
          },
          "codigoGeneracion": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RelatedPurchasesOutput": {
        "type": "object",
        "properties": {
          "original": {
            "$ref": "#/components/schemas/PurchaseInvoiceOutput"
          },
          "originalGenerationCode": {
            "type": "string",
            "nullable": true
          },
          "modifiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PurchaseInvoiceOutput"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReopenTaxPeriodData": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResendInvoiceEmailData": {
        "type": "object",
        "properties": {
          "toEmail": {
            "type": "string",
            "nullable": true
          },
          "includeAccountant": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "RetornoData": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "nullable": true
          },
          "branchId": {
            "type": "string",
            "nullable": true
          },
          "pointOfSalesId": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SavePurchaseCategoryData": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "kind": {
            "$ref": "#/components/schemas/PurchaseCategoryKind"
          },
          "accountingAccount": {
            "type": "string",
            "nullable": true
          },
          "rentaOperationType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rentaClassification": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rentaSector": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rentaCostExpenseType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "active": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SavePurchaseInvoiceData": {
        "type": "object",
        "properties": {
          "branchId": {
            "type": "string",
            "nullable": true
          },
          "generationCode": {
            "type": "string",
            "nullable": true
          },
          "controlNumber": {
            "type": "string",
            "nullable": true
          },
          "receptionSeal": {
            "type": "string",
            "nullable": true
          },
          "dteType": {
            "type": "string",
            "nullable": true
          },
          "issueDate": {
            "type": "string",
            "format": "date-time"
          },
          "supplierNit": {
            "type": "string",
            "nullable": true
          },
          "supplierName": {
            "type": "string",
            "nullable": true
          },
          "supplierNrc": {
            "type": "string",
            "nullable": true
          },
          "supplierAddress": {
            "type": "string",
            "nullable": true
          },
          "supplierEconomicActivity": {
            "type": "string",
            "nullable": true
          },
          "subtotal": {
            "type": "number",
            "format": "double"
          },
          "taxTotal": {
            "type": "number",
            "format": "double"
          },
          "discountTotal": {
            "type": "number",
            "format": "double"
          },
          "exemptTotal": {
            "type": "number",
            "format": "double"
          },
          "nonSubjectTotal": {
            "type": "number",
            "format": "double"
          },
          "grandTotal": {
            "type": "number",
            "format": "double"
          },
          "userId": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "rawJson": {
            "type": "string",
            "nullable": true
          },
          "isCredit": {
            "type": "boolean"
          },
          "creditInstallments": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "creditFrequency": {
            "$ref": "#/components/schemas/ApFrequency"
          },
          "creditFirstInstallmentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "creditDueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "receptionDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "taxPeriod": {
            "type": "string",
            "nullable": true
          },
          "accountingPeriod": {
            "type": "string",
            "nullable": true
          },
          "categoryId": {
            "type": "string",
            "nullable": true
          },
          "relatedGenerationCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SendClEmailData": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "companyLogoUrl": {
            "type": "string",
            "nullable": true
          },
          "clOutput": {
            "$ref": "#/components/schemas/LiquidacionClOutput"
          }
        },
        "additionalProperties": false
      },
      "SendDclEmailData": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "companyLogoUrl": {
            "type": "string",
            "nullable": true
          },
          "dclOutput": {
            "$ref": "#/components/schemas/LiquidacionDclOutput"
          }
        },
        "additionalProperties": false
      },
      "SendDteEmailData": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "companyLogoUrl": {
            "type": "string",
            "nullable": true
          },
          "invoice": {
            "$ref": "#/components/schemas/InvoiceOutput"
          }
        },
        "additionalProperties": false
      },
      "SetFexDataData": {
        "type": "object",
        "properties": {
          "tipoItemExpor": {
            "type": "integer",
            "format": "int32"
          },
          "recintoFiscal": {
            "type": "string",
            "nullable": true
          },
          "regimen": {
            "type": "string",
            "nullable": true
          },
          "flete": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seguro": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "codIncoterms": {
            "type": "string",
            "nullable": true
          },
          "descIncoterms": {
            "type": "string",
            "nullable": true
          },
          "tipoTransporte": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tipoRegimen": {
            "type": "string",
            "nullable": true
          },
          "paisDestino": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubmitInvoiceToTaxAuthorityData": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "nullable": true
          },
          "branchId": {
            "type": "string",
            "nullable": true
          },
          "pointOfSalesId": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubmitLiquidacionData": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "nullable": true
          },
          "branchId": {
            "type": "string",
            "nullable": true
          },
          "pointOfSaleId": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TaxBookIssueOutput": {
        "type": "object",
        "properties": {
          "severity": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "documentType": {
            "type": "string",
            "nullable": true
          },
          "controlNumber": {
            "type": "string",
            "nullable": true
          },
          "generationCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TaxBookSummaryOutput": {
        "type": "object",
        "properties": {
          "salesTaxpayersCount": {
            "type": "integer",
            "format": "int32"
          },
          "salesConsumersCount": {
            "type": "integer",
            "format": "int32"
          },
          "purchasesCount": {
            "type": "integer",
            "format": "int32"
          },
          "excludedPurchasesCount": {
            "type": "integer",
            "format": "int32"
          },
          "invalidatedCount": {
            "type": "integer",
            "format": "int32"
          },
          "debitoFiscalContribuyentes": {
            "type": "number",
            "format": "double"
          },
          "debitoFiscalConsumidorFinal": {
            "type": "number",
            "format": "double"
          },
          "creditoFiscal": {
            "type": "number",
            "format": "double"
          },
          "ventasGravadas": {
            "type": "number",
            "format": "double"
          },
          "ventasExentas": {
            "type": "number",
            "format": "double"
          },
          "ventasNoSujetas": {
            "type": "number",
            "format": "double"
          },
          "exportaciones": {
            "type": "number",
            "format": "double"
          },
          "comprasGravadas": {
            "type": "number",
            "format": "double"
          },
          "comprasExentasNoSujetas": {
            "type": "number",
            "format": "double"
          },
          "comprasSujetosExcluidos": {
            "type": "number",
            "format": "double"
          },
          "retencionesRecibidas": {
            "type": "number",
            "format": "double"
          },
          "percepcionesRecibidas": {
            "type": "number",
            "format": "double"
          },
          "retencionesEfectuadas": {
            "type": "number",
            "format": "double"
          },
          "percepcionesEfectuadas": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "TaxBookValidationOutput": {
        "type": "object",
        "properties": {
          "period": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "nit": {
            "type": "string",
            "nullable": true
          },
          "nrc": {
            "type": "string",
            "nullable": true
          },
          "summary": {
            "$ref": "#/components/schemas/TaxBookSummaryOutput"
          },
          "errors": {
            "type": "integer",
            "format": "int32"
          },
          "warnings": {
            "type": "integer",
            "format": "int32"
          },
          "issues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaxBookIssueOutput"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TaxDetailVo": {
        "type": "object",
        "properties": {
          "taxType": {
            "$ref": "#/components/schemas/TaxType"
          },
          "percentage": {
            "type": "number",
            "format": "double"
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "TaxPeriodState": {
        "enum": [
          "Abierto",
          "Cerrado",
          "Reabierto"
        ],
        "type": "string"
      },
      "TaxPeriodStatusOutput": {
        "type": "object",
        "properties": {
          "period": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/TaxPeriodState"
          },
          "closedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "closedByUserId": {
            "type": "string",
            "nullable": true
          },
          "reopenedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "reopenedByUserId": {
            "type": "string",
            "nullable": true
          },
          "reopenReason": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "isClosed": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "TaxType": {
        "enum": [
          "IVA",
          "IVA0",
          "Exento",
          "Fovial",
          "Cotrans"
        ],
        "type": "string"
      },
      "UnitOfMeasure": {
        "enum": [
          "M2",
          "Hectarea",
          "Manzana",
          "Vara",
          "Yarda",
          "Pie",
          "Pulgada",
          "Milimetro",
          "Centimetro",
          "Decimetro",
          "Metro",
          "Kilometro",
          "KG",
          "Libra",
          "LTR",
          "Galon",
          "Mililitro",
          "Tonelada",
          "Gramo",
          "UND",
          "Docena",
          "BOX",
          "Cientos",
          "PKG",
          "SRV",
          "HRS",
          "KWH",
          "DAY",
          "MON",
          "CNS",
          "OTH"
        ],
        "type": "string"
      },
      "UpdatePurchaseInvoiceData": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "nullable": true
          },
          "receptionDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "taxPeriod": {
            "type": "string",
            "nullable": true
          },
          "accountingPeriod": {
            "type": "string",
            "nullable": true
          },
          "categoryId": {
            "type": "string",
            "nullable": true
          },
          "relatedGenerationCode": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UploadPurchaseJsonRequest": {
        "type": "object",
        "properties": {
          "branchId": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "nullable": true
          },
          "rawJson": {
            "type": "string",
            "nullable": true
          },
          "receptionDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "taxPeriod": {
            "type": "string",
            "nullable": true
          },
          "accountingPeriod": {
            "type": "string",
            "nullable": true
          },
          "categoryId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://identity.timorufe.com/connect/authorize",
            "scopes": {
              "billings_api": "Billings API"
            }
          },
          "clientCredentials": {
            "tokenUrl": "https://identity.timorufe.com/connect/token",
            "scopes": {
              "billings_api": "Billings API"
            }
          }
        }
      }
    }
  }
}