- Unified contact properties: The model unifies essential contact details, such as name, email, phone, and status, enabling easier access and management of contact data from different platforms.
- Multiple addresses support: In V4, contacts can have multiple associated addresses (billing, shipping) for comprehensive contact management.
- Expandable relationships: Use the
expandparameter to include related Address objects in API responses.
Attributes
| Field | Type | Description | Required | Expandable |
|---|---|---|---|---|
rootfi_id | integer | Unique identifier assigned by Commenda for this contact record | Yes | No |
rootfi_created_at | datetime | Timestamp when this record was first created in Commenda’s system (ISO 8601 format) | Yes | No |
rootfi_updated_at | datetime | Timestamp when this record was last updated in Commenda’s system (ISO 8601 format) | Yes | No |
rootfi_company_id | integer | Identifier of the company this contact belongs to within Commenda’s system | Yes | No |
platform_id | string | Unique identifier for this contact in the source e-commerce platform (e.g., Shopify customer ID) | Yes | No |
name | string | Full name of the contact (e.g., “John Smith”) | Yes | No |
email | string | Primary email address for the contact, used for communication and identification | No | No |
phone | string | Primary phone number in E.164 format (e.g., “+1-555-123-4567”) | No | No |
type | enum | Type of contact relationship | No | No |
status | enum | Current status of the contact account | Yes | No |
created_at | datetime | Original creation timestamp from the source platform (ISO 8601 format) | Yes | No |
updated_at | datetime | Last modification timestamp from the source platform (ISO 8601 format) | Yes | No |
addresses | array | Collection of Address objects associated with this contact | No | Yes |
Type Enum Values
| Value | Description |
|---|---|
customer | Contact is a customer who makes purchases |
vendor | Contact is a vendor who supplies products |
both | Contact acts as both customer and vendor |
unknown | Type cannot be determined |
Status Enum Values
| Value | Description |
|---|---|
active | Contact is active and in good standing |
inactive | Contact has been voluntarily deactivated |
suspended | Contact is temporarily suspended |
archived | Contact has been archived for record-keeping |
unknown | Status cannot be determined or is not provided by the platform |
Expandable Attributes
Use theexpand query parameter to include related objects:
expand=addresses- Includes full Address objects in the response
Address Object
Each address in theaddresses array contains:
| Field | Type | Description | Required |
|---|---|---|---|
rootfi_id | integer | Unique identifier assigned by Commenda for this address | Yes |
platform_id | string | Unique identifier for this address in the source platform | No |
type | enum | Indicates the purpose of this address (billing, shipping, warehouse) | Yes |
street | string | Street address including house/building number and street name | Yes |
city | string | City or locality name | Yes |
state | string | State, province, or region (typically 2-letter code for US states) | No |
postal_code | string | ZIP code, postal code, or equivalent | Yes |
country | string | ISO 3166-1 alpha-2 country code (e.g., “US”, “CA”, “GB”) | Yes |