Credit Card Usage Patterns
This dataset provides detailed, anonymized credit card transaction records, including customer demographics, merchant information, and transaction characteristics. It is designed for in-depth analysis of customer behavior, marketing campaign effectiveness, and fraud detection, making it valuable for financial institutions and data scientists seeking actionable insights.
Sample rows
preview · 8 of 200 rows · all 20 columns| transaction_idstring | transaction_typestring | transaction_amountfloat | is_fraudboolean | location_statestring | customer_idstring | transaction_datetimedatetime | merchant_idstring | merchant_namestring | merchant_categorystring | currencystring | card_typestring | is_onlineboolean | device_typestring | location_citystring | location_postal_codestring | location_countrystring | customer_age_groupstring | customer_genderstring | marketing_campaign_idstring |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TXN_01A2B3C4D5 | purchase | 42.75 | false | IL | CUST0210XK | 2024-05-17T13:47:22Z | MCH_1932RT | FreshMart | grocery | USD | Visa | false | POS | Chicago | 60611 | US | 26-35 | female | MC_SPRING24 |
| TXN_0G3T5F8R9Q | purchase | 1179.99 | false | CA | CUST9831ZX | 2024-06-03T10:18:05Z | MCH_2918LM | Tech World | electronics | USD | MasterCard | true | desktop | San Francisco | 94105 | US | 36-45 | male | MC_SUMMER24 |
| TXN_1Q4W6E7R8T | purchase | 68.4 | false | TX | CUST0022AB | 2024-05-21T16:03:14Z | MCH_9934ST | Cafe Mocha | restaurant | USD | Visa | false | POS | Austin | 78701 | US | 46-55 | female | MC_SPRING24 |
| TXN_2A5S4D6F3G | purchase | 219.99 | false | NY | CUST2345CD | 2024-05-30T19:22:51Z | MCH_8762JK | Style Hub | clothing | USD | MasterCard | true | mobile | New York | 10001 | US | 26-35 | male | MC_SPRING24 |
| TXN_3Z6X9C7V2B | purchase | 54.8 | false | TX | CUST5241EF | 2024-06-09T08:56:44Z | MCH_6541GH | FuelZone | fuel | USD | Visa | false | POS | Dallas | 75201 | US | 36-45 | female | blank |
| TXN_4H8J5K2L1N | purchase | 1450 | false | CO | CUST7770GH | 2024-04-22T17:34:12Z | MCH_4729PO | GoTravel | travel | USD | Visa | true | desktop | Denver | 80202 | US | 56-65 | male | blank |
| TXN_5Q9W8E7R6T | purchase | 36.19 | false | IL | CUST0210XK | 2024-05-27T15:09:27Z | MCH_1932RT | FreshMart | grocery | USD | Visa | false | POS | Chicago | 60611 | US | 26-35 | female | MC_SPRING24 |
| TXN_6E2T8G5V1B | purchase | 77.5 | false | CA | CUST6332HI | 2024-06-12T14:22:08Z | MCH_1881LK | MovieTime | entertainment | USD | Amex | true | tablet | Los Angeles | 90017 | US | 36-45 | male | MC_MOVIENIGHT24 |
| TXN_7A9S3D2F6G | cash_advance | 500 | true | TX | CUST3562JK | 2024-05-02T11:05:33Z | MCH_2119TU | QuickBank ATM | other | USD | MasterCard | false | POS | Houston | 77002 | US | 46-55 | male | blank |
| TXN_8Z2X7C4V5B | purchase | 89.95 | false | WA | CUST1276LM | 2024-05-06T10:58:17Z | MCH_3324MV | RetailX | clothing | USD | MasterCard | true | desktop | Seattle | 98101 | US | 18-25 | female | MC_SPRING24 |
| TXN_9H1J6K2L3N | purchase | 57.2 | false | FL | CUST4421MN | 2024-05-24T19:14:42Z | MCH_5892QT | Eatery Express | restaurant | USD | Visa | false | POS | Miami | 33101 | US | 56-65 | male | blank |
| TXN_10Q3W8E2R7T | purchase | 2347 | true | CA | CUST3201OP | 2024-06-10T12:23:56Z | MCH_3201VS | Gadget Corner | electronics | USD | Visa | true | mobile | San Diego | 92101 | US | 26-35 | female | MC_BFCM24 |
| TXN_11A2B3C4D5 | purchase | 28.6 | false | AZ | CUST9028ST | 2024-04-27T09:11:51Z | MCH_9034JK | SuperMart | grocery | USD | Visa | false | POS | Phoenix | 85001 | US | 65+ | male | blank |
| TXN_12G3T5F2R8Q | purchase | 39.5 | false | MA | CUST7589DF | 2024-05-11T17:33:08Z | MCH_3481PK | CinemaPlus | entertainment | USD | Visa | true | desktop | Boston | 02108 | US | 46-55 | female | MC_MOVIENIGHT24 |
| TXN_13Q4W7E2R9T | fee | 0.01 | false | GA | CUST4006UI | 2024-05-19T10:59:31Z | MCH_5012SR | blank | other | USD | Other | false | POS | Atlanta | 30301 | US | 36-45 | other | blank |
| TXN_14A5S8D6F3G | cash_advance | 999.99 | true | PA | CUST6043CV | 2024-05-22T10:15:44Z | MCH_2713LM | Bank ATM | other | USD | MasterCard | false | POS | Philadelphia | 19102 | US | 65+ | female | blank |
| TXN_15Z6X9C7V2B | purchase | 18500 | true | blank | CUST9012KL | 2024-06-01T14:45:37Z | MCH_8721GH | Swiss Deluxe | travel | CHF | Amex | true | desktop | Zurich | 8001 | CH | 36-45 | male | blank |
| TXN_16H8J5K2L1N | purchase | 1250 | false | CA | CUST5555RQ | 2024-05-16T17:32:21Z | MCH_9991AB | Enjoy Travel | travel | USD | Visa | true | tablet | San Jose | 95112 | US | 56-65 | female | blank |
| TXN_17Q9W8E7R6T | purchase | 3299.99 | true | CA | CUST6121OP | 2024-05-14T09:03:05Z | MCH_7451DF | Electro World | electronics | USD | Visa | true | desktop | Los Angeles | 90017 | US | 26-35 | male | MC_BFCM24 |
| TXN_18E2T8G5V1B | purchase | 81.2 | false | NC | CUST8529TV | 2024-05-18T18:24:59Z | MCH_1123FG | GrocerEase | grocery | USD | MasterCard | false | POS | Charlotte | 28202 | US | 46-55 | male | blank |
What the 200 rows show
from the 200-row sampleCash_
- 23%is_
fraud = true - 87.0median transaction_
amount - 4customer genders
- 5card types
- 5device types
- 6currencies
Median 87.0, from 0.01 to 1,000,000.
- string 16
- float 1
- datetime 1
- boolean 2
Columns
20 columns in four groups| column | type | description | example |
|---|---|---|---|
| Text 16 columns | |||
transaction_id | string | Unique identifier for each credit card transactionunique | TXN_01A2B3C4D5 |
customer_id | string | Anonymous unique identifier for the customer making the transaction | CUST0210XK |
merchant_id | string | Unique identifier for the merchant where the transaction took place | MCH_1932RT |
merchant_name | string | Name of the merchant where the transaction occurredoptional | FreshMart |
merchant_category | string | Category of the merchant (e.g., grocery, electronics, restaurant)8 values | grocery |
currency | string | ISO 4217 currency code for the transaction (e.g., USD, EUR)6 currencies | USD |
transaction_type | string | Type of transaction (e.g., purchase, refund, cash_advance)6 values | purchase |
card_type | string | Type of credit card used (e.g., Visa, MasterCard, Amex)Visa · MasterCard · Amex · Discover · Other | Visa |
device_type | string | Type of device used for the transaction (e.g., mobile, desktop, POS terminal)mobile · desktop · POS · tablet · other · optional | POS |
location_city | string | City where the transaction occurredoptional | Chicago |
location_state | string | State or province where the transaction occurredoptional | IL |
location_postal_code | string | Postal code of the transaction locationoptional | 60611 |
location_country | string | Country where the transaction occurred (ISO 3166-1 alpha-2 code)8 countries | US |
customer_age_group | string | Age group of the customer (e.g., 18-25, 26-35, etc.)6 values · optional | 26-35 |
customer_gender | string | Gender of the customer (if available)male · female · other · unknown · optional | female |
marketing_campaign_id | string | Identifier for the marketing campaign associated with the transaction, if anyoptional | MC_SPRING24 |
| Numbers 1 column | |||
transaction_amount | float | Total amount of the transaction in local currency0.01 or more | 42.75 |
| Dates and times 1 column | |||
transaction_datetime | datetime | Date and time when the transaction occurred | 2024-05-17T13:47:22Z |
| True or false 2 columns | |||
is_online | boolean | Indicates if the transaction was made online (true) or in-person (false) | false |
is_fraud | boolean | Flag indicating if the transaction was identified as fraudulentoptional | false |
Use it for
A finance dashboard
The is_
fraud rate, transaction_ amount by transaction_ type and a breakdown of location_ state. Excel, Power BI or Tableau. Why do 46 of 200 rows have is_
fraud = true? A root-cause class exercise
Hand out the rows and one question. The answer is in the data, not in the brief.
- Transactions200TXN_01A2B3C4D542.75purchaseTXN_7A9S3D2F6G500cash_adv…TXN_10Q3W8E2R7T2347purchase
A software demo
Believable transactions with customer_
id, transaction_ datetime and merchant_ id to fill a screen in front of a buyer.
blueprint · credit-card-usage-patterns
Behind this dataset
Same schema. As many rows as you need.
These 200 rows came out of a blueprint — 20 columns with generation rules behind each one. Open it in Data Factory to retune a column, add your own, wire in foreign keys, and run it at the size you actually need.
- Transaction amounts consistent with industry norms
- Cardholder demographics included
- Merchant types classified
- Usage frequency tracked monthly
1 credit per row. Preview 20 rows free. Buy rows for the full run.
- Exports
- CSV, JSON, JSONL, Parquet, SQL, Excel, TSV, XML
- Licence
- yours to use, including commercially
- API slug
- credit-card-usage-patterns