Newer Version Available

This content describes an older version of this product. View Latest

Commerce Webstore My Profile Initiate OTP

Initiate the one-time password (OTP) via the specified method, such as SMS or Email. The API returns a unique identifier associated with the OTP request.

This process make sures that any changes to buyer's critical information, such as email and phone number, are securely verified before the update using the Commerce Webstore My Profile PATCH method.

Resource
1/commerce/webstores/webstoreId/myprofile/actions/initOTP
Resource example
1https://yourInstance.salesforce.com/services/data/v66.0/commerce/webstores/0ZExx000000005rGAA/myprofile/actions/initOTP
Available version
64.0
HTTP methods
POST
Request body for POST
JSON example
1{
2  "method": "SMS",
3  "reCaptchaToken": "03AFcWe45uIQZjl6LznRTupQwTySasFVbN7_8Pj9",
4  "type": "Verify"
5}
Properties
Name Type Description Required or Optional Available Version
method String The mode used to send one-time-password (OTP) for verification. Possible values are:
  • EMAIL
  • SMS
Required 64.0
reCaptchaToken String An encrypted response generated by Google reCAPTCHA. This token is used as a unique identifier to verify the user's identity. Required 64.0
type String The type for which one-time-password (OTP) is required to be sent. Possible values are:
  • StepUp
  • Verify
Required 64.0
Response body for POST
Buyer Profile Initiate OTP Output