# Get Invoices By External Status Get Invoice By External Status. Endpoint: POST /rest/v1/documents/getByExternalStatus Version: v1.0.0 Security: ## Request fields (application/json): - `status` (string, required) One of the possible statuses of the invoice document. Example: "rejected" - `companyVatNumber` (string, required) The VAT number of the company. Example: "HR12345678910" - `dateFrom` (string, required) Date when an invoice was paid - `dateTo` (string, required) Date when an invoice was paid ## Response 200 fields (application/json): - `items` (array, required) List of invoice payload return models. - `items.documentId` (string, required) The unique identifier of the invoice document. Example: "6787a98e15306d37eed688a8" ## Response 400 fields (application/json): - `statusCode` (integer, required) Http status code of the response. Example: 400 - `resultMessage` (string, required) Result message. Example: "Error processing." ## Response 401 fields (application/json): - `statusCode` (integer, required) Http status code of the response. Example: 400 - `resultMessage` (string, required) Result message. Example: "Error processing." ## Response 500 fields (application/json): - `statusCode` (integer, required) Http status code of the response. Example: 400 - `resultMessage` (string, required) Result message. Example: "Error processing."