8. Adding Transactions
If a model works correctly, it will flag a fraudulent transaction and create an alert.
The Unit21 foundation is composed of:
Entities - a user or business
Instruments - an object that is used to exchange currencies
Transactions - two entities that exchange currencies
Before fraud can be monitored, it is important to generate additional transactions for Mr Baker.
Add more Transactions
- Log into your Dashboard.
- Navigate to the Data Explorer and go to the Upload File tab:
- As per previous section, download this JSON file on your computer. You can highlight the text and copy-paste it into a text editor like Notepad. Save the file as
Create_baker_events.json
and make sure no extra text is added and that the file extension is JSON and not TXT.
[{
"general_data": {
"event_id": "baker-transaction-02",
"event_type": "transaction",
"event_subtype": "ach",
"event_time": 1646802313
},
"transaction_data": {
"sent_amount": 13305.89,
"sent_currency": "usd",
"sender_entity_id": "Baker01",
"sender_entity_type": "user",
"sender_source": "internal",
"sender_instrument_id": "cc-7297",
"received_amount": 13305.89,
"received_currency": "use",
"receiver_entity_id": "371c4d7b-0563-aab1-4685",
"receiver_entity_type": "user",
"receiver_source": "internal",
"receiver_instrument_id": "39405443-238938823-34347686",
"amount": 13305.89
}
}, {
"general_data": {
"event_id": "baker-transaction-03",
"event_type": "transaction",
"event_subtype": "ach",
"event_time": 1646802313
},
"transaction_data": {
"sent_amount": 17800.00,
"sent_currency": "usd",
"sender_entity_id": "Lee01",
"sender_entity_type": "user",
"sender_source": "internal",
"sender_instrument_id": "39405443-238938823-34347686",
"received_amount": 17800.00,
"received_currency": "usd",
"receiver_entity_id": "Baker01",
"receiver_entity_type": "user",
"receiver_source": "internal",
"receiver_instrument_id": "cc-7291",
"amount": 17800.00
}
}]
- Replace the
event_time
with the current Unix timestamp (today's date and time) by going to this URL: https://www.epoch101.com/.
[{
"general_data": {
"event_id": "baker-transaction-02",
"event_type": "transaction",
"event_subtype": "ach",
"event_time": CURRENT EPOCH GOES HERE
},
...
}, {
"general_data": {
"event_id": "baker-transaction-03",
"event_type": "transaction",
"event_subtype": "ach",
"event_time": CURRENT EPOCH GOES HERE
},
...
}]
Make sure to replace the event_time
for BOTH transactions as this JSON file will create 2 events.
- Drag and drop
Create_baker_events.json
to the Upload File widget. - Make sure the file uploaded correctly, it should be labeled as
Awaiting Trigger
:
- In the table of Recent Uploads, select the ... menu item (three dots on the right hand side) of your
Create_baker_events.json
file. Select Process in the menu:
- Patiently wait while Unit21 validates and processes the file.
- Success! You can see the results by navigating to the Transactions tab:
You may need to use our filters to find the new transaction!
It is important to note here that two transactions were created:
- baker-transaction-02:
Baker01
and71c4d7b-0563-aab1-4685
exchanged $13305.89.Baker01
used his credit card *7291. - baker-transaction-03:
Lee01
andBaker01
exchanged $17800.00.Baker
received the funds on credit card *7291.
Next, we will write a rule to flag these transactions in the system and generate alerts.
Updated 2 months ago