# How to enroll a disposable with an assertion provided by an authorized eID

To enroll a disposable using an authorized assertion you have to:

* specify the [`DisposableeIDAssertionHolder`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposableeidassertionholder) object providing the country and type of the eID
Check the [authorized eIDs](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-eid-identification)
* specify the [`DisposableCertificate`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposablecertificate)object, providing:
  * `type` = certificate type
  * `otpType` = otp type
* specify the [`DisposableContacts`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposablecontacts)object:
  * if an OTP is required and the type is SMS
    * specify **`otpType=SMS`** in the [`DisposableCertificate`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposablecertificate)object
    * (Optional) specify the phoneNumber with the **mobile** property in the [`DisposableContacts`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposablecontacts)object.
If this property is specified, this phonenumber will be used to send the otp.
If it is **not** specified and the assertion used in the [`DisposableeIDAssertionHolder`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposableeidassertionholder) contains a phoneNumber, this number will be used to send the otp.
If it is **not** specified and the assertion **doesn't contain** the phoneNumber an error is triggered.
  * if an OTP is required and the type is EMAIL
    * specify **`otpType=EMAIL`** in the [`DisposableCertificate`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposablecertificate)object
    * (Optional) specify the **email** property in the [`DisposableContacts`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposablecontacts)object
If this property is specified, this email will be used to send the otp.
If it is **not** specified and the assertion used in the [`DisposableeIDAssertionHolder`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposableeidassertionholder) contains an email, this will be used to send the otp.
If it is **not** specified and the assertion **doesn't contain** the email an error is triggered.
  * if an OTP is required and the type is WHATSAPP
    * specify **`otpType=WHATSAPP`** in the [`DisposableCertificate`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposablecertificate)object
    * (Optional) specify the phoneNumber with the **mobile** property in the [`DisposableContacts`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposablecontacts)object.
If this property is specified, this phonenumber will be used to send the otp via WhatsApp.
If it is **not** specified and the assertion used in the [`DisposableeIDAssertionHolder`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposableeidassertionholder) contains a phoneNumber, this number will be used to send the otp.
If it is **not** specified and the assertion **doesn't contain** the phoneNumber an error is triggered.


**Then use these methods:**

* [`checkDataWitheIDAssertion`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-checkdata/lean-checkdata-eid-assertion-method) (optional)
* [`getDisposableContractWitheIDAssertion`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-documents/lean-getdisposablecontractwitheidassertion-method) (optional)
* use the [`enrollDisposableWitheIDAssertion`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-enroll/lean-enroll-eid-assertion-method)method to enroll the certificate
* [`sendOtp`](https://namirial.atlassian.net/wiki/spaces/TT/pages/90440185) : send the otp (if required)
* `signPKCS1WithSHA256` in the FRA service or use SWS: sign the document
* [`uploadDoc`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-documents/lean-uploaddoc-method)  to upload the evidence of the otp or the authentication flow (optional)


***To use otpType=EMAIL, otpType=WHATSAPP or otpType=NO_OTP the LRA has*** ***to be authorized.***