---
title: "Upsert CRM contacts for an account"
method: POST
path: "/crm/contacts"
tags: ["Integrations"]
---

# Upsert CRM contacts for an account

`POST /crm/contacts`

## Request body

- UpsertCrmContactsRequest
  - `accountId` string
  - `contactCrmIds` string[]

## Response `200`

successful operation

- UpsertCRMContactResponse[]
  - `upserted` boolean
  - `error` string
  - `salesforceContact` SubskribeSalesforceContact
    - `id` string
    - `firstName` string
    - `lastName` string
    - `mailingStreet` string
    - `mailingCity` string
    - `mailingState` string
    - `mailingPostalCode` string
    - `mailingCountry` string
    - `phone` string
    - `email` string
    - `title` string
    - `action` 'UPDATE' | 'INSERT'
  - `crmContact` CrmContact
    - `id` string
    - `firstName` string
    - `lastName` string
    - `mailingStreet` string
    - `mailingCity` string
    - `mailingState` string
    - `mailingPostalCode` string
    - `mailingCountry` string
    - `phone` string
    - `email` string
    - `title` string
    - `action` 'UPDATE' | 'INSERT'
    - `crmType` 'SALESFORCE' | 'HUBSPOT'
  - `upsertedContact` AccountContactJson
    - `id` string — This is a system-generated Account Contact ID
    - `accountId` string, required — Uniquely identifies the Account
    - `firstName` string — First Name of the Contact
    - `lastName` string — (optional) Last Name of the Contact
    - `email` string — Email of the Contact
    - `phoneNumber` string — (optional) Phone Number of the Contact
    - `title` string — (optional) Title of the Contact
    - `address` AccountAddressJson
      - `streetAddressLine1` string — Address Line 1 of the Contact
      - `streetAddressLine2` string — Address Line 2 of the Contact
      - `streetAddressLine3` string — Address Line 3 of the Contact
      - `city` string — City of the Contact
      - `state` string — State Code of the Contact (ISO 3166-2 state/province code). Currently supported for USA, Canada. For instance, for Arizona (USA), set state as AZ (not US-AZ).For British Columbia (Canada), set as BC (not CA-BC)
      - `country` string — Country Code of the Contact ( ISO 3166 alpha-2 country code).
      - `zipcode` string — Zip or Postal Code of the Contact
    - `externalId` string
    - `erpId` string
    - `fullName` string
    - `eventObjectId` string

---

[API](https://skmtc.net/dealhub/apis/quote-api.md) · [All operations](https://skmtc.net/dealhub/apis/quote-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dealhub/quote-api/versions/c30f5b9fbfab/schema)
