The authentication is based on the information provided in PDS.
POST {{baseUrl}}/initiate-authentications
Initialize authentication based on the information provided in PDS.
This API is mandatory.
Request Body
{"countryCode"=>"US", "sdkVersion"=>"2.3.0", "userProfileId"=>"df52649e-4096-456a-bca0-751ee470009f", "userConsent"=>"ACCEPT", "channelType"=>"WEB", "pds"=>"ZGZnZGVmZ2RnZGVnZXJnZXJncmRnZXJ5aGdld3J0eWJld3J5dHdleXd5d3l3cmFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh", "locale"=>"en-US", "deviceInfo"=>{"deviceAppId"=>"599F9C00-92DC-4B5C-9464-7971F01F8370", "make"=>"Samsung", "model"=>"S8"}, "isNewDeviceAppId"=>false, "sdkAuditEvents"=>[{"dateTime"=>"2020-01-28T13:16:01.714-05:00", "softwareVersion"=>"1.0.0", "userProfileId"=>"df52649e-4096-456a-bca0-751ee470009f", "sessionId"=>"123ae1aa-6744-433e-879d-7da48d631234", "transactionGroupId"=>"28eae1aa-6744-433e-879d-7da48d63e89a", "logRequestFlow"=>"CoreSDK-TP", "logEvent"=>"ID Enrollment", "logEventType"=>"User Profile Creation", "osVersion"=>"Android 5.0", "deviceMake"=>"Samsung S10", "type"=>"audit", "audit"=>{"privacyPolicy"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "userBiometricConsent"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "event"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "eventType"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "result"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "eventGeneratedSource"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "owner"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "requestDetails"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "responseDetails"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}}, {"dateTime"=>"2020-01-28T13:16:01.714-05:00", "softwareVersion"=>"1.0.0", "userProfileId"=>"df52649e-4096-456a-bca0-751ee470009f", "sessionId"=>"123ae1aa-6744-433e-879d-7da48d631234", "transactionGroupId"=>"28eae1aa-6744-433e-879d-7da48d63e89a", "logRequestFlow"=>"CoreSDK-TP", "logEvent"=>"ID Enrollment", "logEventType"=>"User Profile Creation", "osVersion"=>"Android 5.0", "deviceMake"=>"Samsung S10", "type"=>"audit", "audit"=>{"privacyPolicy"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "userBiometricConsent"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "event"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "eventType"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "result"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "eventGeneratedSource"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "owner"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "requestDetails"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "responseDetails"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}}], "tpAuditMetadata"=>{"sessionId"=>"be3ad617-04ad-43e1-a438-79425b6511b6", "transactionGroupId"=>"be3ad617-04ad-43e1-a438-79425b6511b6"}, "arid"=>"a15fa6de-b199-11eb-8529-0242ac130003"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Encrypted-Payload | boolean | An indicator that the request is encrypted or indicates that the client is able to receive an encrypted response. If not set, the payload will be treated as plaintext. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"transactionId":"1ec14310-e85c-11ea-adc1-0242ac120002","apiDataCenter":"SG","sdkToken":"eyJhbGciOiJIUzUxMiIsInppcCI6IkdaSVAifQ.H4sIAAAAAAAAAB3NQQpCMQwE0Lt0baBJ0yZ159KtN0jTBgTBjYgg3t3__3KGN8w3rc_llc4JG6KUhrmoYjolc7_OvWfPKJ2hUzNgagE2hcC5hsYIUeOdH7gStVr6AtElwNUcrBNDFppYMjqxb9hvKzb9fNzfa4_HVkORomdoggsYp8HgPqAWF43VtsOcfn_stx4UsAAAAA.tDRVowYYcpQ03Vlt7D3MiovleiyRFQMv4qzXb7Lf_6CarphRrlWXan8-jE-YesNiAiT8tk0b-i8TKHGrcgT1VQ","privacyPolicyVersion":"1.0.0","privacyPolicyUrl":"https://www.mastercard.us/en-us/vision/corp-responsibility/commitment-to-privacy/privacy.html","privacyPolicyVersionUpdated":true,"rotatedPds":"ZGZnZGVmZ2RnZGVnZXJnZXJncmRnZXJ5aGdld3J0eWJld3J5dHdleXd5d3l3cmFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh"}