v1
latestSwagger 2.02026-07-14146.9 KBGet Payment Account Reference
Submit an encrypted PAN to obtain the PAR linked to the account.
The API performs a PAR query into the PAR Vault with the supplied PAN. When a PAR is returned from the PAR vault the API will encrypt it using the wrapped encryption method with the Mastercard Customer?s Encryption Public Key and include it in the API response.
post/par/paymentaccountreference/1/0/getPaymentAccountReference
Request body
Example request
{
"encryptedPayload": {
"encryptedData": "4ca442de53910ea8f29602a749a51da64913b5c1b167b798c18e36ddaa05a6ba6619fdd7e8cecc249d93c31217e83e8f",
"encryptedKey": "a207fc78e0dbf4d4daab90aefe7058bb846f345e1c4ac3af5536a7cf93591a05e2e0ea5b1a23835a0954e8303addaeb4fa0abb78e3586a3523343dbedea05381c012864433dbac25106fedb061c85c5a8ac9ea60be497c82ba236fe54c83744b3f0d1825222e0a320c277900b528cb0f093e724ef8c0626d53c273b7c81b70458819251e4fc7cb065072bf034796f7d1a911c2e2bfd0cf208036dda0b18a39eee66de04df8a22b26cd00e235de300f25f9c4cf7cb120212dbce5ad93ae65721c21902d3ae7d9d6904814e76cc5c6e92ea132c6cbd4ab835167601cef01f9d915a1f7b5bca117ef321118acabbdd6d02760ced68fcb2c4d6d7e7c558b0f23a07e",
"iv": "91f86d9252849db2538f4224c4816433",
"oaepHashingAlgorithm": "SHA256",
"publicKeyFingerprint": "4c4ead5927f0df8117f178eea9308daa58e27c2b"
},
"requestId": "123456"
}Response
Contains the details of the get PAR API response message.
Example response
{
"encryptedPayload": {
"encryptedData": "4545433044323232363739304532433610DE1D1461475BEB6D815F31764DDC20298BD779FBE37EE5AB3CBDA9F9825E1DDE321469537FE461E824AA55BA67BF6A",
"encryptedKey": "A1B2C3D4E5F6112233445566",
"iv": "31323334353637383930313233343536",
"oaepHashingAlgorithm": "SHA512",
"publicKeyFingerprint": "4c4ead5927f0df8117f178eea9308daa58e27c2b"
},
"responseId": "123456"
}