Layer 1 copy


This guide helps e-commerce businesses stop chargebacks, promo abuse, and other types of fraud.

Send User Events

A core integration includes the following (when applicable):

When a user creates an account
  • If users can create accounts, send a $create_account event.
  • If a user updates their account information outside of the checkout flow, send an $update_account event.
  • If users can checkout anonymously, follow our tutorial.
When a user places an order
  • When a user places an order, send a $create_order event. Fill in as many $items fields as you can and send custom fields to capture differences between users and orders such as:
    • 'num_reviews' : 4 (prior to this purchase, the user has reviewed 4 items)
    • 'promo_code' : 'SpringPromo'
    • 'order_is_gift' : True
  • If a user can update an order (e.g. change the shipping address), send an $update_order event.
When you interact with a payment gateway
  • Send a $transaction event for each payment gateway interaction, as well as each other payment method accepted for the order (e.g. gift card).
  • When a payment gateway informs you of a chargeback, send a $chargeback event.and a fraud label.
Additional events

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

Send Feedback to Sift

One of the key strengths of the Sift Science platform is that as you give it feedback it continues to learn and adapt to patterns. By providing continuous feedback on who your good and bad users are, we will evolve our detection and improve the accuracy of risk scores. You’ll be able to stop bad actors even as they change their attack vectors. In addition to sending an optional historical backfill:

  • Create a Feedback focused Workflow where you review high scoring users and tell us how well we are predicting your fraudsters.
  • If you are already doing manual review in your existing system, just send the outcome of each review to our Labels API

Once you’re up and running with Sift, continuing to send feedback will improve your score accuracy in real-time, catching bad users as soon as they appear. This is an important part of a successful integration.

Make Decisions with Sift

Scores are an indication of how risky a user is for a given abuse type. You can use these scores as a means to block bad users, add friction to users you are unsure about (e.g., SMS verification), and let good users sail right through. At a minimum, you'll likely be making this check at $create_order.

The two ways to do this are:

  • Create a Sift Workflow You can build application logic into Sift with our Workflow product. Workflows let you set up criteria that get evaluated whenever specified events occur. Learn more in our Workflows tutorial.
  • Build application logic in your system An alternate approach is to request abuse specific risk scores to be returned in the response of the user events you send. See our API documentation

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