Credentials
To configure a Riskified connection, you need to set the following credentials.Limited actions
By default, Gr4vy sends transaction status updates to Riskified for all transaction events, including refunds and voids. However, you can enable the Limited Actions flag in the connector configuration to limit these updates. When the Limited Actions flag is enabled, Gr4vy only sends transaction status updates to Riskified during the initial transaction processing. Status updates forrefund or void events are not sent to Riskified.
Decision mapping
Decisions received from Riskified are mapped to the decisions according to the following logic.
As Riskified’s product does not have a manual review queue, only
accept or reject decisions are returned. A captured response can also be returned by Riskified, if you have set up a configuration with Riskified to only review a part of your volume.
If there is a technical issue reaching Riskified, the decision returns as an exception.
Data requirements
To receive accurate anti-fraud recommendations from Riskified, it is important to provide comprehensive transaction data. While Riskified attempts to process transactions with limited data, providing the following fields significantly improves the quality and accuracy of fraud decisions.Recommended fields
For optimal fraud detection, it is highly recommended to include billing details with the following fields:billing_details.first_namebilling_details.last_namebilling_details.phone_numberbilling_details.address.line1billing_details.address.countrybilling_details.address.citybilling_details.address.postal_codebilling_details.address.state
shipping_details.first_nameshipping_details.last_nameshipping_details.phone_numbershipping_details.address.line1shipping_details.address.countryshipping_details.address.cityshipping_details.address.postal_codeshipping_details.address.state
Browser information
For optimal fraud detection accuracy, Riskified benefits from the following browser data being associated with a transaction.
When using Embed or one of the e-commerce plugins, all of these values are automatically set.
If you create transactions by using direct API calls, it is recommended to include all
transaction.browser_info fields. For the full list of fields, see the browser_info object in the new transaction API reference.
Please refer to the IP address forwarding guide for
more details on passing the IP address when making direct API calls.
Custom options
You can pass Riskified-specific options using connection options under theriskified-anti-fraud key.
These options mirror Riskified’s own API format, including its field names. Where a
field also exists on a Gr4vy address, the Riskified name and format take precedence,
so that you can write these options directly from Riskified’s reference.
Line items
Shipping lines
Multiple shipping addresses
A transaction holds one set of shipping details. For split shipments, supply the other destinations inadditional_shipping_addresses. The transaction’s address is always
sent first, and these are appended after it.
The
country name sent to Riskified is derived from country_code and cannot be
supplied directly.
province_code follows Riskified’s format, which is the subdivision code on its own,
for example NY. This differs from the Gr4vy state_code field on a buyer or
transaction address, which is ISO 3166-2 and includes the country prefix, for example
US-NY. Gr4vy converts state_code to Riskified’s format automatically for the
transaction’s own address.Address ids
The address derived from the transaction always uses the reserved idbase-shipping-address. Ids are only sent when an order ships to more than one
destination, so a single-destination order sends no ids at all and
shipping_address_id must not be provided in that case.
shipping_address_id is optional on every entry. When an order ships to more than
one destination, Gr4vy sends an address id on every line item and shipping line,
using the transaction’s address for anything you did not target.
cart_items, but does not take up a position in line_items:
Blue Shirt ships to the transaction’s address, since its override sets no
shipping_address_id. Red Shoes and the delivery charge ship to
secondary-address.
Cart items
Gr4vy mapscart_items to line_items in the Riskified payload.
- The sum of all cart item amounts must equal the transaction’s total amount.
- It is recommended to include a shipping line item if there are physical items.
- If a shipping line item is included, its title is mandatory. Set the title to
store_pickupfor store pickup orders. - If the order is not a store pickup order, shipping details must be attached to the transaction. You can provide them in one of the following ways:
- Store them against the buyer using the new buyer shipping detail API.
- Include them directly on the transaction using the
buyer.shipping_detailsfield in the new transaction API.
Device fingerprinting
Device fingerprinting is recommended when using Riskified. Please refer to the device fingerprinting guide for more information on the universal solution. If needed, you could load the fingerprint script for Riskified directly and pass thesession_id value as the anti_fraud_fingerprint to the new transaction API.