# Get latest fiscalization status for a document Returns the most recent fiscalization status for the specified document ID. Endpoint: POST /rest/v1/documents/getLatestFiscalizationStatus Version: v1.0.0 Security: ## Request fields (application/json): - `documentId` (string, required) The unique identifier of the document Example: "64a1b2c3d4e5f6789012345a" ## Response 200 fields (application/json): - `successful` (boolean) Whether the fiscalization was successful Example: true - `errorMessage` (string) Error message if fiscalization failed Example: "Invalid tax rate" - `errorCode` (string) Error code if fiscalization failed Example: "TAX_RATE_ERROR" - `shouldRetry` (boolean) Whether the fiscalization should be retried - `timestamp` (string) Timestamp when the fiscalization was attempted Example: "2024-01-15T10:30:00Z" - `fiscalizationRequestId` (string) Unique identifier for the fiscalization attempt Example: "FISK-2024-001234" - `fiscalizationResponseId` (string) JIR (Jedinstveni identifikator računa) number from FINA Example: "12345678-1234-1234-1234-123456789012" - `fiscalizationType` (string) Type of fiscalization process Enum: "FISCALIZATION", "FISCALIZATION_REJECTION_REPORT", "FISCALIZATION_PAYMENT_REPORT", "FISCALIZATION_NOT_DELIVERED_REPORT" ## Response 401 fields ## Response 404 fields ## Response 500 fields