# Get Document Statuses

Get Document Statuses By VAT Number And DateFrom/To Range.

Endpoint: POST /rest/v1/documents/getStatus
Version: v2026.12.01
Security: PublicApiKey

## Security:

  - `PublicApiKey` (unknown)
    apiKey in header Authorization

## Query parameters:

  - `responseType` (string)
    When set to `NEW` (case-insensitive), the response uses the new fallback
values (`IN_PROCESS` for internal status when the document is still being
processed, `NOT_STARTED` for external status when external
processing has not started). When absent or any other value, legacy
fallbacks (`UNKNOWN`) are returned for backward compatibility.

## 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:

  - `200` (unknown)
    Successfully retrieved document statuses.

## 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. Fallback value depends on the
`responseType` query parameter: `IN_PROCESS` when `responseType=NEW`
(document is still being processed and has no final status yet), `UNKNOWN` otherwise
(legacy behavior).
    Example: NEW|OK|FAILED|IN_PROCESS|UNKNOWN

  - `externalStatus` (string, required)
    The external status of the document. Fallback value depends on the
`responseType` query parameter: `NOT_STARTED` when `responseType=NEW`
(external processing has not started), `UNKNOWN` otherwise (legacy
behavior).
    Example: SENT|DELIVERED|ACKNOWLEDGED|NOT_STARTED|UNKNOWN

  - `fiscalizationDetails` (object)

  - `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
    Example: false

  - `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)

  - `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
    Example: false

  - `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

  - `reportingDetails.fiscalizationType` (string)
    Type of fiscalization process
    Enum: "FISCALIZATION", "FISCALIZATION_REJECTION_REPORT", "FISCALIZATION_PAYMENT_REPORT", "FISCALIZATION_NOT_DELIVERED_REPORT"

  - `reportingDetails.internalRequestId` (string)
    Internal request identifier associated with this reporting attempt
    Example: id-abc123-xyz789

  - `internalStatusDetails` (array)
    Lista grešaka iz logRecords gdje je eventKey='generic' i eventData počinje s 'VE-'

  - `internalStatusDetails.timestamp` (string, required)
    Vrijeme kada je nastala greška
    Example: 2026-01-13T10:29:25.883Z

  - `internalStatusDetails.errorMessage` (string, required)
    Kompletna poruka greške
    Example: [BR-02] [BR-02]-An Invoice shall have an Invoice number (BT-1). na mjestu: /*:Invoice[1]

  - `as4Delivery` (object)

  - `as4Delivery.outboundMessageId` (string)
    Domibus outbound message ID
    Example: 69b93ff0e0ccaf1539da69b6_69b93ff752f40124887701da_20260317_115035

  - `as4Delivery.intermediaryName` (string)
    Name of the AS4 intermediary.
    Example: FINA

  - `as4Delivery.intermediaryVatNumber` (string)
    VAT number of the AS4 intermediary.
    Example: HR12345678910

  - `as4Delivery.as4ReceiptMessageId` (string)
    AS4 receipt message ID from signal envelope.
    Example: 69b93ff752f40124887701da_69b93ff0e0ccaf1539da69b6_20260318_115035

  - `as4Delivery.as4ErrorMessage` (string)
    Error message from AS4 delivery when domibusEbmsErrors event is present in logs
    Example: MessageNotFoundException: Message not found

  - `as4Delivery.as4ErrorMessageTime` (string)
    Timestamp when the AS4 error occurred (ISO 8601 format with UTC timezone)
    Example: 2024-03-17T11:50:35Z

