Transaction Match

Transaction Match allows users to match large batches of transaction data to Foursquare's POI dataset, returning standardized place IDs, enriched attributes, and confidence-based match results for each record.

Input

Supported File Types

  • CSV
  • parquet

For best results, all null values should be sanitized to empty strings.

Input File Format

root
 |-- dba_name: string (nullable = false)
 |-- mcc: string (nullable = false)
 |-- card_presence: string (nullable = false)
 |-- city: string (nullable = false)
 |-- state: string (nullable = false)
 |-- zip: string (nullable = true)

Details

Field NameDescriptionNullable?
dba_name"Doing Business As" - the merchant's business name as it appears in transactionsfalse
mccMerchant Category Code - a 4 digit-code that classifies the merchant's type of business (e.g., restaurants, gas stations).true
card_presenceIndicates whether the card was physically present during the transaction (e.g., "Card Present", "Card Not Present").true
cityCity where the merchant is located.true
stateState code where the merchant is located (e.g., "NY", "CA").true
zipPostal/ZIP code of the merchant's location.true

Output

Output will always be generated as parquet.

Output File Format

root
 |-- venuename: string (nullable = true)
 |-- city: string (nullable = true)
 |-- state: string (nullable = true)
 |-- zip: string (nullable = true)
 |-- output_venuename: string (nullable = true)
 |-- output_address: string (nullable = true)
 |-- output_city: string (nullable = true)
 |-- output_state: string (nullable = true)
 |-- output_zip: string (nullable = true)
 |-- latitude: double (nullable = true)
 |-- longitude: double (nullable = true)
 |-- confidence: string (nullable = true)
 |-- comment: string (nullable = true) 
 |-- target_id: string (nullable = true)

Details

Field NameDescriptionNullable?
venuenameOriginal input merchant name.false
cityOriginal input city.true
stateOriginal input state.true
output_venuenameFinal harmonized venue name.true
output_addressFinal harmonized venue address.true
output_cityFinal harmonized city.true
output_stateFinal harmonized state.true
output_zipFinal harmonized ZIP code.true
longitudeLongitude coordinate.true
latitudeLatitude coordinate.true
confidenceMatch confidence level: "High", "Medium", "Low", "Invalid Input", or "No Match - More Info Needed"false
commentAdditional context about the match source.true
target_idFoursquare venue ID assigned during final harmonization.true