Response will provide device, IP and user insights.
POST {{baseUrl}}/openings
Provides customers user identity, IP, and device scores to help with account creation decisioning. Using this API enables customers to be able to catch fraud early on and enhance customer experience while improving their risk models.
Request Body
{"device"=>{"ip"=>"2001:0db8:5b96:0000:0000:426f:8e17:642a", "userAgent"=>"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 7.0; InfoPath.3; .NET CLR 3.1.40767; Trident/6.0; en-IN)", "plugins"=>["Adobe Acrobat", "QuickTime"], "canvas"=>"e1af96a2e8af1115", "webGl"=>"wg1-ce04533340ea94cf", "timeZone"=>"600", "screenResolution"=>"1024x820", "localStorage"=>true, "buildManufacturer"=>"Apple", "androidBuildVersion"=>"12", "androidSdkInt"=>"31", "buildFingerprint"=>"samsung/a32xsq/a32x:12/SP1A.210812.016/A326USQS7BVF2:user/release-keys", "buildBrand"=>"Apple", "supportedFeatures"=>["mhac", "mhtse", "mhcdma", "mhgy"], "model"=>"iPhone", "sdkUserAgent"=>"14.3.1.7", "majorOsVersion"=>12, "minorOsVersion"=>0, "simCountryIso"=>"us", "simOperator"=>"T-Mobile", "primaryStorage"=>117027876864, "systemMemory"=>5847543808, "buildProduct"=>"beyond0qltesq", "vendorAppId"=>"64BAA4F0-9EBC-713E-5B5B-2AF40AB4123A", "storedDeviceId"=>"wyett276tuygey6r", "androidId"=>"38400000-8cf0-11bd-b23e-10b96e40000d", "language"=>"zh-TW", "colorDepth"=>24, "cookiesEnabled"=>true}, "user"=>{"account"=>{"hashedAccountId"=>"3b5ed8ad6a408f42015254dd4b116080289038d41c311332e3c00be60f884370", "signupTime"=>"2020-12-31 13:45"}, "name"=>"John Smith", "email"=>"john.smith@mastercard.com", "phone"=>{"countryHint"=>"US", "number"=>"7785732875"}, "address"=>{"streetLine1"=>"912 Uclan Dr", "streetLine2"=>"Apt 32", "city"=>"Houston", "state"=>"TX", "postalCode"=>"63124", "country"=>"US"}}, "endCustomerRefId"=>"12345", "placement"=>"Registration"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"requestRefId":"be3ad617-04ad-43e1-a438-79425b6511b6","insights":{"user":{"scores":{"identityRisk":42},"details":{"email":{"valid":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"firstSeenDays":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"matchToName":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"domainCreationDate":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"phone":{"valid":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"lineType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"carrier":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"countryCode":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"lastSeenDays":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"emailFirstSeenDays":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"matchToName":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"matchToAddress":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"address":{"validityLevel":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"matchToName":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}}},"ip":{"scores":{"ipRisk":0.125},"details":{"risk":false,"lastSeenDays":35,"geolocationCountryCode":"US","geolocationSubdivision":"Oregon","phoneDistance":200,"addressDistance":210}},"device":{"scores":{"deviceRiskFactor":5,"deviceInsightFactor":2,"deviceTrustFactor":4},"details":{"id":{"uDeviceId":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"lastSeen":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"firstSeen":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"deviceInfo":{"browser":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"platform":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"deviceType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}}}},"warnings":["Email: Address is too long"],"alerts":["Unable to generate IP and user insights","Unable to generate device insights"]}