---
title: "Trigger NPS related work-flows for creating cases for Promoters, Detractors and Passives in SalesForce."
method: POST
path: "/salesforce/integration/npscasecreate"
tags: ["Salesforce"]
---

# Trigger NPS related work-flows for creating cases for Promoters, Detractors and Passives in SalesForce.

`POST /salesforce/integration/npscasecreate`

## Headers

- `Accept-Version` string

## Request body

- ClientNpsData
  - `nps` integer — NPS question score value
  - `email` string — Email of the respondent
  - `lastName` string — Last name of the respondent
  - `surveyId` string — Id of the survey
  - `surveyName` string — Name of the survey
  - `respondentId` string — Id of the respondent
  - `surveyQuestion` string — NPS question text
  - `caseSubType` string — Case sub-type
  - `useCommonFeedbackQuestion` boolean — Decision for using either common feedback question or multi-feedback question
  - `commonFeedbackQuestionComments` string — Comments for common feedback question
  - `isPromoterEnabled` boolean — Check for Promoter Enabled
  - `promoterThreshold` integer — NPS thresold value for promoter
  - `promoterCasePriority` string — Promoter case creation priority
  - `promoterQuestionComments` string — Comments for promoter feedback question
  - `isDetractorEnabled` boolean — Check for Detractor Enabled
  - `detractorThreshold` integer — NPS thresold value for detractor
  - `detractorCasePriority` string — Detractor case creation priority
  - `detractorQuestionComments` string — Comments for detractor feedback question
  - `isPassiveEnabled` boolean — Check for Passive Enabled
  - `passiveMinThreshold` integer — Min thresold value for passive
  - `passiveMaxThreshold` integer — Max thresold value for passive
  - `passiveCasePriority` string — Passive case creation priority
  - `passiveQuestionComments` string — Comments for passive feedback question
  - `caseType` string — Indicates the type of the case
  - `caseRecordTypeId` string — RecordType Id of the case to be created
  - `platform` string — Indicates the platform of the case
  - `origin` string — Indicates the origin of the case

## Response `200`

Not eligible for Case creation

- string

## Other responses

- `201` — Successfully created the Case
- `400` — Salesforce Integration is not completed (OR) The associated workflow is not enabled
- `401` — The request must be authenticated using the Authorization HTTP header
- `500` — Internal Server Error - An error occured while processing the request.
- `503` — Service is unavailable or not configured for this client.

---

[API](https://skmtc.net/voxco/apis/acuity-webapi-1-0.md) · [All operations](https://skmtc.net/voxco/apis/acuity-webapi-1-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voxco/acuity-webapi-1-0/revisions/2ea4b8555197/schema)
