{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-products/leandisposable/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition","tabs","tab"]},"type":"markdown"},"seo":{"title":"Lean - sendOtp","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":"lean---sendotp","__idx":0},"children":["Lean - sendOtp"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use this method to send an otp.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"if ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposableCertficate"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["otpType = SMS"]}]}," an otp code is sent to phone number of the holder defined 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":"br","attributes":{},"children":[]},"if ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposableCertficate"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["otpType = EMAIL"]}]}," an otp code is sent to email of the holder defined 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":"br","attributes":{},"children":[]},"if ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposableCertficate"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["otpType = WHATSAPP"]}]}," an otp code is sent via WhatsApp to the phone number of the holder defined 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":"Admonition","attributes":{"type":"info","name":""},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To use the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["templateId/language"]}," pair it is mandatory to define and config these value in the settings before using them."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["For the full technical reference, see the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/openapi/certificate/sendotp"},"children":["OpenAPI specification"]}]},"."]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"label":"REST API","disable":false},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"endpoint","__idx":1},"children":["Endpoint"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"POST /api/certificate/sendOtp\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"headers","__idx":2},"children":["Headers"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Name"},"children":["Name"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Content-Type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Must be ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["application/json"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Authorization"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Basic Auth credentials."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"body-parameters","__idx":3},"children":["Body parameters"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["certIdOtp"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The identification of the OTP associated to the disposable."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["deviceCode"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The device code of the issued certificate."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["smsOptions"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["object"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Depends"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required if ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["otpType=SMS"]},". Properties: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["textSMS"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["templateId"]}," (template identifier), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["language"]}," (ISO 639-1 alpha-2). ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["templateId"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["language"]}," are required if ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["textSMS"]}," is omitted or empty. Adding ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["$OTP$"]}," in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["textSMS"]}," inserts the OTP at that position; otherwise it is appended at the end."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["emailOptions"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["object"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Depends"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required if ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["otpType=EMAIL"]},". Properties: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["templateId"]}," (required), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["language"]}," (required, ISO 639-1 alpha-2)."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["whatsappOptions"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["object"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Depends"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required if ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["otpType=WHATSAPP"]},". Properties: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["templateId"]}," (integer, required), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["language"]}," (ISO 3166-1 alpha-2, required), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["parameters"]}," (array, required — list of template parameters as key-value maps, use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["$OTP$"]}," as placeholder for the OTP code)."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request-example","__idx":4},"children":["Request example"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n    \"certIdOtp\": 2587763,\n    \"deviceCode\": \"RHIDP2412063503288\",\n    \"smsOptions\": {\n        \"textSMS\": \"Your OTP code: $OTP$\"\n    }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"response-examples","__idx":5},"children":["Response examples"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["200 — Success"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Empty body\n"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"SOAP API","disable":false},"children":[{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The SOAP interface is deprecated. Use the REST API instead."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," sendOtp"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Parameter"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Mandatory"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["certIdOtp"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the identification of the otp associate to the disposable"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["YES"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["deviceCode"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the device code of the issued certificate"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["YES"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["smsOptions"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["It is used only if the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["otpType=SMS"]},"  ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"The smsOptions has these properties: ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," -",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["textSMS"]},":"]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"  -",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["templateId"]},": identifier of the template"]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," -",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["language"]}]}," (iso country code alpha2 two-letter code) ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["templateId"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["language"]}," parameters are required if the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["textSMS"]}," is omitted or empty.  ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"The templateId is a string that identify an authorized text for the sms. It can be customized by LRA. With the addition of tag ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["$OTP$"]}," inside the field textSMS the otp code is inserted in the desired position, while in the absence of this tag it will be inserted at the end."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["YES if ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["otpType=SMS"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["emailOptions"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["It is used only if the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["otpType=EMAIL"]},"  ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"The emailOptions has these properties: ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," -",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["templateId"]},": identifier of the template [required]"]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," -",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["language"]},"  [required]"]},"  (iso country code alpha2 two-letter code) ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["templateId"]}," is a string that identify an authorized subject/body for the email. It can be customized by LRA."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["YES if ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["otpType=EMAIL"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request-example-1","__idx":6},"children":["Request example"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["SendOtp - SMS with smsOptions:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"xml","header":{"controls":{"copy":{}}},"source":"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ser=\"http://service.ws.nam/\">\n  <soapenv:Header/>\n  <soapenv:Body>\n    <ser:sendOtp>\n      <certIdOtp>1828707</certIdOtp>\n      <deviceCode>RHIDP2311037123139</deviceCode>\n      <smsOptions>    \n        <templateId>1</templateId>\n        <language>IT</language>\n      </smsOptions>\n    </ser:sendOtp>\n  </soapenv:Body>\n</soapenv:Envelope>\n","lang":"xml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["SendOtp - SMS with textSMS parameter"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"xml","header":{"controls":{"copy":{}}},"source":"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ser=\"http://service.ws.nam/\">\n  <soapenv:Header/>\n  <soapenv:Body>\n    <ser:sendOtp>\n      <certIdOtp>1828707</certIdOtp>\n      <deviceCode>RHIDP2311037123139</deviceCode>\n      <smsOptions>    \n        <textSMS>TEST </textSMS>\n      </smsOptions>\n    </ser:sendOtp>\n  </soapenv:Body>\n</soapenv:Envelope>\n","lang":"xml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["SendOtp - EMAIL"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"xml","header":{"controls":{"copy":{}}},"source":"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ser=\"http://service.ws.nam/\">\n  <soapenv:Header/>\n  <soapenv:Body>\n    <ser:sendOtp>\n      <certIdOtp>1828707</certIdOtp>\n      <deviceCode>RHIDP2311037123139</deviceCode>\n      <emailOptions>    \n        <templateId>1</templateId>\n        <language>IT</language>\n      </emailOptions>\n    </ser:sendOtp>\n  </soapenv:Body>\n</soapenv:Envelope>\n","lang":"xml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"response-example","__idx":7},"children":["Response example"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"xml","header":{"controls":{"copy":{}}},"source":"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n    <soap:Body>\n        <ns2:sendOtpResponse xmlns:ns2=\"http://service.ws.nam/\"/>\n    </soap:Body>\n</soap:Envelope>\n","lang":"xml"},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["‌"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"error-codes","__idx":8},"children":["Error codes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The main errors that can be found within this function are (all return HTTP ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["500"]},"):"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Error code"},"children":["Error code"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-2-empty-field"},"children":["2"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Some required fields are missing"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-6-generic-exception---internal-exception"},"children":["6"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Generic exception — internal exception"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["62"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["certIdOtp"]}," is not valid"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["66"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The device OTP is not active"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["71"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The device OTP is disabled"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-85-device-type-missing-or-not-allowed"},"children":["85"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["deviceCode"]}," is not valid"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-99-otp-was-not-sent"},"children":["99"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OTP was not sent"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-100-the-mobile-phone-number-is-not-valid"},"children":["100"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The mobile phone number is not valid"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-101-sms-blocked-by-the-watchlist"},"children":["101"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SMS blocked by the watchlist"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-102-the-email-address-is-not-valid"},"children":["102"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The email address is not valid"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-103-the-otp-service-has-exceeded-the-timeout"},"children":["103"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The OTP service has exceeded the timeout"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["138"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The device OTP is not an SMS OTP device"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-231-otp-is-blocked"},"children":["231"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OTP is blocked"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-241-lra-not-authorized-to-use-this-type-of-otp"},"children":["241"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["LRA not authorized to use this OTP type"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For authentication errors, see ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/authentication"},"children":["Authentication"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For details on how to handle errors, see ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors"},"children":["How to handle errors"]},"."]}]},"headings":[{"value":"Lean - sendOtp","id":"lean---sendotp","depth":1},{"value":"Endpoint","id":"endpoint","depth":4},{"value":"Headers","id":"headers","depth":4},{"value":"Body parameters","id":"body-parameters","depth":4},{"value":"Request example","id":"request-example","depth":4},{"value":"Response examples","id":"response-examples","depth":4},{"value":"Request example","id":"request-example-1","depth":4},{"value":"Response example","id":"response-example","depth":4},{"value":"Error codes","id":"error-codes","depth":4}],"frontmatter":{"seo":{"title":"Lean - sendOtp"}},"lastModified":"2026-05-07T07:59:26.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-send-otp/lean-sendotp-method","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}