Stores a document linked to an issued disposable certificate. Supported document types: identification evidence, signed contracts (e.g. CA22D), audit logs, identity assertions.
Note: if the disposable was issued with enrollDisposableWitheIDAssertion, the assertion is stored automatically — do not upload it with this method.
See uploadDoc.
Device code of the issued certificate, returned by enroll (deviceCode).
OTP certificate identifier returned by enroll (certIdOtp). Use 0 if the disposable has otpType=NO_OTP.
Type of document to upload.
File extension (not case-sensitive). Allowed values: pdf, zip, png, jpeg, jpg, docx, doc, odt, xml, json, txt, mp4, m4a, m4v.
- Production environmenthttps://lean.namirialtsp.com/RAWS_DISPOSABLE/api/document/{lraId}/uploadDoc
- Development and testing environmenthttps://lean.test.namirialtsp.com/RAWS_DISPOSABLE/api/document/{lraId}/uploadDoc
curl -i -X POST \
-u '<username>:<password>' \
'https://lean.namirialtsp.com/RAWS_DISPOSABLE/api/document/{lraId}/uploadDoc' \
-H 'Content-Type: application/json' \
-d '{
"deviceCode": "RHIDP0000000000000",
"idOtp": 1234567,
"typeDoc": "CONTRACT",
"extension": "pdf",
"file": "<base64-encoded PDF>"
}'OK
Device code of the certificate the document is linked to.
Server-generated filename for the uploaded document.
Type of the uploaded document.
External reference key, if provided in the request. null if not provided.
{ "deviceCode": "RHIDP0000000000000", "filename": "1234567_a4ece4b3e9626ccfd3bac2eb77c0c1d7950be77e190a64fcf1957279e677ffc7.pdf", "typeDoc": "CONTRACT", "externalKey": null, "uploadDate": 1733496805136 }