---
schema_version: "1"
id: 80d540fdea86752b0f89e9c13441a2d52044891c26ceaa581e4f9a6b5eedb229
title: Merge Customer Account with Status (POST)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/connect_resources_merge_customer_accounts_with_status.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/connect_resources_merge_customer_accounts_with_status.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: b0edd9ee8e57e6fd9ed6b025d6883cab6d9e89e8faa55b32f156151955ba058e
description: Merges a list of customer accounts and provides a status for each request. This API processes all valid requests and does not fail the entire operation if one request is invalid.
---
# Merge Customer Account with Status (POST)

Merges a list of customer accounts and provides a status for each request. This API processes all valid requests and does not fail the entire operation if one request is invalid.

![Important](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/images/icon_note_important.png)

#### Important

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

## Resource

/connect/life-sciences/commercial/customers/actions/merge-with-status

## Resource Example

Replace {yourInstance} with the My Domain name of your Salesforce org.

https://{yourInstance}.salesforce.com/services/data/v68.0/connect/life-sciences/commercial/customers/actions/merge-with-status

## Available Version

65.0

## HTTP Methods

POST

## Request Body for POST

{
  "customersToMerge": \[
    {
      "winningId": "a3Lxx000000MbzxxAC",
      "winningExternalId": "a3Lxx000000MbzxxBC",
      "losingId": "001xx00001STZUxxTR",
      "losingExternalId": "001x0000007uv3AKKA"
    },
    {
      "winningId": "001x0000007cd4RBBR",
      "winningExternalId": "001x0000008ef5SCCS",
      "losingId": "001xx00001SYtgxxUI",
      "losingExternalId": "001x0000001ij7UEEU"
    }
  \],
  "overrideBlankValues": true
}

<table class="featureTable sort_table" summary="">




          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d571618e105">Name</th>

              <th class="featureTableHeader vertical-align-top " id="d571618e108">Type</th>

              <th class="featureTableHeader vertical-align-top " id="d571618e111">Description</th>

              <th class="featureTableHeader vertical-align-top " id="d571618e114">Required</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d571618e105" data-title="Name"><samp class="codeph nolang">customersToMerge</samp></td>

              <td class="entry" headers="d571618e108" data-title="Type"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/connect_requests_merge_customers_input_representation.htm" title="The request to merge a Consolidated Account with a Merged Account.">MergeCustomersInputRepresentation[]</a></td>

              <td class="entry" headers="d571618e111" data-title="Description">A list of customer merge requests. A maximum of 100 requests can be included in a single call.</td>

              <td class="entry" headers="d571618e114" data-title="Required">Required</td>

            </tr>

            <tr>
              <td class="entry" headers="d571618e105" data-title="Name"><samp class="codeph nolang">overrideBlankValues</samp></td>

              <td class="entry" headers="d571618e108" data-title="Type">Boolean</td>

              <td class="entry" headers="d571618e111" data-title="Description">Specifies whether to override blank values in the
                Consolidated Account record with values from the Merged
                Account record. The default value is <samp class="codeph nolang">false</samp>. <p class="p">If set to
                  <samp class="codeph nolang">true</samp>, it
                  looks for null values in the fields of the winning
                  account and fills them with non null values from the
                  losing account.
                </p>
              </td>

              <td class="entry" headers="d571618e114" data-title="Required">Optional</td>

            </tr>

          </tbody>

        </table>

## Response Body for POST

[Merge Customer Accounts with Status Output](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/connect_responses_merge_customer_account_with_status_output.htm "The response body for the merge customer account with status request.")