---
title: "Add Account"
method: POST
path: "/commerce/customer/accounts"
tags: ["CustomerAccount"]
---

# Add Account

`POST /commerce/customer/accounts`

Creates a new customer account.

## Query parameters

- `responseFields` string

## Request body

- CustomerAccount — 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.
  - `acceptsMarketing` boolean — If true, the customer prefers to receive marketing material such as newsletters or email offers.
  - `accountType` string, nullable — Type of account.
  - `attributes` CustomerAttribute[], nullable — List of attributes for the account.
    - `adminName` string, nullable
    - `attributeCode` string, required
    - `attributeFQN` string, nullable
    - `attributeMetadata` CommerceRuntimeAttributeMetadataItem[], nullable
      - `key` string, required
      - `value` string, required
    - `auditInfo` AdminUserAuditInfo
      - `createBy` string, nullable
      - `createDate` string, date-time, nullable
      - `updateBy` string, nullable
      - `updateDate` string, date-time, nullable
    - `availableForDiscounts` boolean
    - `availableForOrderRouting` boolean
    - `content` CommerceRuntimeAttributeLocalizedContent
      - `localeCode` string, nullable
      - `value` string, nullable
    - `dataType` string, nullable
    - `displayGroup` string, required
    - `id` integer, nullable
    - `inputType` string, nullable
    - `isActive` boolean, nullable
    - `isMultiValued` boolean, nullable
    - `isReadOnly` boolean
    - `isRequired` boolean, nullable
    - `isVisible` boolean, nullable
    - `namespace` string, nullable
    - `order` integer, nullable
    - `validation` CommerceRuntimeAttributeValidation
      - `maxDateTime` string, date-time, nullable
      - `maxNumericValue` number, double, nullable
      - `maxStringLength` integer, nullable
      - `minDateTime` string, date-time, nullable
      - `minNumericValue` number, double, nullable
      - `minStringLength` integer, nullable
      - `regularExpression` string, nullable
    - `valueType` string, required
    - `vocabularyValues` CommerceRuntimeAttributeVocabularyValue[], nullable
      - `content` CommerceRuntimeAttributeValueLocalizedContent
        - `localeCode` string, required
        - `value` string, required
      - `isHidden` boolean, nullable
      - `sequence` integer, nullable
      - `value` string, required
  - `auditInfo` AdminUserAuditInfo
    - `createBy` string, nullable
    - `createDate` string, date-time, nullable
    - `updateBy` string, nullable
    - `updateDate` string, date-time, nullable
  - `commerceSummary` CommerceSummary — 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.
    - `lastOrderDate` string, date-time, nullable — When the last order was placed.
    - `orderCount` integer — Number of orders listed in the order history of a customer account.
    - `totalOrderAmount` CurrencyAmount — The currency code and amount of an order listed in the order history of a customer account. Currently, only USD is supported.
      - `amount` number, double — Total amount of the order. Currently, only US dollar amounts are supported.
      - `currencyCode` string, nullable — Currency code for the amount of the order. Currently, only "USD" is supported.
    - `visitsCount` integer — Number of visits for this customer across the entire tenant.
    - `wishlistCount` integer — Number of wishlists listed in the wishlist count of a customer account
  - `companyOrOrganization` string, nullable — The company or organization name for an account.
  - `contacts` CustomerContact[], nullable — List of contacts for this account. A customer account can have multiple contacts for billing and shipping addresses.
    - `accountId` integer
    - `address` CommerceRuntimeAddress
      - `address1` string, nullable
      - `address2` string, nullable
      - `address3` string, nullable
      - `address4` string, nullable
      - `addressType` string, nullable
      - `cityOrTown` string, nullable
      - `countryCode` string, nullable
      - `isValidated` boolean, nullable
      - `postalOrZipCode` string, nullable
      - `stateOrProvince` string, nullable
    - `auditInfo` AdminUserAuditInfo
      - `createBy` string, nullable
      - `createDate` string, date-time, nullable
      - `updateBy` string, nullable
      - `updateDate` string, date-time, nullable
    - `companyOrOrganization` string, nullable
    - `email` string, nullable
    - `faxNumber` string, nullable
    - `firstName` string, nullable
    - `id` integer, nullable
    - `label` string, nullable
    - `lastNameOrSurname` string, nullable
    - `middleNameOrInitial` string, nullable
    - `phoneNumbers` CommerceRuntimePhone
      - `home` string, nullable
      - `mobile` string, nullable
      - `work` string, nullable
    - `types` ContactType[], nullable
      - `isPrimary` boolean
      - `name` string, nullable
  - `customerSet` string, nullable
  - `customerSinceDate` string, date-time, nullable — Date when the customer account is created.
  - `emailAddress` string, nullable — "Email addresss of the customer.
  - `externalId` string, nullable
  - `firstName` string, nullable — First name of the customer.
  - `hasExternalPassword` boolean — Indicates if an external password is set on this account
  - `id` integer — Unique identifier of the account, also known as a customer number.
  - `isActive` boolean — Is the account active?
  - `isAnonymous` boolean — Is the account Anonymous?
  - `isLocked` boolean — Is the account locked?
  - `last2FaDate` string, date-time, nullable
  - `lastName` string, nullable — Last name of the customer.
  - `localeCode` string, nullable — Locale Code.
  - `migrationRequired` boolean — Indicates Subscription migration is required or not.
  - `notes` CustomerNote[], nullable — 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.
    - `auditInfo` AdminUserAuditInfo
      - `createBy` string, nullable
      - `createDate` string, date-time, nullable
      - `updateBy` string, nullable
      - `updateDate` string, date-time, nullable
    - `content` string, nullable — Content of the note that the merchant added.
    - `id` integer — Unique identifier of the note.
  - `segments` CustomerCustomerSegment[], nullable — 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.
    - `auditInfo` AdminUserAuditInfo
      - `createBy` string, nullable
      - `createDate` string, date-time, nullable
      - `updateBy` string, nullable
      - `updateDate` string, date-time, nullable
    - `code` string, nullable — Unique identifier of the customer segment.
    - `description` string, nullable — Description of the customer segment.
    - `id` integer — Unique identifier of the customer segment.
    - `name` string, nullable — Name of the customer segment.
  - `taxExempt` boolean
  - `taxId` string, nullable
  - `userId` string, nullable — 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.
  - `userName` string, nullable — User name for the customer account.

## Response `200`

OK

- CustomerAccount — 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.
  - `acceptsMarketing` boolean — If true, the customer prefers to receive marketing material such as newsletters or email offers.
  - `accountType` string, nullable — Type of account.
  - `attributes` CustomerAttribute[], nullable — List of attributes for the account.
    - `adminName` string, nullable
    - `attributeCode` string, required
    - `attributeFQN` string, nullable
    - `attributeMetadata` CommerceRuntimeAttributeMetadataItem[], nullable
      - `key` string, required
      - `value` string, required
    - `auditInfo` AdminUserAuditInfo
      - `createBy` string, nullable
      - `createDate` string, date-time, nullable
      - `updateBy` string, nullable
      - `updateDate` string, date-time, nullable
    - `availableForDiscounts` boolean
    - `availableForOrderRouting` boolean
    - `content` CommerceRuntimeAttributeLocalizedContent
      - `localeCode` string, nullable
      - `value` string, nullable
    - `dataType` string, nullable
    - `displayGroup` string, required
    - `id` integer, nullable
    - `inputType` string, nullable
    - `isActive` boolean, nullable
    - `isMultiValued` boolean, nullable
    - `isReadOnly` boolean
    - `isRequired` boolean, nullable
    - `isVisible` boolean, nullable
    - `namespace` string, nullable
    - `order` integer, nullable
    - `validation` CommerceRuntimeAttributeValidation
      - `maxDateTime` string, date-time, nullable
      - `maxNumericValue` number, double, nullable
      - `maxStringLength` integer, nullable
      - `minDateTime` string, date-time, nullable
      - `minNumericValue` number, double, nullable
      - `minStringLength` integer, nullable
      - `regularExpression` string, nullable
    - `valueType` string, required
    - `vocabularyValues` CommerceRuntimeAttributeVocabularyValue[], nullable
      - `content` CommerceRuntimeAttributeValueLocalizedContent
        - `localeCode` string, required
        - `value` string, required
      - `isHidden` boolean, nullable
      - `sequence` integer, nullable
      - `value` string, required
  - `auditInfo` AdminUserAuditInfo
    - `createBy` string, nullable
    - `createDate` string, date-time, nullable
    - `updateBy` string, nullable
    - `updateDate` string, date-time, nullable
  - `commerceSummary` CommerceSummary — 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.
    - `lastOrderDate` string, date-time, nullable — When the last order was placed.
    - `orderCount` integer — Number of orders listed in the order history of a customer account.
    - `totalOrderAmount` CurrencyAmount — The currency code and amount of an order listed in the order history of a customer account. Currently, only USD is supported.
      - `amount` number, double — Total amount of the order. Currently, only US dollar amounts are supported.
      - `currencyCode` string, nullable — Currency code for the amount of the order. Currently, only "USD" is supported.
    - `visitsCount` integer — Number of visits for this customer across the entire tenant.
    - `wishlistCount` integer — Number of wishlists listed in the wishlist count of a customer account
  - `companyOrOrganization` string, nullable — The company or organization name for an account.
  - `contacts` CustomerContact[], nullable — List of contacts for this account. A customer account can have multiple contacts for billing and shipping addresses.
    - `accountId` integer
    - `address` CommerceRuntimeAddress
      - `address1` string, nullable
      - `address2` string, nullable
      - `address3` string, nullable
      - `address4` string, nullable
      - `addressType` string, nullable
      - `cityOrTown` string, nullable
      - `countryCode` string, nullable
      - `isValidated` boolean, nullable
      - `postalOrZipCode` string, nullable
      - `stateOrProvince` string, nullable
    - `auditInfo` AdminUserAuditInfo
      - `createBy` string, nullable
      - `createDate` string, date-time, nullable
      - `updateBy` string, nullable
      - `updateDate` string, date-time, nullable
    - `companyOrOrganization` string, nullable
    - `email` string, nullable
    - `faxNumber` string, nullable
    - `firstName` string, nullable
    - `id` integer, nullable
    - `label` string, nullable
    - `lastNameOrSurname` string, nullable
    - `middleNameOrInitial` string, nullable
    - `phoneNumbers` CommerceRuntimePhone
      - `home` string, nullable
      - `mobile` string, nullable
      - `work` string, nullable
    - `types` ContactType[], nullable
      - `isPrimary` boolean
      - `name` string, nullable
  - `customerSet` string, nullable
  - `customerSinceDate` string, date-time, nullable — Date when the customer account is created.
  - `emailAddress` string, nullable — "Email addresss of the customer.
  - `externalId` string, nullable
  - `firstName` string, nullable — First name of the customer.
  - `hasExternalPassword` boolean — Indicates if an external password is set on this account
  - `id` integer — Unique identifier of the account, also known as a customer number.
  - `isActive` boolean — Is the account active?
  - `isAnonymous` boolean — Is the account Anonymous?
  - `isLocked` boolean — Is the account locked?
  - `last2FaDate` string, date-time, nullable
  - `lastName` string, nullable — Last name of the customer.
  - `localeCode` string, nullable — Locale Code.
  - `migrationRequired` boolean — Indicates Subscription migration is required or not.
  - `notes` CustomerNote[], nullable — 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.
    - `auditInfo` AdminUserAuditInfo
      - `createBy` string, nullable
      - `createDate` string, date-time, nullable
      - `updateBy` string, nullable
      - `updateDate` string, date-time, nullable
    - `content` string, nullable — Content of the note that the merchant added.
    - `id` integer — Unique identifier of the note.
  - `segments` CustomerCustomerSegment[], nullable — 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.
    - `auditInfo` AdminUserAuditInfo
      - `createBy` string, nullable
      - `createDate` string, date-time, nullable
      - `updateBy` string, nullable
      - `updateDate` string, date-time, nullable
    - `code` string, nullable — Unique identifier of the customer segment.
    - `description` string, nullable — Description of the customer segment.
    - `id` integer — Unique identifier of the customer segment.
    - `name` string, nullable — Name of the customer segment.
  - `taxExempt` boolean
  - `taxId` string, nullable
  - `userId` string, nullable — 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.
  - `userName` string, nullable — User name for the customer account.

---

[API](https://skmtc.net/kibocommerce/apis/customer.md) · [All operations](https://skmtc.net/kibocommerce/apis/customer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kibocommerce/customer/revisions/47c0cf7b75ab/schema)
