# Certificate

Methods to validate holder data, enroll disposable certificates, and send OTP codes.

## Send OTP

 - [POST /api/certificate/sendOtp](https://docs.namirial.app/products/leandisposable/openapi/certificate/sendotp.md): Sends an OTP code to the holder via SMS or email. Use certIdOtp and deviceCode returned by enroll. See sendOtp.

## Validate certificate data

 - [POST /api/certificate/validate](https://docs.namirial.app/products/leandisposable/openapi/certificate/validatecertificate.md): Validates the OTP code entered by the holder. See validate.

## Check holder data

 - [POST /api/certificate/{lraId}/checkData](https://docs.namirial.app/products/leandisposable/openapi/certificate/checkdata.md): Validates holder data, document and certificate parameters before enrolling. Optional step — use it to detect validation errors before calling enroll. See checkData.

## Check holder data with eID assertion

 - [POST /api/certificate/{lraId}/checkDataWitheIDAssertion](https://docs.namirial.app/products/leandisposable/openapi/certificate/checkdatawitheidassertion.md): Validates holder data using an eID assertion before enrolling. Checks: mandatory fields, allowed values, LRA authorization for the eID type. See checkDataWitheIDAssertion and How to enroll with eID assertion.

## Enroll disposable certificate

 - [POST /api/certificate/{lraId}/enroll](https://docs.namirial.app/products/leandisposable/openapi/certificate/enroll.md): Enrolls a disposable certificate for the holder. Returns certIdOtp and deviceCode required by sendOtp and validate. See enroll.

## Enroll disposable certificate with eID assertion

 - [POST /api/certificate/{lraId}/enrollDisposableWitheIDAssertion](https://docs.namirial.app/products/leandisposable/openapi/certificate/enrolldisposablewitheidassertion.md): Enrolls a disposable certificate using an eID assertion. Returns certificate details and OTP identifier (if otpType=SMS or otpType=EMAIL). See enrollDisposableWitheIDAssertion and How to enroll with eID assertion.

