REST Example: Collecting Device Data Using a Stored Payment Credential (TMS Token)

Endpoint

Production:
POST
https://api.cybersource.com
/risk/v1/authentication-setups
Test:
POST
https://apitest.cybersource.com
/risk/v1/authentication-setups
Request
{ "paymentInformation": { "card": { "expirationMonth": "05", "expirationYear": "2029", }, "customer": { "customerId": "1108590036500854" } } }
Response to a Successful Request
{ "clientReferenceInformation": { "code": "1675295420285", }, "consumerAuthenticationInformation": { "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJhNmVlN2NlNi1mMjQ5LTRjOTktYj Q1NC0yYTA2ZmFmMWUzM2EiLCJpYXQiOjE3MTU5NDMwNTEsImlzcyI6IjVkZDgzYmYwMGU0MjNkMTQ5OGRjYmFjYSIs ImV4cCI6MTcxNTk0NjY1MSwiT3JnVW5pdElkIjoiNjY0MWRiMGZmOTRmNzI3ZjU0Y2RlOTQ2IiwiUmVmZXJlbmNlSW QiOiJiODk4OTE2NS00NjNmLTRjNzQtYmYxNy05NjM1YjQzYmNlZjAifQ.mbDLnid0_pLuami7wEo3gB-uZTWRByQ5L -cj6-AlQ9k", "deviceDataCollectionUrl": "https://centinelapistag.cardinalcommerce.com/V1/Cruise/Collect", "referenceId": "b8989165-463f-4c74-bf17-9635b43bcef0", "token": "AxizbwSThB0OsMK2B/CiAG8BT34OSB84AgVQyaSZejF9z2oA8AAA2gbZ" }, "id": "7159430505826404004002", "status": "COMPLETED", "submitTimeUtc": "2024-05-17T10:50:51Z" }