{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-products/leandisposable/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"How to enroll a disposable with an OTP by SMS","description":"Integration and usage documentation.","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"how-to-enroll-a-disposable-with-an-otp-by-sms","__idx":0},"children":["How to enroll a disposable with an OTP by SMS"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To enroll a lean disposable and send an otp by sms you have to:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["specify the required ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["mobile"]}," property in the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposablecontacts"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DisposableContacts"]}]}," object"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["(optional) specify ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["otpType=SMS"]}]}," in the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposablecertificate"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DisposableCertificate"]}]},"object. If not specified the default otpType is SMS."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Then use these methods:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-checkdata/lean-checkdata-method"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["checkData"]}]},"/",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-checkdata/lean-checkdata-eid-assertion-method"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["checkDataWitheIDAssertion"]}]}," (optional) : check the validity of the objects passed to the enroll methods"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-documents/lean-getdisposablecontract-method"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["getDisposableContract"]}]},"/",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-documents/lean-getdisposablecontractwitheidassertion-method"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["getDisposableContractWitheIDAssertion"]}]}," (optional)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["an ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-enroll"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["enroll"]}," method"]}," : enroll the certificate"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-send-otp/lean-sendotp-method"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sendOtp"]}]}," : send the otp by sms"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["signPKCS1WithSHA256"]}," in the FRA service or use SWS: sign the document"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-documents/lean-uploaddoc-method"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["uploadDoc"]}]},"  to upload the evidence of the otp or the authentication flow (optional)"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you are still using the deprecated ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-send-otp/lean-sendotpdisposable-method"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sendOtpDisposable"]}]}," method you should replace it with the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["sendOtp"]}," method."]}]},"headings":[{"value":"How to enroll a disposable with an OTP by SMS","id":"how-to-enroll-a-disposable-with-an-otp-by-sms","depth":1}],"frontmatter":{"seo":{"title":"How to enroll a disposable with an OTP by SMS"}},"lastModified":"2026-01-20T14:20:40.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-enroll-disposable-otp-sms","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}