postEvaluate API
This API helps to make the final decision on the transaction based on the output of the Evaluate API and any secondary authentication that has been performed by the calling application. This function also takes care of updating information in the product as needed.
aatest
This API helps to make the final decision on the transaction based on the output of the Evaluate API and any secondary authentication that has been performed by the calling application. This function also takes care of updating information in the product as needed.
To return a post evaluate risk, send a POST request to the following URI:
http://<REST Server>:<REST Server Port>/ risk-restapi/ca/advanced-auth/risk/postEvaluate
Method
POST
Headers
- Content-Type: application/ld+json (required)
- pss: (required)
This state token header is received from Evaluate and must be passed back to postEvaluate in order to tie the 2 calls together
JSON Payload
postEvaluate Request
{ "secondaryAuthenticationStatus": "boolean", "associationName": "string", "transactionId": "string", "additionalInput": [ { "name": "string", "value": "string" } ] }
Required Fields
- secondaryAuthentication
- transactionId
postEvaluate Response - Success
The following example describes the data that is returned when you use the ld+JSON HTTP header
{"@context": {"@vocab": "http://schema.org/"},"@type": "BaseResponse","@id": "http://localhost:8080/risk-restapi/ca/advanced-auth/risk/postEvaluate","hydra:operation": [{"@type": "PostEvaluateRiskAction","hydra:method": "POST","hydra:expects": {"@type": "PostEvaluateRiskRequest","hydra:supportedProperty": [{"hydra:property": "additionalInput","rangeIncludes": {"rdfs:subClassOf": "List","hydra:supportedProperty": []}},{"hydra:property": "associationName"},{"hydra:property": "secondaryAuthenticationStatus"}{ "hydra:property": "transactionId" }]}}]}
postEvaluate Response - Error
{errorCode: <string>,errorSubcode: <string>,errorMessage: <string>}
Where:
- Error Responses are returned only in cases where the HTTP status response code is not 200
- The current Java APIs: pass back the errorCode and sometimes pass back the errorSubcode
Response Codes and Error Messages
HTTP Response Codes
Code | Reason | Notes |
200 | Success | |
400 | Invalid Request | Any Java SDK error |
Error Messages
See API Error Messages for a list.