Re-enrich using transaction tokens - POST
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.
Enrichment results keyed by the transaction token supplied in the request.
Returned when a transaction-token request is malformed, for example when transactions is missing, a token is empty, or duplicate transaction tokens are supplied.
Returned when the API key is invalid. Double check that you are sending the correct API key in the X-Api-Key header.
Returned when the API key is missing. Double check that you are sending the API key in the X-Api-Key header.
Returned when the endpoint is not found. Double check that you are sending the request to the correct endpoint.
Returned when the request has failed due to an internal server error. Please retry the request later.
POST /api/v3/merchant/token HTTP/1.1
Host: eu.snowdrop-mrs.com
X-Api-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 124
{
"transactions": [
{
"transactionToken": "tx-v1-eyJleGFtcGxlIjoiLi4uIn0"
},
{
"transactionToken": "tx-v1-eyJleGFtcGxlIjoidHdvIn0"
}
]
}{
"results": [
{
"token": "tx-v1-eyJleGFtcGxlIjoiLi4uIn0",
"result": [
{
"transactionToken": "tx-v1-eyJleGFtcGxlIjoiLi4uIn0",
"name": "Example Merchant",
"website": "https://example.com",
"category": "Groceries",
"categories": [
"supermarket"
],
"isClearResponse": false
}
]
}
]
}Last updated
Was this helpful?