# Enroll methods

Use these methods to enroll a lean disposable:

- [**enroll**](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-enroll/lean-enroll-method) — standard process
- [**enrollDisposableWitheIDAssertion**](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-enroll/lean-enroll-eid-assertion-method) — process based on an eID assertion


## Response

The enroll methods return a [`DisposableIssued`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposableissued) object with the following fields:

| Field | Description |
|  --- | --- |
| `cert` | The issued certificate |
| `certIdOtp` | OTP identifier associated with the certificate |
| `certType` | [Type of certificate issued](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-enum-types#disposabletype): `DISPOSABLE`, `LONG_LIVED`, `DISPOSABLE_30_DAYS` |
| `certSerialNumber` | Serial number of the issued certificate |
| `certUsageLimit` | Limitation of use (LoU) in the certificate |
| `deviceCode` | Device code of the issued certificate |


## Errors

All errors below return HTTP `500`.

| Error | Description |
|  --- | --- |
| [Error 2](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-2-empty-field) | Some required fields are missing |
| [Error 3](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-3-empty-fields-not-allowed-or-wrong-format) | Empty field(s), field(s) not allowed or field(s) in wrong format |
| Error 5 | Limitation of use (LoU) not valid |
| [Error 6](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-6-generic-exception) | Generic exception - Internal exception |
| [Error 8](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-8-alphanumeric-symbols-not-allowed-in-the-contacts) | Alphanumeric symbols not allowed in the contacts |
| Error 9 | The password in `cert.password` is not valid |
| Error 10 | The security code in `cert.securityCode` is not valid |
| Error 26 | Foreign country not valid in `holder.identificationCountry` |
| Error 80 | Certificate type in `cert.type` not valid or not authorized |
| [Error 81](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-81-wrong-tax-code-or-personal-identification-number) | Wrong tax code or personal identification number |
| [Error 88](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-88-the-document-type-is-not-valid) | Document type in `doc.documentType` not valid |
| Error 96 | The DN length exceeds 400 characters |
| Error 180 | No more disposable certificates available for the LRA |
| Error 221 | Mismatch between `holder.identificationType` and `holder.identificationCountry` |
| Error 224 | Some fields contain a non UTF-8 character |
| [Error 235](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-235-wrong-assertion) | Wrong assertion |
| [Error 237](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-237-the-assertion-is-expired) | The assertion is expired |
| [Error 238](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-238-the-assertion-signature-is-invalid) | The assertion signature is invalid |
| [Error 241](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-241-lra-not-authorized-to-use-this-otp-type) | LRA not authorized to use this OTP type |
| [Error 2091](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-2091-name-doesnt-belong-to-the-tax-code) | Name doesn't belong to the tax code entered |
| [Error 10068](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-10068-non-unique-cell-phone-number) | Non-unique cell phone number |
| [Error 11003](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-11003-no-results-found-for-the-holder) | No results found for the holder |
| [Error 11004](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-11004-mismatch-in-identification-holder-data) | Mismatch in identification holder data |
| [Error 11006](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-11006-mismatch-in-document-type) | Mismatch in document type |
| [Error 11007](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-11007-mismatch-in-document-number) | Mismatch in document number |
| [Error 11008](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-11008-mismatch-in-contacts) | Mismatch in contacts |
| [Error 11010](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-11010-the-identification-type-is-not-valid) | Identification type in `holder.identificationType` is not valid |


For details on how to handle errors, see [How to handle errors](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors).