Skip to main content
POST
/
commerce
/
customer
/
accounts
/
{accountId}
/
contacts
Error
A valid request URL is required to generate request examples
{
  "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

Properties of the new CustomerContact. Required properties: CustomerContact.Email, ContactType.

CustomerContact information for a customer account including the name, company, phone numbers, email addresses, and billing and shipping addresses (if supplied).

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

CustomerContact information for a customer account including the name, company, phone numbers, email addresses, and billing and shipping addresses (if supplied).

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