younifyd
Menu

Get Reset Password Token

Get reset password token.

POST/organizations/{organizationId}/customers/password/actions/create-reset-token

Use it in a workflow

  1. Add a step and choose the Salesforce Commerce Cloud connector.
  2. Pick the Get Reset Password Token action (under Shopper Customers).
  3. Fill in the fields below, then reference the result from later steps as {{getResetPasswordToken.response.data}}.

Request

Path parameters

organizationIdstringrequired

An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character [realm identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#realm-id) and a 3-character [instance type identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#instance-id).

Query parameters

siteIdstringrequired

The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.

Request body

Enter the body as JSON in the step's Body field.

loginstringrequired

The customer's login.

json
{
  "login": "loginId"
}

Response

Returns 200 with an object. Read it in later steps with {{getResetPasswordToken.response.data.<field>}}.

loginstring

The customer's login.

emailstring

The customer's email address.

resetTokenstring

Temporary token generated that will be used to reset password.

expiresInMinutesinteger (int32)

Reset token expiry (in minutes).

json
{
  "login": "loginId",
  "email": "jdoe@customer.com",
  "resetToken": "R1e2s3e4t5T6o7k8e9n0",
  "expiresInMinutes": 30
}

Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.