# Document status

## Internal statuses

* `NEW` — New document; applies only to a newly received inbound document that still needs to be downloaded.
* `OK` — The document was successfully processed on our side.
* `FAILED` — The document was not successfully processed on our side.
* `UNKNOWN` — The document is currently being processed.
* `UNDELIVERABLE` — Status for a document whose recipient is not registered in AMS.


## External statuses

* `FISCALIZATION:OK` — Fiscalization completed successfully.
* `FISCALIZATION:ERROR` — Fiscalization was not successful.
* `FISCALIZATION_PAYMENT_REPORT:OK` — Payment registration was successful.
* `FISCALIZATION_PAYMENT_REPORT:ERROR` — Payment registration was not successful.
* `FISCALIZATION_REJECTION_REPORT:OK` — Invoice rejection registration was successful.
* `FISCALIZATION_REJECTION_REPORT:ERROR` — Invoice rejection registration was not successful.
* `FISCALIZATION_NOT_DELIVERED_REPORT:OK` — Registration of an invoice for which it was not possible to send an e-Invoice (eRačun) was successful.
* `FISCALIZATION_NOT_DELIVERED_REPORT:ERROR` — Registration of an invoice for which it was not possible to send an e-Invoice (eRačun) was not successful.
* `null` — The document has not yet been forwarded for external processing (Fiscalization / e-Reporting).