---
title: "CustomerMergeErrorFieldType"
description: "Error enum for Customer merge"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/enums/customer-merge-error-field-type'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/enums/customer-merge-error-field-type.md'
---
# CustomerMergeErrorFieldType

Error enum for Customer merge

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

## Type Signature

`CustomerMergeErrorFieldType`

## Values

* `USER_HAS_DISCOUNT_CODE`

  The customer has discount code

* `USER_HAS_META_FIELD`

  The customer has meta field

* `APPLY_DATA_REMOVE`

  The customer apply data remove

* `DATA_NOT_EXIST`

  data not exist

* `HAS_SUBSCRIPTION_CONTRACT`

  The customer has subscription contract

* `MERGE_IN_PROGRESS`

  The customer has a merge in progress

* `PARAM_ILLEGAL`

  illegal parameter

## Schema Definition

```graphql
enum CustomerMergeErrorFieldType { 
	USER_HAS_DISCOUNT_CODE 
	USER_HAS_META_FIELD 
	APPLY_DATA_REMOVE 
	DATA_NOT_EXIST 
	HAS_SUBSCRIPTION_CONTRACT 
	MERGE_IN_PROGRESS 
	PARAM_ILLEGAL  
}
```

## Field from

* [CustomerMergeError](https://developer.shopline.com/docs/admin-graph-ql-api/customers/objects/customer-merge-error.md).errorFields

  List of fields that prevent customer merging

## 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).

