---
schema_version: "1"
id: 22042008e7638dd35f00e2a496582fecf3cbe20bcb450ea0da349991e4f8846d
title: Public Complaint
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/financial_services_cloud_object_reference/connect_resources_post_public_complaints.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.financial_services_cloud_object_reference.meta/financial_services_cloud_object_reference/connect_resources_post_public_complaints.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6222c25c026902030846022c8aaa0787efe858010b2d8e65df6db835bdb1de40
description: Create a customer complaint.
---
# Public Complaint

Create a customer complaint.

Streamline customer complaint management in Financial Services Cloud by orchestrating complaint workflows. Raise a customer complaint as part of the complaint workflow using this resource.

## Resource

/connect/service-excellence/public-complaint

## Resource Example

https://yourInstance.salesforce.com/services/data/v68.0/connect/service-excellence/public-complaint

## Available Version

58.0

## Requires Chatter

No

## HTTP Methods

POST

## Request Body for POST

### JSON Example

{
    "assessmentId": "0U3RO0000000Cp20AE",
    "complaintInfo": {
        "incidentDate": "2022-04-07",
        "complaintType": "Information, sums/charges or product performance",
        "complaintSubType": "Product disclosure information",
        "status": "In Progress",
        "subject": "Account Annual Maintenance Charges",
        "priority": "High",
        "description": "Annual maintenance charges not disclosed upfront",
        "email": "Tody@email.com",
        "productType": "Credit Card or Prepaid Card",
        "additionalInfo": {
            "data": {
                "Comments": {
                    "value": "This case needs to be handled on priority"
                }
            }
        }
    },
    "caseInfo": {
        "accountId": "001RO000004WKi1YAG",
        "subject": "Reversal of Account Annual Maintenance Charges",
        "status": "Pending",
        "description": "Annual maintenance charges to be reversed",
        "origin": "Email",
        "reason": "Other",
        "additionalInfo": {
            "data": {
                "Priority": {
                    "value": "High"
                }
            }
        }
    },
    "caseParticipantInfo": {
        "data": \[
            {
                "role": "Complainant Representative",
                "status": "Pending",
                "participantId": "001RO000004WKi1YAG",
                "preferredCallTimeFrom": "10:30:30",
                "preferredCallTimeTo": "12:30:30",
                "preferredCommunicationMode": "Email",
                "authorizationProof": "Email",
                "additionalInfo": {
                    "data": {
                        "Name": {
                          "value": "CP-0000000039"
                }
            }
        }
    },
    "documentInfo": {
        "data": \[
            {
                "id": "069RO0000004YynYAE",
                "name": "Aadhar"
            },
            {
                "id": "069RO0000004p1lYAA",
                "name": "Pan",
                "typeId": ”0deRO00000000J7YAI”
            }
        \]
    },
    "shouldInclInRegulatoryRpt": true
}

### Properties

<table class="featureTable sort_table" summary="">
            <thead class="thead sorted" align="left">
              <tr>
                <th class="featureTableHeader vertical-align-top " id="d173708e131">Name</th>
                <th class="featureTableHeader vertical-align-top " id="d173708e133">Type</th>
                <th class="featureTableHeader vertical-align-top " id="d173708e135">Description</th>
                <th class="featureTableHeader vertical-align-top " id="d173708e137">Required or Optional</th>
                <th class="featureTableHeader vertical-align-top " id="d173708e139">Available Version</th>
              </tr>
            </thead>
            <tbody class="tbody">
              <tr>
                <td class="entry" headers="d173708e131" data-title="Name"><samp class="codeph nolang">assessmentId</samp></td>
                <td class="entry" headers="d173708e133" data-title="Type">String</td>
                <td class="entry" headers="d173708e135" data-title="Description">Pre-complaint assessment ID.<p class="p">Pre-complaint assessment contains a set of questions for the
                    customer before creating a complaint. It helps to
                    better understand the customer issue.</p>
                </td>
                <td class="entry" headers="d173708e137" data-title="Required or Optional">Optional</td>
                <td class="entry" headers="d173708e139" data-title="Available Version">58.0</td>
              </tr>
              <tr>
                <td class="entry" headers="d173708e131" data-title="Name"><samp class="codeph nolang">caseInfo</samp></td>
                <td class="entry" headers="d173708e133" data-title="Type"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.financial_services_cloud_object_reference.meta/financial_services_cloud_object_reference/connect_requests_case_info_wrappe.htm" title="Input representation of a case related to the complaint.">Case Info
                    Wrapper</a></td>
                <td class="entry" headers="d173708e135" data-title="Description">Details of the case to be created to address the complaint.<p class="p">A case is created by default
                    when you raise a complaint. Use this field to add
                    more details to the case.</p>
                </td>
                <td class="entry" headers="d173708e137" data-title="Required or Optional">Optional</td>
                <td class="entry" headers="d173708e139" data-title="Available Version">58.0</td>
              </tr>
              <tr>
                <td class="entry" headers="d173708e131" data-title="Name"><samp class="codeph nolang">caseParticipantInfo</samp></td>
                <td class="entry" headers="d173708e133" data-title="Type">
                  <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.financial_services_cloud_object_reference.meta/financial_services_cloud_object_reference/connect_requests_case_participant_info_wrappe.htm" title="Input representation of a case participant associated with the complaint.">Case
                    Participant Info Wrapper</a>[]
                </td>
                <td class="entry" headers="d173708e135" data-title="Description">Details of the case participant raising the complaint. <p class="p">A case participant can be a
                    customer or a customer representative.</p>
                </td>
                <td class="entry" headers="d173708e137" data-title="Required or Optional">Required</td>
                <td class="entry" headers="d173708e139" data-title="Available Version">58.0</td>
              </tr>
              <tr>
                <td class="entry" headers="d173708e131" data-title="Name"><samp class="codeph nolang">complaintInfo</samp></td>
                <td class="entry" headers="d173708e133" data-title="Type"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.financial_services_cloud_object_reference.meta/financial_services_cloud_object_reference/connect_requests_complaint_info_wrappe.htm" title="Input representation of the complaint details.">Complaint Info
                    Wrapper</a></td>
                <td class="entry" headers="d173708e135" data-title="Description">Details of the complaint to be raised.</td>
                <td class="entry" headers="d173708e137" data-title="Required or Optional">Required</td>
                <td class="entry" headers="d173708e139" data-title="Available Version">58.0</td>
              </tr>
              <tr>
                <td class="entry" headers="d173708e131" data-title="Name"><samp class="codeph nolang">documentInfo</samp></td>
                <td class="entry" headers="d173708e133" data-title="Type">
                  <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.financial_services_cloud_object_reference.meta/financial_services_cloud_object_reference/connect_requests_document_info_attributes_wrappe.htm" title="Input representation of the details of a supporting document for the complaint.">Document Info Attributes Wrapper</a> []
                </td>
                <td class="entry" headers="d173708e135" data-title="Description">Details of the documents supporting the complaint.</td>
                <td class="entry" headers="d173708e137" data-title="Required or Optional">Optional</td>
                <td class="entry" headers="d173708e139" data-title="Available Version">58.0</td>
              </tr>
              <tr>
                <td class="entry" headers="d173708e131" data-title="Name"><samp class="codeph nolang">shouldInclInRegulatoryRpt</samp></td>
                <td class="entry" headers="d173708e133" data-title="Type">Boolean</td>
                <td class="entry" headers="d173708e135" data-title="Description">Indicates whether to include the complaint in regulatory reports (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). The
                  default value is <samp class="codeph nolang">false</samp>.</td>
                <td class="entry" headers="d173708e137" data-title="Required or Optional">Optional</td>
                <td class="entry" headers="d173708e139" data-title="Available Version">58.0</td>
              </tr>
            </tbody>
          </table>

## Response Body for POST

[Complaint Management Output](https://developer.salesforce.com/docs/atlas.en-us.financial_services_cloud_object_reference.meta/financial_services_cloud_object_reference/connect_responses_complaint_mgmt_output.htm "Output representation of the created public complaint.")