Layer 1 copy

Use-case

This is a guide for companies that offer an online wallet which users can deposit funds into to buy other types of currencies or send money to individuals and businesses.

Sending Data to Sift Science

Send User Activity
Send Key User Events
User creates an account
  • When a user creates an account, send a $create_account eventwith custom fields to capture differences between users, such as:
    • 'account_state' : e.g. 'standard'
    • 'sms_verification_status' : '$pending'
    • 'credit_verification_status' : '$pending'
  • When a user updates their account information send an $update_account event with custom fields such as:
    • 'account_state' : e.g. 'standard', 'advanced'
    • 'sms_verification_status' : '$success', '$failure'
    • 'credit_verification_status' : '$success', '$failure'
User deposits money
  • When a user deposits money, send a $transaction event with custom fields such as:
    • 'promo_code_applied' : true
    • 'account_balance' : 100000000 (send after any changes to a user's balance)
    • 'deposit_channel' : e.g 'web', 'bank', 'in-store', etc.
    • 'deposit_point_id' : e.g. 'store_114523', 'bank_549809'
    • 'num_deposit_locations_used' : 2 (if a user has used two different deposit locations)
  • Set the $payment_method to the information for the card/bank account where the money is being moved from.
User withdrawls money
  • When a user withdrawls money, send a $transaction event.
  • Set the $payment_method to the information for the card/bank account where the money is being moved to.
User transfers money to another user's wallet

When user A transfers money into user B's wallet, send the following two custom events:

  • send_money
    • '$user_id' : 'A'
    • 'send_amount' : e.g. 25 for 25 microBitcoin
    • 'recipient_user_id' : 'B'
    • 'account_balance_amount' : 75 (amount after the transfer)
    • 'account_balance_currency_code' : 'BTC'
  • receive_money
    • '$user_id' : 'B'
    • 'receive_amount' : e.g. 25 for 25 microBitcoin
    • 'sender_user_id' : 'A'
    • 'account_balance_amount' : 225 (amount after the transfer)
    • 'account_balance_currency_code' : 'BTC'
All $transaction events
  • The '$amount' field of the $transaction event accepts values in micros, where $49.23 is 49230000. More examples, including handling BTC, are shown here.
  • Set $currency_code to capture the currency being used for the payment.
  • In all events where a user's balance changes, send in micros. If you keep separate bitcoin and cash balances, send two custom fields: btc_balance_amount and cash_balance_amount. Send account_balance_currency_code to capture what currency the wallet stores.
  • When the payment method is through a method with instant money transfer or approval (ex: Credit Card payment), specify '$transaction_status' : '$success' / '$failure'
  • When the payment method is through an offline payment (ex: Cash, bank wire, or in-store payment) or a delayedtransfer (ex: Electronic funds transfer, ACH) specify '$transaction_status' : '$pending'. When you receive notification that the customer completed the payment (i.e. bank notifies you the deposit succeed or failed) send another $transaction evnet with the same '$transaction_id' value as the pending $transaction and set '$transaction_status' : '$success' / '$failure'
Addition Events

The following events can be sent to capture a more complete picture of users when applicable: $login, $logout.

Send Business Decisions

Whenever your automated systems or analysts take action, send those actions into Sift as Decision events. Actions range from positive (eg Approve Order), to neutral (Flag Account), to negative (Ban User). The key thing is that you should send all Actions you take to Sift, not just your negative actions.

Set up your Business Decisions

In order to send Decision events you'll first have to create the specific Decisions your business takes in the Sift Science Console. While we start all accounts out with a few generic Decisions, Decisions are fully customizable so you can create a Decision for every action that your business takes. Some examples of Decisions are:

  • Ban Account (Block Category Decision)
  • Cancel Order (Block Category Decision)
  • Flag for Additional Review (Watch Category Decision)
  • Approve User (Accept Category Decision)

See the Decisions Intro for more context.

During your integration, you should send the Decisions that your business is currently making through any internal fraud engines or Manual Review processes to the Sift Decisions API.If you currently do not have in-house fraud logic or a manual review process, work with Sift to setup your initial Workflows within Sift's platform.

Get Started with Sift Scores

When you are initially integrating with Sift, your scores will be based on whatever data you’ve sent us. So if it is a brand new integration with no backfilled data, Sift will need a week or two of data to learn your unique fraud patterns. One of the key strengths of the Sift platform is that it consistently learns as you send more and more data to it. You should see a substantial increase in accuracy of your scores during these first weeks as you send more Decisions and User Events.

During this stage, you should be assessing your Sift Scores in the Sift Science Console and determining which actions you want to take for different score ranges. Since all businesses are different, finding your unique score thresholds that achieve your business goals is key.

To reduce the amount of time required in this initial learning phase, you can send a historical backfill so that Sift can learn about your user's fraud patterns.

Build Your Business Logic With Sift Scores

Now that you sending both user events and business decisions to Sift, you’re ready to start using Sift scores in your business logic. At this point, you’ll have an understanding how scores correlate to different levels of risk. Based on the user’s risk score, you’ll set up different outcomes within your application (eg users with low score are automatically approved).

To build this logic, you'll want to evaluate a user's Sift Score at the key events where bad users can hurt your business or good users can have a more frictionless experience.

The two ways to use Sift Scores:

  • Create a Sift Workflow: Sift Workflows give you a powerful way to automate your Decisions without having to write business logic on your side. Workflows let you set up rules that gets evaluated whenever specified events occur. These rules enable you to route users to different outcomes based on Sift Score and other attributes of the user and transaction (eg User is from Canada, Order is greater than $500, and Sift Score is greater than 80). With Sift Workflows, you also get Sift Review Queues for fast, easy investigation so you won’t have to build your own queues. To learn more, see our Workflows documentation.
  • Build application logic in your system: You can synchronously request the Sift score of a user with any event you send to Sift. This score will take into consideration all data you’ve sent to Sift including the event you just sent. Sift Scores should only be requested at the key events where fraud or abuse occurs (eg ask for score when sending a Create Order event) To learn more, see our API documentation

Any questions? We're happy to talk it through.