Skip to main content
PUT
/
commerce
/
customer
/
b2baccounts
/
{accountId}
/
status
/
{actionName}
Error
A valid request URL is required to generate request examples
{
  "id": 123,
  "customerSet": "<string>",
  "commerceSummary": {
    "totalOrderAmount": {
      "currencyCode": "<string>",
      "amount": 123
    },
    "orderCount": 123,
    "lastOrderDate": "2023-11-07T05:31:56Z",
    "wishlistCount": 123,
    "visitsCount": 123
  },
  "contacts": [
    {
      "accountId": 123,
      "types": [
        {
          "name": "<string>",
          "isPrimary": true
        }
      ],
      "auditInfo": {
        "updateDate": "2023-11-07T05:31:56Z",
        "createDate": "2023-11-07T05:31:56Z",
        "updateBy": "<string>",
        "createBy": "<string>"
      },
      "faxNumber": "<string>",
      "label": "<string>",
      "id": 123,
      "email": "<string>",
      "firstName": "<string>",
      "middleNameOrInitial": "<string>",
      "lastNameOrSurname": "<string>",
      "companyOrOrganization": "<string>",
      "phoneNumbers": {
        "home": "<string>",
        "mobile": "<string>",
        "work": "<string>"
      },
      "address": {
        "address1": "<string>",
        "address2": "<string>",
        "address3": "<string>",
        "address4": "<string>",
        "cityOrTown": "<string>",
        "stateOrProvince": "<string>",
        "postalOrZipCode": "<string>",
        "countryCode": "<string>",
        "addressType": "<string>",
        "isValidated": true
      }
    }
  ],
  "companyOrOrganization": "<string>",
  "notes": [
    {
      "id": 123,
      "content": "<string>",
      "auditInfo": {
        "updateDate": "2023-11-07T05:31:56Z",
        "createDate": "2023-11-07T05:31:56Z",
        "updateBy": "<string>",
        "createBy": "<string>"
      }
    }
  ],
  "attributes": [
    {
      "auditInfo": {
        "updateDate": "2023-11-07T05:31:56Z",
        "createDate": "2023-11-07T05:31:56Z",
        "updateBy": "<string>",
        "createBy": "<string>"
      },
      "fullyQualifiedName": "<string>",
      "attributeDefinitionId": 123,
      "values": [
        "<unknown>"
      ]
    }
  ],
  "segments": [
    {
      "id": 123,
      "code": "<string>",
      "name": "<string>",
      "description": "<string>",
      "auditInfo": {
        "updateDate": "2023-11-07T05:31:56Z",
        "createDate": "2023-11-07T05:31:56Z",
        "updateBy": "<string>",
        "createBy": "<string>"
      }
    }
  ],
  "taxExempt": true,
  "taxId": "<string>",
  "externalId": "<string>",
  "auditInfo": {
    "updateDate": "2023-11-07T05:31:56Z",
    "createDate": "2023-11-07T05:31:56Z",
    "updateBy": "<string>",
    "createBy": "<string>"
  },
  "customerSinceDate": "2023-11-07T05:31:56Z",
  "accountType": "<string>",
  "migrationRequired": true,
  "users": [
    {
      "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"
    }
  ],
  "isActive": true,
  "priceList": "<string>",
  "salesReps": [
    {
      "accountId": 123,
      "adminUserId": "<string>"
    }
  ],
  "rootAccountId": 123,
  "parentAccountId": 123,
  "approvalStatus": "<string>",
  "priority": 123
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme.

Path Parameters

accountId
integer<int32>
required
actionName
string
required

Query Parameters

responseFields
string

limits which fields are returned in the response body

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.

id
integer<int32>

Unique identifier of the account, also known as a customer number.

customerSet
string | null
commerceSummary
object

Commerce (orders and wishlists) on a customer account which lists all the orders the customer has made with the order date, order amount, and status. Includes cancellations and returns. Also includes wishlist information.

contacts
object[] | null

List of contacts for this account. A customer account can have multiple contacts for billing and shipping addresses.

companyOrOrganization
string | null

The company or organization name for an account.

notes
object[] | null

List of notes for the account. Merchants use these internal notes, for example, to make a note of a customer's interests or complaints. Notes are available only from the merchant's view, customers cannot view these notes.

attributes
object[] | null

List of attributes for the account.

segments
object[] | null

List of segments assigned to account. Merchants create segments, for example, to manage discounts or assign VIP status. Then they assign the account to the segment. An account can belong to several segments or none at all.

taxExempt
boolean
taxId
string | null
externalId
string | null
auditInfo
object
customerSinceDate
string<date-time> | null

Date when the customer account is created.

accountType
string | null

Type of account.

migrationRequired
boolean

Indicates Subscription migration is required or not.

users
object[] | null

List of B2B users on the account.

isActive
boolean | null

Is the B2B account active?

priceList
string | null

Price list on B2B account.

salesReps
object[] | null

List of sales rep on B2B account.

rootAccountId
integer<int32> | null

Root account Id in B2B hierarchy

parentAccountId
integer<int32> | null

Parent account Id in B2B hierarchy

approvalStatus
string | null

Status on B2B account.

priority
integer<int32> | null

Priority of the b2b account for order release