ConnectApi.CommerceAddressInput

Commerce address input.

PropertyTypeDescriptionRequired or OptionalAvailable Version
addressTypeStringType of address, for example, Shipping or Billing.Optional54.0
cityStringThe address city.Optional54.0
commerceAddress​FieldInputListList<ConnectApi.​CommerceAddress​FieldInput>A list of custom address fields, if any.Optional54.0
companyNameStringThe address company name.Optional57.0
countryStringThe address country, specified using the ISO country code. For example, US for United States.Optional54.0
countryCodeStringTwo-character country code. For example, US for United States.Optional54.0–58.0
firstNameStringThe address first name.Optional57.0
isDefaultBooleanIndicates whether a contact’s address is the preferred method of communication (true) or not (false). The default value is false.Optional54.0
lastNameStringThe address last name.Optional57.0
middleNameStringThe address middle name.Optional57.0
nameStringName of the contact.Required54.0
phoneNumberStringThe phone number associated with the address, including a valid country code. For example, +1xxxxxxxxxx (for a US number).Optional57.0
postalCodeStringZip code or postal code for the address.Optional54.0
regionStringThe address state, specified using the ISO state code. For example, CA for California state.Optional54.0
regionCodeStringThe address state code. For example, CA for California state.Optional54.0–58.0
streetStringThe address street.Optional54.0