# Get Document Statuses Get Document Statuses By VAT Number And DateFrom/To Range. Endpoint: POST /rest/v1/documents/getStatus Version: v1.0.0 Security: ## Request fields (application/json): - `documentId` (string) The unique identifier of the invoice document. Example: "6787a98e15306d37eed688a8" - `companyVatNumber` (string, required) The VAT number of the company. Example: "HR12345678910" ## Response 200 fields (application/json): - `documentId` (string, required) The unique identifier of the invoice document. Example: "6787a98e15306d37eed688a8" - `documentSenderName` (string, required) The name of the sender of the document. Example: "Example Sender Ltd." - `documentReceiverName` (string, required) The name of the receiver of the document. Example: "Example Receiver Ltd." - `documentSenderVatNumber` (string, required) The VAT number of the sender without country prefix. Example: "12345678910" - `documentReceiverVatNumber` (string, required) The VAT number of the receiver without country prefix. Example: "98765432100" - `documentNumber` (string, required) The document number of the invoice. Example: "INV-2023-001" - `internalStatus` (string, required) The internal status of the document. Example: "NEW|OK|FAILED" - `externalStatus` (string, required) The external status of the document. Example: "SENT|DELIVERED|ACKNOWLEDGED" - `fiscalizationDetails` (object) Details from the latest fiscalization attempt (optional) - `fiscalizationDetails.successful` (boolean) Whether the fiscalization was successful Example: true - `fiscalizationDetails.errorMessage` (string) Error message if fiscalization failed Example: "Invalid tax rate" - `fiscalizationDetails.errorCode` (string) Error code if fiscalization failed Example: "TAX_RATE_ERROR" - `fiscalizationDetails.shouldRetry` (boolean) Whether the fiscalization should be retried - `fiscalizationDetails.timestamp` (string) Timestamp when the fiscalization was attempted Example: "2024-01-15T10:30:00Z" - `fiscalizationDetails.fiscalizationRequestId` (string) Unique identifier for the fiscalization attempt Example: "FISK-2024-001234" - `fiscalizationDetails.fiscalizationResponseId` (string) JIR (Jedinstveni identifikator računa) number from FINA Example: "12345678-1234-1234-1234-123456789012" - `fiscalizationDetails.fiscalizationType` (string) Type of fiscalization process Enum: "FISCALIZATION", "FISCALIZATION_REJECTION_REPORT", "FISCALIZATION_PAYMENT_REPORT", "FISCALIZATION_NOT_DELIVERED_REPORT" - `reportingDetails` (object) Details from the latest reporting attempt (optional) - `reportingDetails.successful` (boolean) Whether the reporting was successful Example: true - `reportingDetails.errorMessage` (string) Error message if reporting failed Example: "Invalid reporting format" - `reportingDetails.errorCode` (string) Error code if reporting failed Example: "FORMAT_ERROR" - `reportingDetails.shouldRetry` (boolean) Whether the reporting should be retried - `reportingDetails.timestamp` (string) Timestamp when the reporting was attempted Example: "2024-01-15T10:30:00Z" - `reportingDetails.reportingRequestId` (string) Unique identifier for the reporting attempt Example: "RPT-2024-001234" - `reportingDetails.reportingResponseId` (string) Reference number from the reporting system Example: "REF-12345678-2024"