---
title: "CustomerMergeOverrideFieldsInput"
description: >
  The rules for merging two customers, for example, which customer's email address is retained.
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/inputs/customer-merge-override-fields-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/inputs/customer-merge-override-fields-input.md'
---
# CustomerMergeOverrideFieldsInput

The rules for merging two customers, for example, which customer's email address is retained.

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Input

## Type Signature

`CustomerMergeOverrideFieldsInput`

## Input Fields

* `customerIdOfPhoneNumberToKeep`

  [ID](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The ID of the customer who wants to keep their phone number

* `customerIdOfEmailToKeep`

  [ID](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The ID of the customer who wants to keep their email

* `customerIdOfDefaultAddressToKeep`

  [ID](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The ID of the customer who wants to keep the default address

* `customerIdOfLastNameToKeep`

  [ID](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The ID of the customer who wants to keep their last name

* `tags`

  [[String]](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  List of tags to keep

* `customerIdOfFirstNameToKeep`

  [ID](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The ID of the customer who wants to keep their name

* `note`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  Notes to keep

## Schema Definition

```graphql
input CustomerMergeOverrideFieldsInput { 
	customerIdOfPhoneNumberToKeep: ID
	customerIdOfEmailToKeep: ID
	customerIdOfDefaultAddressToKeep: ID
	customerIdOfLastNameToKeep: ID
	tags: [String]
	customerIdOfFirstNameToKeep: ID
	note: String 
}
```

## Argument from

* [Query](https://developer.shopline.com/docs/admin-graph-ql-api/customers/queries/customer-merge-preview.md).customerMergePreview

  返回客户合并请求的预览

* [Mutation](https://developer.shopline.com/docs/admin-graph-ql-api/customers/mutations/customer-merge.md).customerMerge

  客户合并

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

