POST api/Customer/ForgotUsernamePassword/3/ChangePassword?Signature={Signature}&Language={Language}

[3] Once the OTP is verified, the customer is now allowed to key-in his/her new password.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Signature

SHA256(Body + Client_Key + Login_Salt + ForgotUsernamePassword_Salt)

string

Required

Language

API.LANGUAGE

Default value is en_US

Body Parameters

Requests.Customers.ForgotUsernamePassswords.ChangePassword
NameDescriptionTypeAdditional information
ClientCode

string

None.

DateTime

date

None.

Content

Forms.Customers.ForgotUsernamePasswords.ChangePassword

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientCode": "sample string 1",
  "DateTime": "2024-11-18T12:17:08.9590403+08:00",
  "Content": {
    "CustomerForgotUsernamePasswordID": 1,
    "NewPassword": "sample string 2"
  }
}

text/html

Sample:
{"ClientCode":"sample string 1","DateTime":"2024-11-18T12:17:08.9590403+08:00","Content":{"CustomerForgotUsernamePasswordID":1,"NewPassword":"sample string 2"}}

application/xml, text/xml

Sample:
<ChangePassword xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CBSS_API.App_Code.Requests.Customers.ForgotUsernamePassswords">
  <ClientCode xmlns="http://schemas.datacontract.org/2004/07/CBSS_API.App_Code">sample string 1</ClientCode>
  <Content xmlns:d2p1="http://schemas.datacontract.org/2004/07/CBSS_API.Forms.Customers.ForgotUsernamePasswords" xmlns="http://schemas.datacontract.org/2004/07/CBSS_API.App_Code">
    <d2p1:CustomerForgotUsernamePasswordID>1</d2p1:CustomerForgotUsernamePasswordID>
    <d2p1:NewPassword>sample string 2</d2p1:NewPassword>
  </Content>
  <DateTime xmlns="http://schemas.datacontract.org/2004/07/CBSS_API.App_Code">2024-11-18T12:17:08.9590403+08:00</DateTime>
</ChangePassword>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Responses.Customers.ForgotUsernamePassswords.ChangePassword
NameDescriptionTypeAdditional information
IsSuccessful

boolean

None.

Messages

Collection of Models.Message

None.

ClientCode

string

None.

DateTime

date

None.

Content

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccessful": true,
  "Messages": [],
  "ClientCode": "sample string 2",
  "DateTime": "2024-11-18T12:17:09.0371654+08:00",
  "Content": {}
}

text/html

Sample:
{"IsSuccessful":true,"Messages":[],"ClientCode":"sample string 2","DateTime":"2024-11-18T12:17:09.0371654+08:00","Content":{}}

application/xml, text/xml

Sample:
<ChangePassword xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CBSS_API.App_Code.Responses.Customers.ForgotUsernamePassswords">
  <ClientCode xmlns="http://schemas.datacontract.org/2004/07/CBSS_API.App_Code">sample string 2</ClientCode>
  <Content xmlns="http://schemas.datacontract.org/2004/07/CBSS_API.App_Code" />
  <DateTime xmlns="http://schemas.datacontract.org/2004/07/CBSS_API.App_Code">2024-11-18T12:17:09.0371654+08:00</DateTime>
  <IsSuccessful xmlns="http://schemas.datacontract.org/2004/07/CBSS_API.App_Code.Responses">true</IsSuccessful>
</ChangePassword>