---
title: "Create/Update a consumer record from Salesforce"
method: POST
path: "/v1/SalesForce/consumer"
tags: ["SalesForce"]
---

# Create/Update a consumer record from Salesforce

`POST /v1/SalesForce/consumer`

## Request body

- AdaptekApiApplicationPeopleCommandsUpsertFullPersonUpsertFullPersonCommand
  - `personId` integer, nullable
  - `agentId` integer
  - `salesforcePersonId` string, nullable
  - `firstName` string, nullable
  - `middleName` string, nullable
  - `lastName` string, nullable
  - `genderTypeId` 0 | 1 | 2
  - `dateOfBirth` string, date-time, nullable
  - `ssn` string, nullable
  - `greeting` string, nullable
  - `driversLicenseNumber` string, nullable
  - `driversLicenseExpiration` string, date-time, nullable
  - `driversLicenseState` integer, nullable
  - `driversLicenseIssueDate` string, date-time, nullable
  - `age` integer, nullable
  - `maritalStatusTypeId` 1 | 2 | 3 | 4
  - `personStatus` integer, nullable
  - `lifecycleStatus` string, nullable
  - `service` string, nullable
  - `emailAddresses` AdaptekApiApplicationPersonEmailAddressesCommandsUpsertPersonEmailAddressUpsertPersonEmailAddressCommand[], nullable
    - `emailId` integer, nullable
    - `personId` integer
    - `emailAddress` string, nullable
    - `isPreferred` boolean
  - `physicalAddresses` AdaptekApiApplicationPersonPhysicalAddressesCommandsUpsertPersonPhysicalAddressUpsertPersonPhysicalAddressCommand[], nullable
    - `addressId` integer, nullable
    - `personId` integer
    - `street` string, nullable
    - `street2` string, nullable
    - `city` string, nullable
    - `zipCode` integer
    - `isPreferred` boolean
    - `addressType` integer
    - `stateOrProvinceId` 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56
    - `salesforceId` string, nullable
  - `phoneNumbers` AdaptekApiApplicationPersonPhoneNumbersCommandsUpsertPersonPhoneNumberUpsertPersonPhoneNumberCommand[], nullable
    - `phoneNumberId` integer, nullable
    - `personId` integer
    - `phoneNumber` integer
    - `phoneNumberTypeId` integer
    - `isPreferred` boolean
    - `salesforceId` string, nullable

## Response `200`

Consumer sync successful

- AdaptekApiApplicationPeopleCommandsUpsertFullPersonUpsertFullPersonResponse
  - `status` 0 | 1 | 2 | 3
  - `id` string, nullable
  - `vaultUsername` string, nullable
  - `vaultLastLogin` string, date-time, nullable

## Other responses

- `400` — Invalid request
- `404` — Consumer record was not found

---

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