# Review and Merge on Shopify

> How to review and merge duplicate Shopify customers, what Shopify's merge does to each field, what it refuses, and why a merge finishes in the background.

Every match goes to the **Review queue** as a pair of customers. You compare the two, choose the customer to keep, and merge or reject the pair. The review steps are on [Where Dedupify appears in Shopify](/docs/dedupify/shopify/surfaces/#compare-and-merge). This page covers what is specific to Shopify.

## Which customer survives

You choose the **Record to keep**, and that customer survives. Shopify's customer merge always keeps the second customer it is given, and Dedupify sends the one you chose in that place, so your choice always survives. The other customer is merged into it.

A merge can't be undone, on Shopify or in Dedupify. Check **Merged value** before you select **Merge**.

## What Shopify's merge does to each field

Dedupify sends Shopify's merge with no field overrides, so Shopify settles the fields first. Shopify's merge settles the fields like this:

* The kept customer **keeps its own name and email**.
* A phone number, default address, or note the kept customer lacks is **filled in from the other customer**.
* **Tags are combined**.

Dedupify then writes the values you picked onto the kept customer, in a separate update right after the merge confirms. Of the fields your rules match on, you can pick the value for these: **Email**, **Phone**, **First Name**, **Last Name**, **Note**, and **Locale**.

You can't pick **Tags**, the address fields, or the created and updated dates. They are marked **Set by your CRM**, Shopify's merge settles them, and Dedupify writes nothing to them.

**Dedupify never blanks a Shopify field.** If you choose an empty value for a field, Dedupify leaves that field out of its update, and the value Shopify's merge settled stands.

If someone edits a field on the kept customer after Dedupify read the pair, Dedupify leaves that field as it stands rather than overwrite the newer edit.

Orders, and the rest of a customer's history, are Shopify's to move in its merge. Dedupify neither reads nor writes them.

## What Shopify refuses

Before it sends anything, Dedupify re-reads both customers and asks Shopify whether each can be merged. It refuses the merge, and sends nothing, if:

* either customer no longer exists, or the pair is one customer,
* Shopify reports a customer **not mergeable**. Shopify can block a customer for reasons such as gift cards, or
* a merge involving the customer is already in progress.

A refused merge leaves the pair in the queue and changes nothing in your store. Resolve the reason in Shopify, then approve again.

## Merges finish in the background

Shopify accepts a customer merge as a job and finishes it in the background. Dedupify waits up to about 20 seconds for the job to complete. What you see depends on how it went:

| What you see | What it means |
|---|---|
| **Kept** *name*. *Other* was merged into it and can't be undone from Dedupify. | The job finished in time, and Dedupify wrote your field values |
| **Merge accepted, not yet complete** | Shopify accepted the merge and is still completing it |
| **Merge still being applied** | You approved a pair that holds a customer of a merge that is still running. Nothing was saved. Wait a few minutes, then try again |
| **Merge not confirmed** | No answer came back, so the merge may or may not have run. Reload the pair: if it was merged, it is gone |

When a merge is accepted but not complete, the pair leaves the review queue and can't be merged again. Dedupify applies your selected field values once the merge finishes. Until then the kept customer shows the values Shopify's merge settled, and flows that react to the merge or to customer changes can see them. Dedupify checks on the merge in the background and when someone approves a pair that involves either customer. If Shopify shows no sign of finishing the merge within 24 hours, Dedupify stops waiting and puts the pair back in the review queue, with no field values written.

If Shopify doesn't confirm whether the customers merged, Dedupify says so: "Shopify did not confirm whether these customers were merged. If they were, some of your selected field values may not have been applied. Try again in a moment: if they were merged, the pair is cleared."

## Merging several pairs at once

To tick three pairs and merge them at once, step through it:

**Merge several pairs at once**

1. **Tick the pairs** Every row in the review queue has a box. Tick the pairs you want to merge; the box in the header ticks the page's pairs, up to 25 at a time, and Clear selection unticks them. Read the pairs first: a bulk merge skips the side-by-side review.
2. **Merge selected** Select Merge selected. A window asks you to confirm: each pair is merged into one record using your merge settings, without individual review, and merges can't be undone. Select Merge 3 pairs.
3. **Read the result** While it runs, a line counts the pairs merged and Stop halts new merges; the ones already sent finish. When it ends, a notice counts the pairs that merged and lists any that did not, with the reason, under Pair by pair. A pair whose records changed since the page loaded stays in the queue.

In the review queue, tick the pairs you want to merge, or tick the box in the header to select the pairs on the page (up to 25 at a time), then select **Merge selected**. A window asks you to confirm. Each selected pair is combined into one record using your merge settings, without individual review. Merges can't be undone, including merges made in bulk, so review the pairs you select first.

Dedupify merges two pairs at a time and counts them as it goes. **Stop** halts new merges, and the ones already sent finish. When the run ends, a notice counts the pairs that merged and lists any that didn't, with the reason, under **Pair by pair**. A merge that Shopify accepts but has not finished is counted as finishing, not merged. A pair whose records changed since the page loaded is skipped and stays in the queue. A run also stops if Shopify asks Dedupify to slow down or Dedupify can't be reached: the pairs that weren't sent stay selected.

## Reject

Here is a pair of two different customers who share a name, rejected:

**Reject a false match**

1. **Open the pair** Choose Review on a pair you suspect is a false match. Pairs that matched on a common name alone are the usual ones.
2. **Compare the records** Highlighted rows are the properties that differ. Different emails or phone numbers on a shared name usually mean different customers.
3. **Reject it** Choose Reject (not a duplicate). Dedupify merges nothing and keeps the pair hidden for the match rule that found it, so it does not come back.
4. **Back in the queue** The pair has left the queue.

**Reject (not a duplicate)** dismisses the pair. Nothing is sent to Shopify.

Source page: https://artifactapps.com/docs/dedupify/shopify/merging/
