---
schema_version: "1"
id: e99cf14682d8abefee723d49a4c8f00d56d71555ec083faa010cf8acd10f7664
title: ConnectApi.CommerceAddressInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_commerce_address.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_commerce_address.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 758ce8c705fb938c8a5c5b25950a0abd5400f5980526834585d7bd2053e14109
description: Commerce address input.
---
# ConnectApi.CommerceAddressInput

Commerce address input.

| Property | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| addressType | String | Type of address, for example, Shipping or Billing. | Optional | 54.0 |
| city | String | The address city. | Optional | 54.0 |
| commerceAddress​FieldInputList | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[ConnectApi.​CommerceAddress​FieldInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_commerce_address_field.htm "Commerce address field input. This is used to reference custom fields for the address.")\> | A list of custom address fields, if any. | Optional | 54.0 |
| companyName | String | The address company name. | Optional | 57.0 |
| country | String | The address country, specified using the ISO country code. For example, US for United States. | Optional | 54.0 |
| countryCode | String | Two-character country code. For example, US for United States. | Optional | 54.0–58.0 |
| firstName | String | The address first name. | Optional | 57.0 |
| isDefault | Boolean | Indicates whether a contact’s address is the preferred method of communication (true) or not (false). The default value is false. | Optional | 54.0 |
| lastName | String | The address last name. | Optional | 57.0 |
| middleName | String | The address middle name. | Optional | 57.0 |
| name | String | Name of the contact. | Required | 54.0 |
| phoneNumber | String | The phone number associated with the address, including a valid country code. For example, +1xxxxxxxxxx (for a US number). | Optional | 57.0 |
| postalCode | String | Zip code or postal code for the address. | Optional | 54.0 |
| region | String | The address state, specified using the ISO state code. For example, CA for California state. | Optional | 54.0 |
| regionCode | String | The address state code. For example, CA for California state. | Optional | 54.0–58.0 |
| street | String | The address street. | Optional | 54.0 |