Enrich one transaction - GET
Last updated
Was this helpful?
Last updated
Was this helpful?
Start with our guide on how to use MRS to enrich raw transaction data. Note - See the clearResponse
property below for options on how MRS should respond when a merchant was not found. If clearResponse
is explicitly set to false and a merchant is not found, an empty array will be returned.
/api/v3/merchant
Two possible values: restrictive
or extended
. restrictive
does not return any information from the Google APIs. extended
will return information from Google Maps Platform APIs depending on the case.
restrictive
, extended
Merchant's name for performing the search. It must be longer than 1 character.
Merchant's locality name for performing the search. While this parameter is not mandatory, it is highly recommended to include in the request the merchant`s location or a combination of one or more parameters such as postcode, city and country.
If only one field with location information is available the location parameter is recommended to be used instead of the city parameter (see below). The advantage is the location parameter may have some business rules that apply to it. Also, do not include the same field in more than one parameter sent to MRS.
City name where the search is restricted to. Note that if only one field of location information is available, it is the location parameter (see above) that should be used first. Also, it is not recommended to repeat the same field in more than one parameter.
London
A country name or a ISO 3166-1 country code in alpha2, alpha3 or numeric format. While, technically speaking, the country is optional, it is highly recommended to include this information. Otherwise you might get merchants from the wrong country mapped to a transaction. For example a McDonald`s in London, Kentucky instead of London, Ontario or London, England.
GBR
Postal code where the search is restricted to.
Merchant Category Code. Merchant Category Classification (MCC) codes are optional but recommended. MRS uses MCCs in various ways to help identify the correct merchant. A key example is MRS uses MCCs to assist in identifying Automated Teller Machine (ATM) transactions. The code for automated cash disbursements is 6011. This is helpful because in some cases, ATMs are not easily identifiable from the merchant description. Also, certain airline, hotel and car rental companies have their own unique MCC code and if an MCC is provided it can help to identify the correct merchant. Finally an MCC can be used as an extra parameter to distinguish between different businesses that might share a name (for example the Metro Department store, Metro Supermarket and Metro Gas Station).
5411
A boolean to indicate if a merchant is online. Accepted values are true and false, both lower case. Defaults to false if omitted
Latitude coordinate from where the search is restricted to. When this parameter is present, a longitude parameter is required.
51.51694868913037
Longitude coordinate from where the search is restricted to. When this parameter is present, a latitude parameter is required.
-0.17244443271737944
A string containing the maximum distance in kilometers from the previously specified point, e.g. "12". If this parameter is not present then a default value will be used, which is set in the configuration. If provided, the latitude and longitude parameters are also required
12
^\d{1,}$
Merchant`s address for performing the search.
The size of the logo returned. The possible values are 1x (logo width of 96 pixels) or 2x (logo width of 192 pixels). The default is 2x if this parameter is not specified.
2x
, 1x
true
if it is required to get all of the info from the Google APIs. This is set to false
by default. Note that setting this parameter to true
increases the costs incurred from the Google APIs. The standard level of Google Places API used by MRS is Basic + Contact. Setting this parameter to true
changes the type of call to the Basic + Contact + Atmosphere.
MRS attempts to return logos for the merchants involved in a transaction. For some transactions, MRS is unable to return a logo or image for the merchant. When this is the case MRS is able to provide a category icon instead. If this parameter is set to true
then a default category icon is returned. If this parameter is set to false
then the default category icons are not returned. The default value for this parameter is true
.
Returns cleaned and parsed transaction data even when no match is found. This parameter is set to true
by default. If an MCC code is provided as part of the input, then the response will also provide categorisation. This means transactions have categorisation info returned even if the merchant was not otherwise identified. If ommitted, defaults to true.
The language in which Google requests will be made. The data obtained from Google will be returned in this language, if possible, that is: name and geographic data. Note that some fields may not be available in the requested language. See the list of supported languages and their codes.
es
An optional comma separated list of response fields that will be force returned from our internal sources. This is useful if you want to cache fields such as the name or website during an extended call. Allowed values are: name, website, img, category, categories
name,website