Risk data documentation

Find all the specification for fraud-related fields.

Additional Risk Data information

To optimize our fraud prevention efforts, we strongly encourage merchants to fully utilize the additional_risk_data field when making Payment API calls. This comprehensive data allows us to conduct in-depth analyses, significantly enhancing our ability to identify and prevent fraudulent transactions.

Merchants may provide the information that applies to their particular case.

PropertyTypeDescriptionType
deviceDevice object​Additional information on the device used for purchase.Required
payerPayer object​Additional information on the payer.Recommended and optional fields.
basketList of Item objectsInformation on the items purchased.Recommended and optional fields.
shippingShipping object​Information on the shipping/alternative address.Required for Retail, Marketplace, and Delivery industries.
beneficiaryBeneficiary object​ Information on the beneficiary.Required for Account funding flows (wallets, live streaming, etc).
subscriptionSubscription object​ Additional information on the subscription.Recommended for recurring payments.
submerchantSubmerchant objectInformation on the submerchant account.Required for merchants with more merchants that involve submerchants.

Example Payment with Additional Risk Data object

{
    "amount": 399.8,
    "currency": "USD",
    "country": "BR",
    "payment_method_id": "CARD",
    "payment_method_flow": "DIRECT",
    "payer": {
        "name": "Thiago Gabriel",
        "email": "[email protected]",
        "document": "53033315550",
        "user_reference": "12345",
        "address": {
            "state": "Rio de Janeiro",
            "city": "Volta Redonda",
            "zip_code": "27275-595",
            "street": "Servidao B-1",
            "number": "1106"
        }
    },
    "card": {
        "holder_name": "Thiago Gabriel",
        "number": "4111111111111111",
        "cvv": "123",
        "expiration_month": 10,
        "expiration_year": 2040
    },
    "order_id": "657434343",
    "notification_url": "http://merchant.com/notifications",
    "additional_risk_data": {
        "device": {
            "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36",
            "geolocation": "-34.8798853,-56.1867859",
            "locale": "en-US",
            "advertising_id": "EA7583CD-A667-48BC-B806-42ECB2B48606",
            "vendor_id": "uapff_93e9a58cc03a0e7f45c2cf50ca567a99",
            "android_id": "cdda802e-fb9c-47ad-9866-0794d394c913",
            "media_drm_id": "0102030405060708090a0b0c0d0e0f10"
        },
        "payer": {
            "account_creation_date": "20201110",
            "is_positive": false,
            "email_is_valid": true,
            "phone_is_valid": false,
            "first_purchase_date": "20201110",
            "last_order_id": "1525634152634",
            "total_order_count": 12,
            "total_order_amount": 152.03,
            "last_updated_date": "20201020",
            "reputation": 5
        },
        "basket": [
            {
                "unit_price": 199.9,
                "category": "Electronic",
                "item_reference": "SP-562138",
                "product_name": "Pexel 25",
                "quantity": 2,
                "url": "https://www.merchant.com/products/SP-562138",
                "brand": "Smoogle",
                "subcategory": "Droid smartphones",
                "published_date": "20201113",
                "rating": 4.5,
                "count_reviews": 13,
                "subscription": {
                    "id": "adgte1256",
                    "period": "P1M",
                    "current_period": 3,
                    "end_date": "20240801"
                }
            }
        ]
    },
    "shipping": {
        "address": {
            "state": "Montevideo",
            "city": "Montevideo",
            "zip_code": "11300",
            "street": "Avda. Brasil",
            "number": "1234 Ap. 501"
        },
        "cost": 12.34,
        "delivery_company": "FadEx",
        "method": "FREE",
        "delivery_date": "20211020",
        "is_forwarding_address": false,
        "geolocation": "-34.8798853,-56.1867859"
    },
    "beneficiary": {
        "email": "[email protected]",
        "phone": "55119846785",
        "accountID": "384059hji",
        "name": "gabriel thiago",
        "document": "54678903",
        "created_date": "20220704"
    },
    "submerchant": {
        "merchant_reference": "12534",
        "name": "Submerchant name",
        "website": "https://www.submerchant.com",
        "industry": 17,
        "document": "15236713521",
        "nationality": "BR",
        "email": "[email protected]",
        "username": "submerchant_username",
        "phone": "123456712345",
        "created_date": "20210311",
        "total_order_count": 35,
        "total_order_amount": 45020,
        "last_updated_date": "20210312",
        "onboarding_ip_address": "123.21.31.124",
        "onboarding_email": "[email protected]",
        "reputation": 4,
        "ship_from_address": {
            "state": "Montevideo",
            "city": "Montevideo",
            "zip_code": "11300",
            "street": "Avda. Brasil",
            "number": "1234 Ap. 401"
        },
        "last_login": "20210312",
        "device_id": "2fg3d4gf234",
        "kyc_review": true,
        "fraud_review": true,
        "fraud_review_type": "MULTIPLE_ACCOUNTS",
        "fraud_review_description": "Passed to fraud review because of blacklist NEW_ACCOUNT_MULTIPLE_ACCOUNTS",
        "submerchant_description": "Business description",
        "checkout_type": "WEBSITE_REDIRECT",
        "checkout_subtype": "TOKEN",
        "registered_company": true,
        "bank_account": {
            "beneficiary_name": "Account's onwer's nam",
            "beneficiary_document": "15236713521",
            "account": "487445839",
            "branch": "name/number",
            "beneficiary_email": "[email protected]",
            "beneficiary_phone": "5512345678901"
        }
    }
}

Detail Information

Device

The Device object is used to store information on the device (e.g., laptop, smartphone) used to make the purchase.

To provide information about the Device ID, there are two possible options:

  • If you calculate your Device ID, you can send this information in the Payer object, under the deviceid field.
  • If you use the dLocal integration, you must send the information in additional_risk_data.device_id.event_uuid. Also, the following fields could be sent:
PropertyTypeDescriptionType
event_uuidStringdLocal Device ID.Required
user_agentStringBrowser's User Agent property.Optional
geolocationStringUser's geolocation.Optional
localeStringBrowser's locale.Optional
advertising_idStringAn advertising ID is a unique user ID assigned to a mobile device, or operating environment(apple: advertisingIdentifier, android: GSF ID).Optional
vendor_idStringFor Apple, an alphanumeric string that uniquely identifies a device to the vendor (identifierForVendor).Optional
android_idStringFor Android, 64-bit number (as a hex String) that the OS randomly generates when the user first sets up the device.Optional
media_drm_idStringFor Android, the MediaDrm device unique ID.Optional

Example Device object

"additional_risk_data":{
  "device": {
    "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36",
    "geolocation" : "-34.8798853,-56.1867859",
    "locale": "en-US",
    "advertising_id": "EA7583CD-A667-48BC-B806-42ECB2B48606",
    "vendor_id": "uapff_93e9a58cc03a0e7f45c2cf50ca567a99",
    "android_id": "cdda802e-fb9c-47ad-9866-0794d394c913",
    "media_drm_id": "0102030405060708090a0b0c0d0e0f10"
  }
}

Payer

The basic information of the payer, meaning the entity that initiates the payment, must be sent in the Payer object. This object is intended to collect additional information.

PropertyTypeDescriptionType
account_creation_dateStringDate of creation of the account. YYYYMMDD format. This information is used to generate different risk segments based on the age of the account.Recommended
is_positiveBooleanSet to TRUE if this payer is considered as a positive user by the merchant, e.g. for regular customers with a good purchase history.
This field can be used to define a healthy segment to which fewer rules can be applied.
Recommended
phone_is_validBooleanSet to TRUE if the payer's phone number has been validated.Optional
email_is_validBooleanSet to TRUE if the payer's email has been validated.Optional
first_purchase_dateStringDate of first successful purchase. YYYYMMDD format.Optional
last_order_idStringLast order id placed by this account, not including the current order.Optional
total_order_countNumberThe total count of orders purchased by this account.Optional
total_order_amountNumberThe total amount purchased by this account.Optional
last_updated_dateDateThe last time a change was made to this account, e.g. changed address. YYYYMMDD format.Optional
reputation NumberThe reputation of the payer, from 0 (negative) to 5 (positive).Optional

Example Payer object

"additional_risk_data":{
  "payer": {
    "account_creation_date": "20201110",
    "is_positive": false,
    "email_is_valid": true,
    "phone_is_valid": false,
    "first_purchase_date": "20201110",
    "last_order_id": "1525634152634",
    "total_order_count": 12,
    "total_order_amount": 152.03,
    "last_updated_date": "20201020",
    "reputation": 5
  }
}

Basket

This object is a list of items and should be used to specify the different items purchased and their characteristics. This applies to both physical and digital products.

Our fields are flexible and can be adapted to the information you have. Our team is available to assist you in this process if necessary.

PropertyTypeDescriptionType
unit_priceNumberUnit price.Recommended
categoryStringProduct category.Recommended
item_referenceStringItem ID/Reference.Recommended
product_nameStringProduct or service name.Recommended
quantityNumberQuantity of items purchased.Recommended
urlStringThe item URL.Recommended
brandStringProduct brand.Optional
subcategoryStringThe item subcategory.Optional
published_dateStringDate when the product was added/published in the store. YYYYMMDD format.Optional
ratingNumberThe product rating, as a score from 1 to 5.Optional
count_reviewsNumberNumber of customer reviews the product has received.Optional

Example Basket & Item object

"additional_risk_data":{
  "basket": [
            {
              "unit_price": 199.90,
              "category": "Electronic",
              "item_reference": "SP-562138",
              "product_name": "Pexel 25",
              "quantity": 2,
              "url": "https://www.merchant.com/products/SP-562138",
              "brand": "Smoogle",
              "subcategory": "Droid smartphones",
              "published_date": "20201113",
              "rating": 4.5,
              "count_reviews": 13
              }
              ]
 }    

Shipping

For merchants in Delivery, Retail, Marketplace, or whenever the delivery of a physical product is involved, the billing address must be included in the Payer object, and the shipping address must be included in the shipping object. Additionally, the rest of the parameters in the shipping object are optional.

PropertyTypeDescriptionType
addressAddress objectRepresents the address, documented in this table.Required
address.stateStringState.Required
address.cityStringCity.Required
address.zip_codeStringZIP Code.Required
address.streetStringStreet.Required
address.numberStringStreet number.Required
costNumberCost of the delivery (in USD).Optional
delivery_companyStringName of the delivery company.Optional
methodStringThe type of shipment selected during checkout. See the list.Optional
delivery_dateStringShipping delivery date. YYYYMMDD format.Optional
is_fowarding_addressBooleanIf the shipping address is a forwarding address.Optional
geolocationStringShipping geolocation.Optional

Example Shipping object

"additional_risk_data":{
  "shipping": {
    "address": {
      "state": "Montevideo",
      "city": "Montevideo",
      "zip_code": "11300",
      "street": "Avda. Brasil",
      "number": "1234 Ap. 501"
      },
      "cost": 12.34,
      "delivery_company": "FadEx",
      "method": "FREE",
      "delivery_date": "20211020",
      "is_forwarding_address": false,
      "geolocation": "-34.8798853,-56.1867859"
    }
  }

Beneficiary

For merchants that include an account funding flow, beneficiary information is mandatory. If you have any questions, our fraud team can provide assistance and guidance as needed.

This information is crucial for detecting and preventing buyer and seller fraud. It applies to both cards and alternative payment methods.

PropertyTypeDescriptionType
emailStringThe email address associated with the beneficiary's account.Required
nameStringThe full name of the beneficiary.Required
phoneStringThe phone number associated with the beneficiary's account.Required
documentStringAn identification document (e.g., passport, ID card) of the beneficiary.Required
account_idStringA unique identifier for the beneficiary's account where the funds will be deposited.Required
created_dateStringThe date when the beneficiary account was created. YYYYMMDD format.Required

Example Beneficiary object

"additional_risk_data":{
  "beneficiary": {
    "email":"[email protected]",
    "phone":"55119846785",
    "accountID":"384059hji",
    "name":"gabriel thiago",
    "document":"54678903",
    "created_date":"20220704"
  }
}

Subscription

For merchants with recurring payments and subscriptions, we recommend providing detailed information about the subscription periods.

This data will enhance the accuracy of the fraud strategy and help detect friendly chargebacks.

PropertyTypeDescriptionType
subscriptionSubscription ObjectRepresents the subscription period, documented in this table.Recommended
subscription.idStringSubscription ID/reference.Recommended
subscription.periodStringRenewal period in ISO 8601 format (P1M, P3M, P1Y etc).Recommended
subscription.current_periodStringThe current subscription period that the recurring order belongs to.Recommended
subscription.end_dateStringSubscription end date. YYYYMMDD format.Recommended

Example Subscription object

"additional_risk_data":{
  "basket":[
    {
    "subscription":{
      "id":"adgte1256",
      "period":"P1M",
      "current_period":3,
      "end_date":"20240801"
    }
    ]
}

Submerchant

This section covers all merchants that involve submerchants or those processing through different URLs.

For these cases, it is necessary to identify each submerchant and their website. Additionally, various recommended and optional features are presented.

PropertyTypeDescriptionType
merchant_referenceStringThe ID/reference of the submerchant account.Required
websiteStringSubmerchant website.Required
documentStringSubmerchant's document.Required
emailStringSubmerchant's email address.Required
nameStringSubmerchant name.Required
phoneStringPhone number.Required
onboarding_emailStringThe email used when this seller account was created.Required
industryNumberSubmerchant industry, see industry codes list.Optional
nationalityStringSubmerchant's nationality (ISO 3166 country code).Optional
usernameStringThe unique username associated with the seller's online account.Optional
created_dateStringDate of account creation. YYYYMMDD format.Optional
total_order_countNumberThe total count of orders sold by this seller.Optional
total_order_amountNumberThe total amount sold by this seller (in USD).Optional
ship_from_addressObjectThe address from where the submerchant ships the orders.Recommended
ship_from_address.streetStringStreet.Recommended
ship_from_address.numberStringStreet number.Recommended
ship_from_address.cityStringCity.Recommended
ship_from_address.zip_codeStringZIP Code.Recommended
ship_from_address.stateStringState.Recommended
device_idStringSubmerchant's unique device identifier (onboarding).Recommended
last_updated_dateStringThe last time a change was made to this submerchant (e.g. changed address). YYYYMMDD format.Optional
onboarding_ip_addressStringThe IP address of the device used when this seller account was created.Optional
reputationNumberThe reputation of the submerchant, from 0 (negative) to 5 (positive).Optional
last_loginDateThe last time this submerchant logged in. YYYYMMDD format.Optional
KYC_review BooleanInforms if KYC was reviewed.Optional
Fraud_reviewBooleanInforms if there was a fraud review.Optional
Fraud_review_typeListIf there was a fraud review, what type was it.Optional
Fraud_review_descriptionStringDescription of the fraud review performed.Optional
submerchant_descriptionStringInformation and description about the business provided by the merchant.Optional
Checkout_typeStringType of integration the merchant is using for the checkout.Optional
Checkout_subtypeStringAdditional information regarding the integration subtype.Optional
industry_nameStringMerchant Industry.Optional
Registered_CompanyBooleanIf the merchant is an individual or a company.Optional
bank_accountObjectBank account information.Optional
bank_account.beneficiary_nameStringBank account's owner's full name.Optional
bank_account.beneficiary_documentStringBank account's owner's document ID.Optional
bank_account.accountNumberBank account's number.Optional
bank_account.branchStringWhere was the bank account opened.Optional
bank_account.beneficiary_emailStringBank account's owner's email address.Optional
bank_account.beneficiary_phoneNumberBank account's owner's phone number.Optional

Example Submerchant object

"additional_risk_data":{
  "submerchant": {
    "merchant_reference": "12534",
    "name": "Submerchant name",
    "website": "https://www.submerchant.com",
    "industry": 17,
    "document": "15236713521",
    "nationality": "BR",
    "email": "[email protected]",
    "username": "submerchant_username",
    "phone": "123456712345",
    "created_date": "20210311",
    "total_order_count": 35,
    "total_order_amount": 45020,
    "last_updated_date": "20210312",
    "onboarding_ip_address": "123.21.31.124",
    "onboarding_email": "[email protected]",
    "reputation": 4,
    "ship_from_address": {
      "state": "Montevideo",
      "city": "Montevideo",
      "zip_code": "11300",
      "street": "Avda. Brasil",
      "number": "1234 Ap. 401"
      },
    "last_login":"20210312",
    "device_id":"2fg3d4gf234",
    "kyc_review":true,
    "fraud_review":true,
    "fraud_review_type":"MULTIPLE_ACCOUNTS",
    "fraud_review_description":"Passed to fraud review because of blacklist NEW_ACCOUNT_MULTIPLE_ACCOUNTS",
    "submerchant_description":"Business description",
    "checkout_type":"WEBSITE_REDIRECT",
    "checkout_subtype":"TOKEN",
    "registered_company":true,
    "bank_account": {
      "beneficiary_name": "Account's onwer's nam",
      "beneficiary_document": "15236713521",
      "account": "487445839",
      "branch": "name/number",
      "beneficiary_email": "[email protected]",
      "beneficiary_phone": "5512345678901"
      },
  }
}

Appendix - Codes

Industry codes list

CodeIndustry
1Advertising
2Antivirus
3Delivery
4Donations
5Education
6Gaming
7Healthcare
8Hosting
9Investing / Financial services
10IT Services
11Marketplace
12Money remittance
13Payroll
14Prepaid cards
15PSP
16Retail - Offline
17Retail - Online
18Ridesharing
19SaaS
20Social
21Software / Apps
22Streaming
23Transport
24Travel
25Wallet
26Dating
27Crypto
999Others

Shipping methods list

CodeDescription
FREEFree Shipping
PICKUPPickup in store
INTERNATIONALInternational
EXPRESSExpress
STANDARDStandard

Purchase channel list

CodeDescription
WEBUsers buy through the website.
PHONEOrders made by phone calls.
MOBILE_APPUsers buy through a mobile application.
SOCIALUsers buy through a social network platform (Facebook, Instagram).
MARKETPLACEUsers buy in an e-commerce store where products are sold by multiple sellers (Amazon).
IN_STOREOrders purchased in a physical store.

How can we improve?

Let’s collaborate to create a better experience.

Give feedback