# Document

Methods to retrieve disposable contracts and upload documents related to the issued certificate.

## Get AWS parameters

 - [GET /api/document/{lraId}/getAwsParameter](https://docs.namirial.app/products/leandisposable/openapi/document/getawsparameter.md): Retrieves AWS credentials for the specified LRA and service. Used when a video identification process stores evidence on AWS. See getAwsParameter.

## Get disposable contract

 - [POST /api/document/{lraId}/getDisposableContract](https://docs.namirial.app/products/leandisposable/openapi/document/getdisposablecontract.md): Returns the disposable contract (Mod_NAMCA22D), the privacy document URL, and the T&C document URL for the specified LRA.

The contract is pre-filled with holder data if disposableHolder, disposableContacts and disposableDoc are all provided. If omitted, the contract is returned blank.

See getDisposableContract.

## Get disposable contract with eID assertion

 - [POST /api/document/{lraId}/getDisposableContractWitheIDAssertion](https://docs.namirial.app/products/leandisposable/openapi/document/getdisposablecontractwitheidassertion.md): Retrieves disposable contract documents (Mod_NAMCA22D) using an eID assertion. Returns contract PDF/TXT, privacy document URL (Mod_NAMGDPR03D), and T&C document URL (Mod_NAMCA01D). The contract is pre-filled if eIDAssertionHolder and contacts are provided. See getDisposableContractWitheIDAssertion and How to enroll with eID assertion.

## Upload AWS document ID

 - [POST /api/document/{lraId}/uploadAwsId](https://docs.namirial.app/products/leandisposable/openapi/document/uploadawsid.md): Associates an AWS identification reference to an issued disposable certificate. Used when a video identification process stores evidence on AWS.

See uploadAwsId.

## Upload document

 - [POST /api/document/{lraId}/uploadDoc](https://docs.namirial.app/products/leandisposable/openapi/document/uploaddoc.md): 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.

