REST Example: Checking Enrollment While Using a Token

Endpoint

Production:
POST
https://api.cybersource.com
/risk/v1/authentication
Test:
POST
https://apitest.cybersource.com
/risk/v1/authentication
Request
{ "orderInformation": { "amountDetails": { "currency": "USD", "totalAmount": "10.99" }, "billTo": { "address1": "901 metro center blvd", "address2": "metro 3", "administrativeArea": "CA", "country": "US", "locality": "san francisco", "firstName": "John", "lastName": "Doe", "phoneNumber": "4158880000", "postalCode": "94404", "email": "test@email.com" } }, "paymentInformation": { "card": { "expirationMonth": "05",(Required) "expirationYear": "2029" (Required) } }, "customer": { "customerId": "1108590036500854" } }, "deviceInformation": { "httpAcceptBrowserValue": "data", "httpAcceptContent": "pa_http_user_accept_value", "httpBrowserLanguage": "en_us", "httpBrowserJavaEnabled": "false", "httpBrowserJavaScriptEnabled": "false", "httpBrowserColorDepth": "24", "httpBrowserScreenHeight": "864", "httpBrowserScreenWidth": "1536", "httpBrowserTimeDifference": "300", "userAgentBrowserValue": "123" }, "consumerAuthenticationInformation": { "deviceChannel": "Browser" } }
Response to a Successful Request
{ "consumerAuthenticationInformation": { "eciRaw": "05", "authenticationTransactionId": "1uYPvYpKtpKafAp05J10", "strongAuthentication": { "OutageExemptionIndicator": "0" }, "eci": "05", "token": "AxjzbwSThBz8GGbMi0LEAG8BT34OR7yfSBcS0CqGTSTL0Yvue1AHgAAAWRZ8", "cavv": "AJkBBkhgQQAAAE4gSEJydQAAAAA=", "paresStatus": "Y", "acsReferenceNumber": "Cardinal ACS", "xid": "AJkBBkhgQQAAAE4gSEJydQAAAAA=", "directoryServerTransactionId": "2e098b7f-a71a-4108-be81-a0b7ea640068", "veresEnrolled": "Y", "threeDSServerTransactionId": "6f3bf625-4643-4952-a654-2c73d75e2a2f", "acsOperatorID": "MerchantACS", "ecommerceIndicator": "vbv", "specificationVersion": "2.1.0", "acsTransactionId": "5333668d-a07c-49df-9e9a-3f2d8e08cefe" }, "id": "7159425271756296504004", "paymentInformation": { "card": { "bin": "400009", "type": "VISA" } }, "status": "AUTHENTICATION_SUCCESSFUL", "submitTimeUtc": "2024-05-17T10:42:07Z" }