# Clear Response Enrichment

For transactions where MRS is unable to identify the merchant there is an option to clean the merchant description and categorise the transaction.

* Consider this a “backup” option for when MRS is unable to identify a merchant.
* It provides some “cleaning” of the Merchant Description when a match is not found.

<table><thead><tr><th width="443">Example input merchant description</th><th>Example cleaned result</th></tr></thead><tbody><tr><td>JOHN’S BOAT HOUSE 5671121110</td><td>John’s Boat House</td></tr><tr><td>#SNOWDROP#RESTAURANT#AND#POOL#HALL#</td><td>Snowdrop Restaurant And Pool Hall</td></tr></tbody></table>

* When an MCC Code is provided in the request then the response will also include Categorisation.&#x20;
* This means that a transaction can be categorised even in cases where the Merchant was not identified.&#x20;

### ClearResponse

We use the parameter `clearResponse` and show the `isclearResponse` field in the response to show the above behavior.

**Input Parameter**

`clearResponse` is an optional parameter. If this is set to `true`, even if we cannot find the merchant, we will attempt to clean up the transaction/add categorization as above.  This is set to `true` by default.

**Response Field**

For MRS Responses where we did not find a merchant, but were still cleaned up in this way, will have the `isClearResponse` flag set to `true` in the response.

More in the [OpenAPI Docs](/openapi-docs.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devs.snowdropsolutions.co.uk/advanced-use-cases/clear-response-enrichment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
