The time at which this data payload was valid. When sending events in realtime, this will usually be 'now'. This is used to merge data that arrives out-of-order. A Unix timestamp preferably as an
integer count of milliseconds since |
An eventType describes from where an API call is being made. Pattern:
^[a-zA-Z0-9][a-zA-Z0-9-_]*$ |
The ID of the customer you want to link to in the graph. Mutually exclusive with customer. |
The customer you want to link to in the graph. Mutually exclusive with customerId. |
Payment methods you want to associate the customer with. |
Identifications are used by online customers to verify their real-world identity. These forms of identification can be authenticated with government authorities or authorised third-parties to confirm the credentials are legitimate. Extra steps should be taken to confirm the customer is the legitimate holder of these credentials. |
Vehicles the customer owns or has taken out insurance policies with, for example. |
The ID of the device to which you want to link the customer. Mutually exclusive with device. |
The device to which you want to link the customer. Mutually exclusive with deviceId. |
The chargeback to which you want to link the customer. |
The dispute to which you want to link the customer. |
The manual review you would like to apply to the customer, stating whether your analyst believes them to be fraudulent or genuine. |
A custom entity you would like to use as a node to link customers in the graph. |
Custom entities you would like to use as nodes to link customers in the graph. |
POST https://api.ravelin.com/v2/connect?features=true&depth=10 HTTP/1.1
Authorization: token ...
Content-Type: application/json
{
"timestamp": 1512828988826,
"customer": {
"customerId": "abc-123-ZYZ",
"registrationTime": 1479302798,
"familyName": "Smith",
"givenName": "John",
"name": "John Smith",
"email": "jsmith123@example.com",
"emailVerifiedTime": 1479302798,
"telephone": "+16045555555",
"telephoneVerifiedTime": 1479302798,
"telephoneCountry": "GBR",
"tags": {
"foo": true,
"bar": false
},
"country": "GBR"
},
"paymentMethods": [
{
"card": {
"paymentMethodId": "123-abc-XYZ",
"nickName": "joescard",
"lastVerified": 1480340580,
"banned": false,
"active": true,
"registrationTime": 1480340580,
"instrumentId": "123-abc-XYZ",
"cardBin": "123456",
"cardLastFour": "1234",
"cardType": "visa",
"expiryMonth": 4,
"expiryYear": 2020,
"nameOnCard": "John Smith",
"successfulRegistration": true,
"issuer": "barclaycard",
"countryIssued": "GBR",
"prepaidCard": false,
"billingAddress": {
"latitude": 51.503252,
"longitude": -0.127899,
"geohash": "gcpuvp",
"street1": "123 fake st.",
"street2": "floor 4, flat 48",
"neighbourhood": "Hackney",
"zone": "1",
"city": "London",
"region": "California",
"country": "GBR",
"poBoxNumber": "1234",
"postalCode": "E1 1AA"
},
"billingFamilyName": "Smith",
"billingGivenName": "John",
"corporateCard": true,
"virtualCard": true
}
}
],
"nationalIdentifications": [
{
"driversLicense": {
"idNumber": "10261985",
"jurisdictionCountry": "USA",
"jurisdictionState": "CA",
"name": "Marty McFly"
}
}
],
"vehicles": [
{
"plate": "OUTATIME",
"jurisdictionCountry": "USA",
"jurisdictionState": "CA",
"make": "DeLorean Motor Company",
"model": "DeLorean",
"year": 1983,
"vin": "2GTEK13M081122443"
}
],
"device": {
"deviceId": "abc-123-ZYZ",
"type": "phone",
"manufacturer": "google",
"model": "Pixel XL",
"os": "android",
"browser": "Chrome 42",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36"
},
"chargeback": {
"chargebackId": "abc-123-XYZ",
"gateway": "Stripe",
"gatewayReference": "abc-123-XYZ",
"reason": "FRAUD",
"status": "LOST",
"amount": 15212,
"currency": "GBP",
"disputeTime": 1479302798,
"liabilityShifted": true,
"nonFraud": false
},
"review": {
"label": "FRAUDSTER",
"comment": "Definitely a fraudster.",
"reviewer": {
"name": "tom@mycompany.com",
"email": "Tom"
}
},
"customNodes": [
{
"nodeType": "group",
"nodeId": "group-abc-123-ZYZ",
"nodeName": "Group abc-123-ZYZ"
}
]
}
Note: If the maximum node visit limit
is reached while searching the graph, the maxNodesHit field will be set to true
and all the
*Count
fields (customerCount
, cardCount
, etc.) will be set to 5000.
status
integer
The HTTP response status code. (Only present if |
success
string
Indicates whether the request was successful (HTTP 200 OK). (Only present if |
timestamp
integer
A Unix timestamp indicating when we finished handling the request. |
clientID
string
The unique identifier for your Ravelin client account. |
customerID
string
Unique identifier for the customer. |
count
integer
The total number of nodes visited while searching the graph. Equal to the sum of all count fields. |
customerCount
integer
Number of customer nodes visited while searching the graph. |
cardCount
integer
Number card payment method nodes visited while searching the graph. |
chargebackCount
integer
Number of dispute nodes visited while searching the graph. |
reviewedFraudsterCount
integer
Number of nodes for customers reviewed as 'fraudster' visited while searching the graph. |
reviewedGenuineCount
integer
Number of nodes for customers reviewed as 'genuine' visited while searching the graph. |
emailCount
integer
Number of email address nodes visited while searching the graph. |
phoneCount
integer
Number of phone number nodes visited while searching the graph. |
deviceCount
integer
Number of device nodes visited while searching the graph. |
vehicleCount
integer
Number of vehicle nodes visited while searching the graph. |
identificationCount
integer
Number of national identification document nodes visited while searching the graph. |
customNode1Count
integer
Number of custom node 1 nodes visited while searching the graph. We will inform you which custom node type this represents when we configue custom nodes for your account. |
customNode2Count
integer
Number of custom node 2 nodes visited while searching the graph. We will inform you which custom node type this represents when we configue custom nodes for your account. |
customNode3Count
integer
Number of custom node 3 nodes visited while searching the graph. We will inform you which custom node type this represents when we configue custom nodes for your account. |
customNode4Count
integer
Number of custom node 4 nodes visited while searching the graph. We will inform you which custom node type this represents when we configue custom nodes for your account. |
customNode5Count
integer
Number of custom node 5 nodes visited while searching the graph. We will inform you which custom node type this represents when we configue custom nodes for your account. |
supplierCount
integer
Number of supplier nodes visited while searching the graph. |
hopsToFraud
integer
Minimum number of connections (edges) between the parent node and nearest known fraudster. Fraudsters are identified as either customers who have been reviewed as fraudsters, or customers who have an unforgiven dispute. A value of -1 indicates that no fraudster was found in the graph. |
customerDegreeMin
number
Minimum number of connections for any customer node found while searching the graph. |
customerDegreeMean
number
Average number of connections across all customer nodes found while searching the graph. |
customerDegreeMax
number
Maximum number of connections for any customer node found while searching the graph. |
cardDegreeMin
number
Minimum number of connections for any card node found while searching the graph. |
cardDegreeMean
number
Average number of connections across all card nodes found while searching the graph. |
cardDegreeMax
number
Maximum number of connections for any card node found while searching the graph. |
emailDegreeMin
number
Minimum number of connections for any email address node found while searching the graph. |
emailDegreeMean
number
Average number of connections across all email address nodes found while searching the graph. |
emailDegreeMax
number
Maximum number of connections for any email address node found while searching the graph. |
phoneDegreeMin
number
Minimum number of connections for any phone number node found while searching the graph. |
phoneDegreeMean
number
Average number of connections across all phone number nodes found while searching the graph. |
phoneDegreeMax
number
Maximum number of connections for any phone number node found while searching the graph. |
deviceDegreeMin
number
Minimum number of connections for any device node found while searching the graph. |
deviceDegreeMean
number
Average number of connections across all device nodes found while searching the graph. |
deviceDegreeMax
number
Maximum number of connections for any device node found while searching the graph. |
identificationDegreeMin
number
Minimum number of connections for any national identification document node found while searching the graph. |
identificationDegreeMean
number
Average number of connections across all national identification document nodes found while searching the graph. |
identificationDegreeMax
number
Maximum number of connections for any identification document node found while searching the graph. |
vehicleDegreeMin
number
Minimum number of connections for any vehicle node found while searching the graph. |
vehicleDegreeMean
number
Average number of connections across all vehicle nodes found while searching the graph. |
vehicleDegreeMax
number
Maximum number of connections for any vehicle node found while searching the graph. |
vinDegreeMin
number
Minimum number of connections for any vehicle identification number (VIN) node found while searching the graph. |
vinDegreeMean
number
Average number of connections across all vehicle identification number (VIN) nodes found while searching the graph. |
vinDegreeMax
number
Maximum number of connections for any vehicle identification number (VIN) node found while searching the graph. |
customNode1DegreeMin
number
Minimum number of connections for any custom node type 1 found while searching the graph. |
customNode1DegreeMean
number
Average number of connections across all custom nodes type 1 found while searching the graph. |
customNode1DegreeMax
number
Maximum number of connections for any custom node type 1 found while searching the graph. |
customNode2DegreeMin
number
Minimum number of connections for any custom node type 2 found while searching the graph. |
customNode2DegreeMean
number
Average number of connections across all custom nodes type 2 found while searching the graph. |
customNode2DegreeMax
number
Maximum number of connections for any custom node type 2 found while searching the graph. |
customNode3DegreeMin
number
Minimum number of connections for any custom node type 3 found while searching the graph. |
customNode3DegreeMean
number
Average number of connections across all custom nodes type 3 found while searching the graph. |
customNode3DegreeMax
number
Maximum number of connections for any custom node type 3 found while searching the graph. |
customNode4DegreeMin
number
Minimum number of connections for any custom node type 4 found while searching the graph. |
customNode4DegreeMean
number
Average number of connections across all custom nodes type 4 found while searching the graph. |
customNode4DegreeMax
number
Maximum number of connections for any custom node type 4 found while searching the graph. |
customNode5DegreeMin
number
Minimum number of connections for any custom node type 5 found while searching the graph. |
customNode5DegreeMean
number
Average number of connections across all custom nodes type 5 found while searching the graph. |
customNode5DegreeMax
number
Maximum number of connections for any custom node type 5 found while searching the graph. |
supplierDegreeMin
number
Minimum number of connections for any supplier node found while searching the graph. |
supplierDegreeMean
number
Average number of connections across supplier nodes found while searching the graph. |
supplierDegreeMax
number
Maximum number of connections for any supplier node found while searching the graph. |
maxNodesHit
boolean
Indicates if the maximum node visit limit of 5000 visited nodes
was reached during graph traversal.
When true, all |
maxDepthReached
boolean
Indicates if the maximum graph traversal depth was reached before fraud was found.
The maximum depth is specified by the |
maxDegreeHit
boolean
Indicates if the maximum allowed node degree was encountered. The maximum allowed node degree is 5000, we will not search through nodes connected to over 5000 other nodes. The search will continue, but will ignore nodes connected to more than 5000 other nodes. |
autoExcludeHit
boolean
Indicates if any automatic exclusion rules were triggered. The following rules are applied:
|
edgeGeneralMeanAge
number
Average age of edges found up to depth 6 (6 hops from the parent node), in seconds. |
edgeGeneralGrowthRate
number
Rate of new edge creation calculated on edges up to depth 6 (6 hops from the parent node), in edges per hour. |
edgeGeneralCount
integer
The number of edges found up to depth 6 (6 hops from the parent node). |
edgeLocalMeanAge
number
Average age of edges found up to depth 2 (2 hops from the parent node), in seconds. |
edgeLocalGrowthRate
number
Rate of new edge creation around the parent node, calculated on edges up to depth 2 (2 hops from the parent node), in edges per hour. |
edgeLocalCount
integer
Number of edges found up to depth 2 (2 hops from the parent node). |
meanDegree
number
Average number of connections across all nodes visited while searching the graph. |
tags
array
List of tags with their respective depths in the graph. |
{
"timestamp": 1512828988826,
"clientID": "client123",
"customerID": "abc-123-ZYZ",
"count": 20,
"chargebackCount": 0,
"reviewedFraudsterCount": 0,
"reviewedGenuineCount": 0,
"customerCount": 14,
"cardCount": 0,
"emailCount": 3,
"phoneCount": 1,
"deviceCount": 0,
"vehicleCount": 2,
"identificationCount": 1,
"customNode1Count": 1,
"supplierCount": 1,
"hopsToFraud": -1,
"customerDegreeMin": 2,
"customerDegreeMean": 2.2142857142857144,
"customerDegreeMax": 3,
"cardDegreeMin": 0,
"cardDegreeMean": 0,
"cardDegreeMax": 0,
"emailDegreeMin": 12,
"emailDegreeMean": 53.666666666666664,
"emailDegreeMax": 115,
"phoneDegreeMin": 4,
"phoneDegreeMean": 4,
"phoneDegreeMax": 4,
"deviceDegreeMin": 0,
"deviceDegreeMean": 0,
"deviceDegreeMax": 0,
"vehicleDegreeMin": 12,
"vehicleDegreeMean": 50,
"vehicleDegreeMax": 88,
"customNode1DegreeMin": 1,
"customNode1DegreeMean": 1,
"customNode1DegreeMax": 1,
"maxDepthReached": true,
"edgeGeneralMeanAge": 58649687.38709678,
"edgeGeneralGrowthRate": 0.0011340132677723277,
"edgeGeneralCount": 31,
"edgeLocalMeanAge": 54742302.71428572,
"edgeLocalGrowthRate": 0.0010242700483104894,
"edgeLocalCount": 28,
"meanDegree": 14.8,
"tags": [
{
"tagName": "high_risk",
"depth": 2
}
]
}
Was this page helpful?