The Risk Service provides clients monitoring abilities to aid in fraud prevention and risk mitigation. The Risk Service consists of a robust set of rules and a series of APIs (Score, Retrieve Scores and Updating Scores) that enable real-time risk scoring on transaction based on layers of rules defined. The Risk Service API requires Basic Authentication.
The URL to the production server is https://api.nelnetpay.com/psd/risk
https://docs.nelnetpay.com/_mock/apis/risk-api-spec/
https://api.uat.nelnetpay.com/psd/risk/
Original risk score uuid
When the internal agent updated the order status in ISO 8601 format, UTC timezone, default to current time
Code for an internal agent who has made changes to the order
Status of the order payment
Status of the order
Fraud category
https://docs.nelnetpay.com/_mock/apis/risk-api-spec/update
https://api.uat.nelnetpay.com/psd/risk/update
curl -i -X POST \
-u <username>:<password> \
https://docs.nelnetpay.com/_mock/apis/risk-api-spec/update \
-H 'Content-Type: application/json' \
-d '{
"uuid": "e5c920e8-a619-4ca7-a06a-92e36a53e7e6",
"agentUpdatedOn": "2017-02-13T21:27:45Z",
"agentCode": "agent123",
"agentDept": "dept123",
"balance": 150,
"event": "event name",
"paymentStatus": "AUTH",
"status": "APPROVED",
"fraudType": "OTHER",
"fraud": true
}'
Object: billing information
Apartment/suite/unit number, if both address1 and address2 are not provided, this will be set to be 'Not Provided'
Two or three digit state or province code, according to ISO3166
Two or three digit country code, according to ISO3166-1 alpha 2 or 3
Phone number. If the phone provided is in not a US number, precede the number with
Object: information about the payment
Credit card/account token or identifier of payment
Transaction amt in the currency the transaction was actually conducted in
The currency of the transaction occurred in (ISO4127 currency code like USD), if it is not set, it will be set by the value of currency Merchant configuration
User defined code indicating cardholder presence during transaction
What method is the customer using for payment. If you would like to add other payment methods, please contact your customer success team member for instructions.
User defined label that categorizes the transaction
If by credit card, which card network like VISA
The credit card number's or Account's last 4 digits
https://docs.nelnetpay.com/_mock/apis/risk-api-spec/score
https://api.uat.nelnetpay.com/psd/risk/score
curl -i -X POST \
-u <username>:<password> \
https://docs.nelnetpay.com/_mock/apis/risk-api-spec/score \
-H 'Content-Type: application/json' \
-d '{
"billing": {
"firstName": "John",
"address1": "230 17th St",
"address2": "apt 1a",
"company": "Nelnet",
"city": "Omaha",
"region": "NE",
"postalCode": "68154",
"country": "US",
"email": "jessica@ngilang.com",
"phone": "212-289-1293",
"lastName": "Smith"
},
"device": {
"ipAddress": "127.32.32.1",
"userAgent": "MOZILLA/5.0 (IPHONE; CPU IPHONE OS 7_1 LIKE MAC OS X) APPLEWEBKIT/537.51.2",
"fingerprintId": "Id1234",
"httpReferer": "https://www.google.com"
},
"payment": {
"paymentId": "4teSTtkN123456",
"actualAmt": 150,
"actualCcy": "USD",
"chPresent": "YES",
"method": "CREDIT_CARD",
"transactionLabel": "tuition",
"type": "VISA",
"last4": "1234",
"paymentTypeByPaymentMethod": "22",
"achStandardEntryCode": "ACK"
},
"transaction": {
"orderTotal": 150,
"status": "NEW"
},
"psd": {
"clientId": "Gateway",
"applicationId": "Enterprise",
"productId": "Forms",
"appKey": "appKey",
"appKey1": "appKey1",
"appKey2": "appKey2",
"appKey3": "appKey3",
"appKey4": "appKey4",
"appKey5": "appKey5",
"appKey6": "appKey6",
"appKey7": "appKey7",
"acctHolderId": "123456",
"feeType": "Fee",
"recurringId": "ABC123456",
"recurringType": "RC1",
"refundType": "RF1",
"remittanceType": "RM1"
}
}'
https://docs.nelnetpay.com/_mock/apis/risk-api-spec/score/{uuid}
https://api.uat.nelnetpay.com/psd/risk/score/{uuid}
curl -i -X GET \
-u <username>:<password> \
'https://docs.nelnetpay.com/_mock/apis/risk-api-spec/score/{uuid}'