iovation Integration Kit

JSON Pointer syntax reference

JavaScript Object Notation (JSON) Pointer defines a syntax for identifying a specific value within a JSON payload. Using the sample payload and JSON Pointer examples below, identify the attributes that you want to use to populate your attribute contract.

You can find a complete technical description of JSON Pointer syntax in the IETF RFC 6901 - JavaScript Object Notation (JSON) Pointer.

You can find more information about the iovation payload structure in Transaction REST API Response Attributes in the iovation Help Center.

Example JSON payload

{
    "id": "4a5cc146-9a48-4663-b93e-cdc3fa4517ba",
    "result": "R",
    "reason": "Accounts Per Device- 3 Max",
    "statedIp": "127.0.0.1",
    "accountCode": "sampleAccountCode",
    "trackingNumber": 877301938420090395,
    "details": {
        "device": {
            "alias": 113919332761383848,
            "blackboxMetadata": {
                "age": 937853,
                "timestamp": "2019-10-10T23:42:03Z"
            },
            "browser": {
                "cookiesEnabled": true,
                "configuredLanguage": "EN-CA,EN-US;Q=0.7,EN;Q=0.3",
                "language": "EN-CA",
                "type": "FIREFOX",
                "timezone": "480",
                "version": "70.0"
            },
            "firstSeen": "2019-10-01T23:48:46.393Z",
            "isNew": false,
            "os": "INTEL MAC OS X 10.14",
            "screen": "1440X3440",
            "type": "MAC"
        },
        "statedIp": {
            "address": "127.0.0.1",
            "source": "subscriber"
        },
        "realIp": {
            "address": "8.8.8.8",
            "isp": "INTERNET NOW",
            "ipLocation": {
                "city": "MANASSAS",
                "country": "UNITED STATES",
                "countryCode": "US",
                "latitude": 38.74622,
                "longitude": -77.48911,
                "region": "VIRGINIA"
            },
            "parentOrganization": "INTERNET NOW",
            "source": "iovation"
        },
        "ruleResults": {
            "score": -1,
            "rulesMatched": 1,
            "rules": [
                {
                    "type": "Accounts Per Device",
                    "reason": "Accounts Per Device- 3 Max",
                    "score": -1
                }
            ]
        }
    }
}
JSON Pointer syntax
Description JSON Pointer Example value

Result of the transaction risk assessment.

A

allow

R

review

D

deny

/result

R

The numeric score that determines the risk result.

/details/ruleResults/score

-1

The country that the device is signing in from.

/details/realIp/ipLocation/country

UNITED STATES