Account attribute

Attribute type idType specific restriction parameters
stringclientSpecificListOfValues: specifies predefined list of values for attribute. For account attribute it’s accountList.
📘

Account attribute is a special attribute. It will be automatically populated with the list of accounts defined for the channel.

🚧

Only one attribute can be set as an account identifier. This is the attribute that links a product to a specific account. Read more about accounts here: Accounts Authentication.

This attribute should be attached to the root category so it’s always available.

Code Examples:

{
  "id" : "ACCOUNT",
  "name" : "Account identifier",
  "type" : {
    "id" : "string",
    "restriction" : {
      "parameters" : {
        "clientSpecificListOfValues" : "accountList"
      }
    }
  }
}
Attribute accountAttribute = AttributeBuilder
        .accountAttribute("ACCOUNT", "Account identifier")
        .build();