v1

latestOpenAPI 3.0.12026-07-26381328555.2 KB
B2BAccount

Create a new role and associate it with specified accounts.

Required fields:

  • Name: Role name (must be unique within tenant)
  • Behaviors: List of behavior IDs (at least one required)
  • AccountIds: List of account IDs to associate with role (at least one required)
post/commerce/customer/b2baccounts/roles

Query parameters

responseFieldsstring

limits which fields are returned in the response body

Request body

accountIdsinteger[] nullable

List of Account IDs associated with this role. Required for CreateRole and UpdateRole operations.

behaviorsinteger[] nullable

List of Role Behaviors

idinteger

Unique Identifier for the Role

isSystemRoleboolean

Indicate if the Role is a System Role or Custom Role

namestring nullable

Name for the Role

Response

OK

accountIdsinteger[] nullable

List of Account IDs associated with this role. Required for CreateRole and UpdateRole operations.

behaviorsinteger[] nullable

List of Role Behaviors

idinteger

Unique Identifier for the Role

isSystemRoleboolean

Indicate if the Role is a System Role or Custom Role

namestring nullable

Name for the Role