> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.xero.accounting.UpdateContact

- Component: `appmixer.xero.accounting.UpdateContact`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.xero 2.3.0](https://connectors.appmixer.com/connector/appmixer.xero/2.3.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.xero/2.3.0/component/appmixer.xero.accounting.UpdateContact>

Udpate status of a single contact.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Tenant ID (`tenantId`) | text | - |
| Contact ID (`ContactID`) | text | - |
| Contact Status (`ContactStatus`) | select | - |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| `ContactID` | - | - |
| `ContactStatus` | - | - |
| `Name` | - | - |
| `EmailAddress` | - | - |
| `BankAccountDetails` | - | - |
| `Addresses` | array | - |
| `Phones` | array | - |
| `UpdatedDateUTC` | - | - |
| `ContactGroups` | array | - |
| `ContactPersons` | array | - |
| `IsSupplier` | - | - |
| `IsCustomer` | - | - |
| `SalesTrackingCategories` | array | - |
| `PurchasesTrackingCategories` | array | - |
| `HasValidationErrors` | - | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.xero.accounting.UpdateContact",
  "author": "Jiří Hofman <jirka@client.io>",
  "description": "Udpate status of a single contact.",
  "private": false,
  "auth": {
    "service": "appmixer:xero",
    "scope": [
      "accounting.contacts"
    ]
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "ContactID": {
            "type": "string"
          },
          "ContactStatus": {
            "type": "string"
          }
        },
        "required": [
          "tenantId",
          "ContactID",
          "ContactStatus"
        ]
      },
      "inspector": {
        "inputs": {
          "tenantId": {
            "type": "text",
            "label": "Tenant ID",
            "index": 1,
            "source": {
              "url": "/component/appmixer/xero/accounting/ListTenants?outPort=tenants",
              "data": {
                "transform": "./transformers#tenantsToSelectArray"
              }
            }
          },
          "ContactID": {
            "type": "text",
            "label": "Contact ID",
            "index": 2,
            "source": {
              "url": "/component/appmixer/xero/accounting/ListContacts?outPort=contacts",
              "data": {
                "transform": "./transformers#contactsToSelectArray",
                "messages": {
                  "in/tenantId": "inputs/in/tenantId"
                }
              }
            }
          },
          "ContactStatus": {
            "type": "select",
            "label": "Contact Status",
            "index": 3,
            "options": [
              {
                "value": "ACTIVE",
                "label": "Active"
              },
              {
                "value": "ARCHIVED",
                "label": "Archived"
              },
              {
                "value": "GDPRREQUEST",
                "label": "GDPR Request"
              }
            ]
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "ContactID",
          "value": "ContactID",
          "schema": {
            "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
          }
        },
        {
          "label": "ContactStatus",
          "value": "ContactStatus",
          "schema": {
            "example": "ACTIVE"
          }
        },
        {
          "label": "Name",
          "value": "Name",
          "schema": {
            "example": "Acme Corporation Updated"
          }
        },
        {
          "label": "EmailAddress",
          "value": "EmailAddress",
          "schema": {
            "example": "john.smith@acme-new.com"
          }
        },
        {
          "label": "BankAccountDetails",
          "value": "BankAccountDetails",
          "schema": {
            "example": "01-0123-0123456-00"
          }
        },
        {
          "label": "Addresses",
          "value": "Addresses",
          "schema": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "AddressType": {
                  "type": "string",
                  "title": "AddressType"
                },
                "AddressLine1": {
                  "type": "string",
                  "title": "AddressLine1"
                },
                "City": {
                  "type": "string",
                  "title": "City"
                },
                "PostalCode": {
                  "type": "string",
                  "title": "PostalCode"
                },
                "AttentionTo": {
                  "type": "string",
                  "title": "AttentionTo"
                }
              }
            },
            "example": [
              {
                "AddressType": "STREET",
                "AddressLine1": "12 Bridge Street",
                "City": "Wellington",
                "PostalCode": "6011",
                "AttentionTo": "Accounts Payable"
              }
            ]
          }
        },
        {
          "label": "Phones",
          "value": "Phones",
          "schema": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "PhoneType": {
                  "type": "string",
                  "title": "PhoneType"
                },
                "PhoneNumber": {
                  "type": "string",
                  "title": "PhoneNumber"
                },
                "PhoneAreaCode": {
                  "type": "string",
                  "title": "PhoneAreaCode"
                },
                "PhoneCountryCode": {
                  "type": "string",
                  "title": "PhoneCountryCode"
                }
              }
            },
            "example": [
              {
                "PhoneType": "DEFAULT",
                "PhoneNumber": "555 0143",
                "PhoneAreaCode": "04",
                "PhoneCountryCode": "64"
              }
            ]
          }
        },
        {
          "label": "UpdatedDateUTC",
          "value": "UpdatedDateUTC",
          "schema": {
            "example": "2026-01-15T14:30:00Z"
          }
        },
        {
          "label": "ContactGroups",
          "value": "ContactGroups",
          "schema": {
            "type": "array",
            "example": [
              {
                "ContactGroupID": "b7d1f0c4-4c2e-4a9b-9f1d-6c8a2e5b7d31",
                "Name": "Preferred suppliers",
                "Status": "ACTIVE"
              }
            ]
          }
        },
        {
          "label": "ContactPersons",
          "value": "ContactPersons",
          "schema": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "FirstName": {
                  "type": "string",
                  "title": "FirstName"
                },
                "LastName": {
                  "type": "string",
                  "title": "LastName"
                },
                "EmailAddress": {
                  "type": "string",
                  "title": "EmailAddress"
                },
                "IncludeInEmails": {
                  "type": "boolean",
                  "title": "IncludeInEmails"
                }
              }
            },
            "example": [
              {
                "FirstName": "Jane",
                "LastName": "Nguyen",
                "EmailAddress": "jane.nguyen@example.com",
                "IncludeInEmails": true
              }
            ]
          }
        },
        {
          "label": "IsSupplier",
          "value": "IsSupplier",
          "schema": {
            "example": false
          }
        },
        {
          "label": "IsCustomer",
          "value": "IsCustomer",
          "schema": {
            "example": true
          }
        },
        {
          "label": "SalesTrackingCategories",
          "value": "SalesTrackingCategories",
          "schema": {
            "type": "array",
            "example": [
              {
                "TrackingCategoryName": "Region",
                "TrackingOptionName": "North"
              }
            ]
          }
        },
        {
          "label": "PurchasesTrackingCategories",
          "value": "PurchasesTrackingCategories",
          "schema": {
            "type": "array",
            "example": [
              {
                "TrackingCategoryName": "Region",
                "TrackingOptionName": "South"
              }
            ]
          }
        },
        {
          "label": "HasValidationErrors",
          "value": "HasValidationErrors",
          "schema": {
            "example": false
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
