> For the complete documentation index, see [llms.txt](https://devs.snowdropsolutions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devs.snowdropsolutions.com/openapi-docs/re-enrich-using-transaction-tokens-post.md). Agents can also search and read this documentation through its [MCP server](https://devs.snowdropsolutions.com/~gitbook/mcp).

# Re-enrich using transaction tokens - POST

## Re-enrich merchants using transaction tokens

> Re-runs MRS enrichment using \`transactionToken\` values previously returned by \`/api/v3/merchant\` or \`/api/v3/merchant/list\`.\
> \
> A transaction token represents the original transaction search input and should be treated as an opaque value. Clients should store the token exactly as returned by MRS and send it back unchanged when a later enrichment is required.\
> \
> Every \`transactionToken\` in a request must be non-empty and unique within that request.<br>

```json
{"openapi":"3.0.3","info":{"title":"MRS Api","version":"v3.3.0"},"servers":[{"url":"https://eu.snowdrop-mrs.com","description":"EU only URL. Regions included are europe-west3 (Frankfurt, Germany), europe-west8 (Milan, Italy), europe-west9 (Paris, France). Additional regions may be added in the future but these will only be in EU countries."},{"url":"https://europe.snowdrop-mrs.com","description":"This URL includes the UK. Regions included are europe-west2 (London, UK), europe-west3 (Frankfurt, Germany), europe-west8 (Milan, Italy), europe-west9 (Paris, France). Additional regions may be added in the future but these will only be in European countries."},{"url":"https://europe-west2.snowdrop-mrs.com","description":"Production cluster located in europe-west2 (London, United Kingdom)"},{"url":"https://europe-west3.snowdrop-mrs.com","description":"Production cluster located in europe-west3 (Frankfurt, Germany)"},{"url":"https://europe-west8.snowdrop-mrs.com","description":"Production cluster located in europe-west8 (Milan, Italy)"},{"url":"https://europe-west9.snowdrop-mrs.com","description":"Production cluster located in europe-west9 (Paris, France)"},{"url":"https://us-east4.snowdrop-mrs.com","description":"Production cluster located in us-east4 (Ashburn, Virginia, North America)"},{"url":"https://asia-southeast1.snowdrop-mrs.com","description":"Production cluster located in asia-southeast1 (Singapore)"}],"security":[{"HeaderApiKeyAuth":[]}],"components":{"securitySchemes":{"HeaderApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Api-Key"}},"schemas":{"MerchantTokenRequest":{"type":"object","required":["transactions"],"additionalProperties":false,"properties":{"transactions":{"type":"array","minItems":1,"description":"Transaction tokens to re-enrich. Tokens must be unique within the request.","items":{"type":"object","required":["transactionToken"],"additionalProperties":false,"properties":{"transactionToken":{"type":"string","minLength":1,"description":"A transaction token previously returned by MRS. Treat this value as opaque and send it back unchanged."}}}}}},"MerchantTokenResponse":{"type":"object","required":["results"],"properties":{"results":{"type":"array","items":{"type":"object","required":["token","result"],"properties":{"token":{"type":"string","description":"The transaction token supplied in the request, used to correlate each result."},"result":{"type":"array","description":"MRS-managed enrichment fields returned for this transaction token.","items":{"$ref":"#/components/schemas/MerchantTokenResult"}}}}}}},"MerchantTokenResult":{"type":"object","description":"Enrichment returned by a transaction-token search. Token searches are forced to `restrictive` mode, so Google Maps Platform fields are not returned by this endpoint.\nFields remain optional because availability depends on the matched merchant and the customer's enabled MRS features.\n","properties":{"transactionToken":{"type":"string","description":"Transaction token associated with this enrichment result."},"name":{"type":"string"},"website":{"type":"string"},"img":{"type":"string"},"logoImg":{"type":"string"},"categoryImg":{"type":"string"},"logoScore":{"type":"number"},"logoPermission":{"type":"string","enum":["unknown","pending","inferred","granted","denied","substitute","alternative"]},"category":{"type":"string"},"categories":{"type":"array","items":{"type":"string"}},"brand":{"$ref":"#/components/schemas/Brand"},"aggregateLevel":{"$ref":"#/components/schemas/aggregateLevel"},"intermediary":{"$ref":"#/components/schemas/IntermediaryInfo"},"store":{"$ref":"#/components/schemas/Store"},"isClearResponse":{"type":"boolean"},"mcc":{"type":"string"}}},"Brand":{"description":"This will only be returned if the relevant configuration has been enabled for you.\nSub level brand data. This will be returned if we have a sub level brand for a merchant.\nFor example, for a merchant like \"Carrefour Express\", we would return the brand \"Carrefour Express\"\n","properties":{"id":{"type":"string","description":"ID of the sub brand"},"name":{"type":"string","description":"Name of the sub brand"},"img":{"type":"string","description":"URL of the sub brand logo"},"website":{"type":"string","description":"URL of the sub brand website"},"esg":{"description":"ESG data for the brand if available.\nThis will only be returned if the relevant paid extension has been enabled for you.\n","properties":{"participations":{"type":"array","items":{"$ref":"#/components/schemas/EsgParticipation"},"description":"An array of ESG schemes that the brand participates in or has made commitments to"}}},"brandCategory":{"$ref":"#/components/schemas/brandCategory"},"verifiedInputDate":{"type":"string","description":"If present, this is the date that the input was manually verified by us\n"}}},"EsgParticipation":{"description":"An ESG scheme","properties":{"id":{"type":"string","description":"A unique identifier for the ESG scheme"},"name":{"type":"string","description":"Name of the ESG scheme"},"description":{"type":"string","description":"A description for the ESG scheme"},"img":{"type":"string","description":"URL of the ESG participation logo"},"website":{"type":"string","description":"URL of the ESG participation website"},"commitments":{"type":"array","items":{"$ref":"#/components/schemas/EsgCommitment"},"description":"An array of ESG commitments that are part of this scheme that the brand has or has not made"}}},"EsgCommitment":{"description":"A commitment or goal proposed by an ESG scheme that a brand can make progress towards or achieve","properties":{"id":{"type":"string","description":"A unique identifier for the commitment"},"name":{"type":"string","description":"Name of the commitment or goal"},"displayOrder":{"type":"number","description":"The order in which the commitment should be displayed for the best user experience. Starting at 0"},"committed":{"type":"boolean","description":"Whether the brand has made a commitment to this goal, you may use this to decide if to show the commitment to the user or not, or to show all of them"},"img":{"type":"string","description":"URL for the commitment logo. We may provide a different image, depending on if a brand is making progress towards the commitment or has achieved a goal, or not.\nFor example, if a brand is not committed to a UN ESG goal, we will return a greyed out version of the image.\n"},"description":{"type":"string","description":"Description of the commitment or goal"},"website":{"type":"string","description":"A link to the commitment or goal website, where a user can find more information about a specific goal"}}},"brandCategory":{"description":"We support two versions of categories: the legacy version and the new, enhanced version. Currently, for any customer onboarded prior to April 2024, the response fields include the top merchant category and the general categories.\nFor customers onboarded after April 2024, the brandCategory field will be included by default, offering greater precision and detail about the transaction category.\nCustomers who were onboarded before this date will continue to access only the top merchant category and general categories fields. To upgrade and gain access to the new brandCategory, these customers should contact support at mrssupport@snowdropsolutions.co.uk\n","properties":{"parentCategory":{"type":"string","description":"The highest level of category aggregation, encompassing 12 broad categories. Each Parent Category includes one or more Category Groups, which in turn aggregate all Category Types. This hierarchical structure is particularly useful for displaying all spending by category on a mobile screen, providing a clear and organized overview of expenditures."},"categoryGroup":{"type":"string","description":"Mid-level aggregation within the hierarchy, comprising 33 groups. Each Category Group includes multiple Category Types, facilitating detailed organization and providing a granular view of expenditures on a mobile screen."},"categoryType":{"type":"string","description":"The most granular level of categorization. This detailed categorization level allows for a precise and explicit description of spending, particularly beneficial for providing detailed insights about a business to end-users. Note: Customers who want access to this field should contact Snowdrop at mrssupport@snowdropsolutions.co.uk"},"brandParentCategoryImg":{"type":"string","description":"URL for the brand parent category Logo"},"brandCategoryGroupImg":{"type":"string","description":"URL for the brand category group Logo"}}},"aggregateLevel":{"description":"This will only be returned if the the brands configuration has been enabled for you. \nThis field will return the aggregate id that points to the top level parent brand, and enables the aggregation of transactions from the parent brand with all transaction from sub-brands.\nIf you wish to aggregate by sub brand level and don't want to aggregate by parent brand level, don't use this aggregateLevel attribute. \nFor example, to show Carrefour Express transactions under Carrefour Express, don't use this attribute.\n","properties":{"id":{"type":"string","description":"ID of the parent brand"},"name":{"type":"string","description":"Name of the parent brand"},"img":{"type":"string","description":"URL of the parent brand logo"},"website":{"type":"string","description":"URL of the parent brand website"}}},"IntermediaryInfo":{"description":"If an intermediary merchant e.g. Paypal was found, this object will be returned with the intermediary merchant's details.","properties":{"name":{"type":"string"},"website":{"type":"string"},"img":{"type":"string"}},"required":["name"]},"Store":{"description":"This will only be returned if the relevant configuration has been enabled for you.\nStore accurately identifies a place of business in its location.\nIt can present additional attributes of the store\nIt can be enabled in restrictive and extended mode if the setting is enabled for you.\n","properties":{"id":{"type":"string","description":"Unique identifier of the store"},"updatedDate":{"type":"string","description":"The date the store was last updated in ISO format\n"}}}},"responses":{"400TokenResponse":{"description":"Returned when a transaction-token request is malformed, for example when `transactions` is missing, a token is empty, or duplicate transaction tokens are supplied.\n","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"boolean"},"code":{"type":"number"}}}}}},"401Response":{"description":"Returned when the API key is invalid. Double check that you are sending the correct API key in the `X-Api-Key` header.\n","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"boolean"},"code":{"type":"number"}}}}}},"403Response":{"description":"Returned when the API key is missing. Double check that you are sending the API key in the `X-Api-Key` header.\n","content":{"text/html":{"schema":{"type":"string"}}}},"404Response":{"description":"Returned when the endpoint is not found. Double check that you are sending the request to the correct endpoint.\n","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"boolean"},"code":{"type":"number"}}}},"text/html":{"schema":{"type":"string"}}}},"500Response":{"description":"Returned when the request has failed due to an internal server error. Please retry the request later.\n","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"boolean"},"code":{"type":"number"}}}}}}}},"paths":{"/api/v3/merchant/token":{"post":{"summary":"Re-enrich merchants using transaction tokens","description":"Re-runs MRS enrichment using `transactionToken` values previously returned by `/api/v3/merchant` or `/api/v3/merchant/list`.\n\nA transaction token represents the original transaction search input and should be treated as an opaque value. Clients should store the token exactly as returned by MRS and send it back unchanged when a later enrichment is required.\n\nEvery `transactionToken` in a request must be non-empty and unique within that request.\n","operationId":"getMerchantsByTransactionToken","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantTokenRequest"}}}},"responses":{"200":{"description":"Enrichment results keyed by the transaction token supplied in the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantTokenResponse"}}},"headers":{"X-Request-Id":{"schema":{"type":"string"},"description":"A unique request identifier generated on the server-side. This can be used for error reporting."},"X-Timestamp":{"schema":{"type":"string"},"description":"A timestamp generated on the server-side. This can be used for error reporting."}}},"400":{"$ref":"#/components/responses/400TokenResponse"},"401":{"$ref":"#/components/responses/401Response"},"403":{"$ref":"#/components/responses/403Response"},"404":{"$ref":"#/components/responses/404Response"},"500":{"$ref":"#/components/responses/500Response"}}}}}}
```
