Guides
Upload statuses
The status field of GET /documente/upload/<id>/status. A successful upload goes through the blue statuses and stops at in_dosar; the red ones are final.
Statuses
initiatedRegisteredThe transaction exists; the files have not been confirmed with “done” yet.uploadedUploadedThe files are in the intake area and the transaction is queued for validation.validare_av_jsonAntivirus scan (metadata)The JSON metadata file is being scanned.validare_schema_jsonSchema validationThe metadata is checked against the document type schema.validare_av_fileAntivirus scan (documents)The documents (PDF etc.) are being scanned.validatedValidatedAll checks passed.promotedArchivedThe document was moved to the permanent archive.in_dosarIn the building fileThe document appears in the building file. Final success status.pe_structuraOn the structureThe data was also linked to the building structure (where applicable).rejected_avRejected: virusA file was flagged by the antivirus. Final status.rejected_schemaRejected: schemaThe metadata does not match the schema; the reason is in errorMessage. Final status.expiredExpiredThe files were not uploaded and confirmed in time. Final status.failedFailedProcessing error; the reason is in errorMessage. Final status.How often to poll
Every few seconds. Validating an ordinary document takes from a few seconds to a minute; a file of tens of MB can take longer, because of the antivirus scan.