Skip to main content
PUT
/
commerce
/
customer
/
accounts
/
{accountId}
/
contacts
Error
A valid request URL is required to generate request examples
{
  "startIndex": 123,
  "pageSize": 123,
  "pageCount": 123,
  "totalCount": 123,
  "items": [
    {
      "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
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme.

Path Parameters

accountId
integer<int32>
required

Unique identifier of the customer account to contain the new CustomerContact.

Query Parameters

responseFields
string

limits which fields are returned in the response body

Body

application/json

List of CustomerContact objects : Properties of each new CustomerContact. Required properties: CustomerContact.Email, ContactType.

accountId
integer<int32>
types
object[] | null
auditInfo
object
faxNumber
string | null
label
string | null
id
integer<int32> | null
email
string | null
firstName
string | null
middleNameOrInitial
string | null
lastNameOrSurname
string | null
companyOrOrganization
string | null
phoneNumbers
object
address
object

Response

Success

Collection of contacts returned as a whole.

startIndex
integer<int32>
pageSize
integer<int32>
pageCount
integer<int32>
totalCount
integer<int32>
items
object[] | null