Skip to main content
PUT
/
commerce
/
customer
/
b2baccounts
/
{accountId}
/
user
/
{userId}
Error
A valid request URL is required to generate request examples
{
  "emailAddress": "<string>",
  "userName": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "localeCode": "<string>",
  "userId": "<string>",
  "roles": [
    {
      "userId": "<string>",
      "assignedInScope": {
        "type": "<string>",
        "id": 123,
        "name": "<string>"
      },
      "roleId": 123,
      "roleName": "<string>",
      "roleResources": [
        {
          "type": "<string>",
          "id": "<string>"
        }
      ],
      "roleTags": [
        "<string>"
      ],
      "auditInfo": {
        "updateDate": "2023-11-07T05:31:56Z",
        "createDate": "2023-11-07T05:31:56Z",
        "updateBy": "<string>",
        "createBy": "<string>"
      }
    }
  ],
  "isLocked": true,
  "isActive": true,
  "isRemoved": true,
  "acceptsMarketing": true,
  "hasExternalPassword": true,
  "last2FaDate": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme.

Path Parameters

accountId
integer<int32>
required
userId
string
required

Query Parameters

responseFields
string

limits which fields are returned in the response body

Body

application/json

Customer account. Customers provide contact information, view order history, and set email preferences on their account. Merchants can edit accounts to add internal notes or assign them to segments.

emailAddress
string | null
userName
string | null
firstName
string | null
lastName
string | null
localeCode
string | null
userId
string | null

Unique identifier of the user who is currently logged in. This is null if the user is anonymous (not logged in). Unicode data with a maximum length of 55 characters.

roles
object[] | null
isLocked
boolean
isActive
boolean
isRemoved
boolean
acceptsMarketing
boolean

If true, the customer prefers to receive marketing material such as newsletters or email offers.

hasExternalPassword
boolean

Indicates if an external password is set on this account

last2FaDate
string<date-time> | null

Response

Success

Customer account. Customers provide contact information, view order history, and set email preferences on their account. Merchants can edit accounts to add internal notes or assign them to segments.

emailAddress
string | null
userName
string | null
firstName
string | null
lastName
string | null
localeCode
string | null
userId
string | null

Unique identifier of the user who is currently logged in. This is null if the user is anonymous (not logged in). Unicode data with a maximum length of 55 characters.

roles
object[] | null
isLocked
boolean
isActive
boolean
isRemoved
boolean
acceptsMarketing
boolean

If true, the customer prefers to receive marketing material such as newsletters or email offers.

hasExternalPassword
boolean

Indicates if an external password is set on this account

last2FaDate
string<date-time> | null