# Conversion Retraction Explained

If a referred friend buys an item, but then returns it, you’ll want to retract the conversion. Learn how to set up conversion retraction in this article.

#### Set up your program for conversion retraction

1. From the left navigation, select ![](https://impact-1.gitbook.io/docs/emvxfLrwrlacc4y3y02Y/~gitbook/image?url=https%3A%2F%2F4048883401-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FwMLlMoFBtKJa8ptd3zaw%252Fuploads%252Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%252Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg%3Falt%3Dmedia\&width=300\&dpr=3\&quality=100\&sign=71dd50ef\&sv=2) **\[Engage] → Program Rules**.
2. Create a new rule and select **Friend refunds their purchase** as a rule trigger. Refer to step 1 of [Configure Your Advocate Program](https://help.impact.com/brand/what-would-you-like-to-learn-about/advocate-program/getting-started-with-advocate/configure-your-advocate-program) to learn how to create a rule.
3. Once you have filled out the required information and selected **Next**, select the action the friend or advocate needs to take and name the action.

<div data-with-frame="true"><figure><img src="https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-29650a785ee318b3512906ea813dcb29b7f4ca7a%2F082cd1e93e671102ac10c0e89c695e5d02a3aedbc1d90d57678eacdddb7762e6.jpg?alt=media" alt="" width="563"><figcaption></figcaption></figure></div>

1. Optionally you can set up your *Advanced Settings*. This involves adding conditions that must be met to trigger this rule.
2. Select **Next**.
   * Now, when a qualifying purchase triggers a conversion but a refund is made, the program rules will retract the conversion. Note that referral conversion can only be retracted within 30 days of conversion.
3. Once you’ve made your selections, the final step is to review the rule and action conditions you have set and if you’re happy with the setup, select **Save** in the bottom right corner.

{% hint style="info" %}
**Example:**

1. Hazel Nutt refers Carrie Oakey.
2. The referral will only convert after Carrie Oakey makes a purchase over $1000, because of how the program has been set up.
3. Carrie Oakey makes a $1100 purchase and both sides of the referral are rewarded.
4. Later, Carrie Oakey refunds their purchase.
5. impact.com retracts the conversion and the referral won’t be included in the billing.
   {% endhint %}

#### Edit 'first time only' re-conversion

If your program rule is set to trigger only the first time it's achieved, when a participant converts and conversion retraction takes place, they won’t pass the first-time check if they are referred again later.

You can edit the rule condition to allow users to be rewarded on re-conversion. This can be done via the JSONata editor in the program rules. The following expression can be used in the JSONata editor during program setup for the second referral, if the first is retracted, to be rewarded under the ‘first time only’ program:

```programlisting
rule.isFirstTime = true or $not(user.referredByReferral.dateConverted) ? truegoal.isFirstTime = true or $not(user.referredByReferral.dateConverted) ? true
```

The mutation used for retraction is `retractReferralConversion`.

#### Track conversion retraction metrics

When a conversion is retracted, it will no longer be counted towards the following metrics:

* *Converted Referrals*
* *Referred Conversions*
* *Successful Referrers*

Also, when a conversion is retracted, the status of the referral reverts to *Started*, and will display the date of the retraction.

Retracted referrals will appear in your *Referral Feed.*

1. From the left navigation, select ![](https://impact-1.gitbook.io/docs/emvxfLrwrlacc4y3y02Y/~gitbook/image?url=https%3A%2F%2F4048883401-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FwMLlMoFBtKJa8ptd3zaw%252Fuploads%252Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%252Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg%3Falt%3Dmedia\&width=300\&dpr=3\&quality=100\&sign=71dd50ef\&sv=2) **\[Engage] → Reporting → Referral Feed**.

An example of a *Referral feed* could look like this:

Retracted referrals will also appear on the customer advocate's *participant profile*. Learn more about the [Advocate Participant Profile](https://help.impact.com/brand/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participants/advocate-participant-profiles-explained).
