POST api/auth/otp/verify

Request Information

URI Parameters

None.

Body Parameters

OtpVerifyRequest
NameDescriptionTypeAdditional information
MobileNo

string

None.

OtpCode

string

None.

UnigueId

string

None.

SessionNo

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "MobileNo": "sample string 1",
  "OtpCode": "sample string 2",
  "UnigueId": "sample string 3",
  "SessionNo": 4
}

application/xml, text/xml

Sample:
<OtpVerifyRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XOneApi.DataModels.RequestModels">
  <MobileNo>sample string 1</MobileNo>
  <OtpCode>sample string 2</OtpCode>
  <SessionNo>4</SessionNo>
  <UnigueId>sample string 3</UnigueId>
</OtpVerifyRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

OtpAuthorizeResult
NameDescriptionTypeAdditional information
IsOtpValid

boolean

None.

IsAuthorized

boolean

None.

IsRegistered

boolean

None.

CustomerInfo

BaseCustomerResult

None.

Token

string

None.

ErrorCode

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IsOtpValid": true,
  "IsAuthorized": true,
  "IsRegistered": true,
  "CustomerInfo": {
    "BirthDate": "2025-12-06T11:02:49.0161101+07:00",
    "ContactTelephoneExtNo": "sample string 1",
    "ContactTelephoneNo": "sample string 2",
    "CurrentAddress1": "sample string 3",
    "CurrentAddress2": "sample string 4",
    "CurrentAddress3": "sample string 5",
    "CurrentAddressProvinceCode": "sample string 6",
    "CurrentAddressProvinceName": "sample string 7",
    "CustomerCode": "sample string 8",
    "CustomerCountryCode": "sample string 9",
    "CustomerCountryName": "sample string 10",
    "CustomerDefaultId": "sample string 11",
    "CustomerDefaultIdTypeCode": "sample string 12",
    "CustomerDefaultIdTypeName": "sample string 13",
    "CustomerDocuments": [
      {
        "CustomerCode": "sample string 1",
        "CustomerId": 2,
        "DocumentDesc": "sample string 3",
        "DocumentId": 4,
        "DocumentKey": "sample string 5",
        "DocumentType": "sample string 6",
        "FileContentType": "sample string 7",
        "Note": "sample string 8",
        "Sequence": 9,
        "Status": "sample string 10",
        "UpdateUser": "sample string 11"
      },
      {
        "CustomerCode": "sample string 1",
        "CustomerId": 2,
        "DocumentDesc": "sample string 3",
        "DocumentId": 4,
        "DocumentKey": "sample string 5",
        "DocumentType": "sample string 6",
        "FileContentType": "sample string 7",
        "Note": "sample string 8",
        "Sequence": 9,
        "Status": "sample string 10",
        "UpdateUser": "sample string 11"
      }
    ],
    "CustomerGuid": 14,
    "CustomerName": "sample string 15",
    "CustomerTypeCode": "sample string 16",
    "CustomerTypeName": "sample string 17",
    "DocumentStatus": "sample string 18",
    "Email": "sample string 19",
    "IsEmailVerified": true,
    "IsMobileVerified": true,
    "MobilePhoneNo": "sample string 22",
    "ErrorCode": "sample string 23",
    "Message": "sample string 24",
    "ResultCode": "sample string 25"
  },
  "Token": "sample string 4",
  "ErrorCode": "sample string 5"
}

application/xml, text/xml

Sample:
<OtpAuthorizeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XOneApi.DataModels.ResultModels">
  <CustomerInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/CustomerServiceLib.DataObjects">
    <d2p1:ErrorCode>sample string 23</d2p1:ErrorCode>
    <d2p1:Message>sample string 24</d2p1:Message>
    <d2p1:ResultCode>sample string 25</d2p1:ResultCode>
    <d2p1:BirthDate>2025-12-06T11:02:49.0161101+07:00</d2p1:BirthDate>
    <d2p1:ContactTelephoneExtNo>sample string 1</d2p1:ContactTelephoneExtNo>
    <d2p1:ContactTelephoneNo>sample string 2</d2p1:ContactTelephoneNo>
    <d2p1:CurrentAddress1>sample string 3</d2p1:CurrentAddress1>
    <d2p1:CurrentAddress2>sample string 4</d2p1:CurrentAddress2>
    <d2p1:CurrentAddress3>sample string 5</d2p1:CurrentAddress3>
    <d2p1:CurrentAddressProvinceCode>sample string 6</d2p1:CurrentAddressProvinceCode>
    <d2p1:CurrentAddressProvinceName>sample string 7</d2p1:CurrentAddressProvinceName>
    <d2p1:CustomerCode>sample string 8</d2p1:CustomerCode>
    <d2p1:CustomerCountryCode>sample string 9</d2p1:CustomerCountryCode>
    <d2p1:CustomerCountryName>sample string 10</d2p1:CustomerCountryName>
    <d2p1:CustomerDefaultId>sample string 11</d2p1:CustomerDefaultId>
    <d2p1:CustomerDefaultIdTypeCode>sample string 12</d2p1:CustomerDefaultIdTypeCode>
    <d2p1:CustomerDefaultIdTypeName>sample string 13</d2p1:CustomerDefaultIdTypeName>
    <d2p1:CustomerDocuments>
      <d2p1:CustomerDocumentData>
        <d2p1:CustomerCode>sample string 1</d2p1:CustomerCode>
        <d2p1:CustomerId>2</d2p1:CustomerId>
        <d2p1:DocumentDesc>sample string 3</d2p1:DocumentDesc>
        <d2p1:DocumentId>4</d2p1:DocumentId>
        <d2p1:DocumentKey>sample string 5</d2p1:DocumentKey>
        <d2p1:DocumentType>sample string 6</d2p1:DocumentType>
        <d2p1:FileContentType>sample string 7</d2p1:FileContentType>
        <d2p1:Note>sample string 8</d2p1:Note>
        <d2p1:Sequence>9</d2p1:Sequence>
        <d2p1:Status>sample string 10</d2p1:Status>
        <d2p1:UpdateUser>sample string 11</d2p1:UpdateUser>
      </d2p1:CustomerDocumentData>
      <d2p1:CustomerDocumentData>
        <d2p1:CustomerCode>sample string 1</d2p1:CustomerCode>
        <d2p1:CustomerId>2</d2p1:CustomerId>
        <d2p1:DocumentDesc>sample string 3</d2p1:DocumentDesc>
        <d2p1:DocumentId>4</d2p1:DocumentId>
        <d2p1:DocumentKey>sample string 5</d2p1:DocumentKey>
        <d2p1:DocumentType>sample string 6</d2p1:DocumentType>
        <d2p1:FileContentType>sample string 7</d2p1:FileContentType>
        <d2p1:Note>sample string 8</d2p1:Note>
        <d2p1:Sequence>9</d2p1:Sequence>
        <d2p1:Status>sample string 10</d2p1:Status>
        <d2p1:UpdateUser>sample string 11</d2p1:UpdateUser>
      </d2p1:CustomerDocumentData>
    </d2p1:CustomerDocuments>
    <d2p1:CustomerGuid>14</d2p1:CustomerGuid>
    <d2p1:CustomerName>sample string 15</d2p1:CustomerName>
    <d2p1:CustomerTypeCode>sample string 16</d2p1:CustomerTypeCode>
    <d2p1:CustomerTypeName>sample string 17</d2p1:CustomerTypeName>
    <d2p1:DocumentStatus>sample string 18</d2p1:DocumentStatus>
    <d2p1:Email>sample string 19</d2p1:Email>
    <d2p1:IsEmailVerified>true</d2p1:IsEmailVerified>
    <d2p1:IsMobileVerified>true</d2p1:IsMobileVerified>
    <d2p1:MobilePhoneNo>sample string 22</d2p1:MobilePhoneNo>
  </CustomerInfo>
  <ErrorCode>sample string 5</ErrorCode>
  <IsAuthorized>true</IsAuthorized>
  <IsOtpValid>true</IsOtpValid>
  <IsRegistered>true</IsRegistered>
  <Token>sample string 4</Token>
</OtpAuthorizeResult>