Card Token Maintenance

Store Card Maintenance API allow merchant to manage card token. it allow add, update, inquiry and delete card token.

 

👍

HTTPS POST / Server-to-Server

Encryption of payment request and response is use JWE

  • JWE algorithm = RSA-OAEP + A256GCM
  • Signature is use JWS PS256

Required to know how to prepare request and process response using JWT with exchange key.

https://demo2.2c2p.com/2C2PFrontend/PaymentAction/2.0/action
https://t.2c2p.com/PaymentAction/2.0/action

 

  

Add Request


Below are the guidelines that how to prepare an add card request and send to 2c2p.

📘

Provided Sample Code

Prepare Request Data, Generate JWT Token with Key & Send API
Refer sample code here.

  1. Prepare payload data. Below sample request data show the request structure. Refer Add Card Request Parameter for API Specification.
<MaintenanceRequest>
  <version>2.3</version>
  <timeStamp>050321102154</timeStamp>
  <merchantID>JT01</merchantID>
  <storeCardUniqueID></storeCardUniqueID>
  <pan>4111111111111111</pan>
  <panCurrency>702</panCurrency>
  <panBank>OCBC</panBank>
  <panCountry>SG</panCountry>
  <cardholderName>Terrance</cardholderName>
  <cardholderEmail>[email protected]</cardholderEmail>
  <panExpiry>1230</panExpiry>
  <action>A</action>
</MaintenanceRequest>
  1. Generate encrypted request data. Refer to Generate JWT Request with Keys
eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCJ9.ZXlKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V5TlRaSFEwMGlmUS5yUWVlVGNOdUp3dmVNd0duS1VHVDZoRTNtV2RCWFFUMndacC0wSE8zZVU5UDBNWS16UlljX0YtU3VrakNmV25YUTQ2bS05cnh0M1ZmNDFpdkRuX0FQVFAtcW0yS2FJTFhnR19Kb1FzenBpTGlQTGItYjVQTWVmWXNjaHMwSndmOVVLWVN5SUNsTHAzcjNyMHBtQTk2VFlZS3VnMU1PaUh3VjhyQnhhdzNZQU5nU2tNZ2o2S09KSFZSSlRwSTdJbVlkNXhVU2lNXzNnTjVXUG5ka0N5WEh1Q29peXcySDJvQUd6Q2c4aGhXYU9HeTV2MVlOc1BYLWhCTG9qcDVmY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kBmOyTo1RWBTJmz_aC2i3fa4Gq0msQeOpcEPmBAYXp7Czl0DXDsdtSphlx2Swr0dD1lQx1YJqzOySN2lTHmZLIa5YcT4umi0Ipo-z03GE_2gFZoAma3Bla84NvBRxD-5vc-OUZgUUjvhgqIB7h1kD6X6xTCJRFHFLKd5TRHVntdCyrblLsVCsLkO3vlkN987cMMMF3Cl_cHqC4rS7R__ytdeLtt4H4pVJTk6V5K_fUl3QTVKjG-UXwvyZMwS8paSqNEBdStwUO1MD2g4AhXO2SHIqeyWN0amUu1R8wtNeQ
  1. Send the encrypted request to add card API. Below show encrypted request data
curl --location --request POST 'https://t.2c2p.com/PaymentAction/2.0/action' \
--header 'Cookie: ASP.NET_SessionId=5gdzofndf0g3ldx3pgxymef3' \
--data-raw 'eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCJ9.ZXlKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V5TlRaSFEwMGlmUS5GbjdNOWUwa1M1MHE3ckRLdzRZMDEzamhBdTc3VkFvZ3ZlLVJ4X2JrVkhEemNJbjhQVVBZX0lFRXFCbWVVYUMzYTF2b01BYUphbTh1enRvc0RRaE16RUxJOVpUcG54T1VoaEc3VTYzdFNZUVNPV2ZObVJjLVlRMGd1X2xPZmhhNE9JTl9hTUFwd0FUcFVfVm9HOTdtcDAybzJoN01oWVdUYnJCZy1PdVJ0MHlWZDFCVzhPX3NrYVM2MU5ISlRxSzlZUDlnX3JRQUt0ZnhfUDF4VXY3Z242UjJuWnlDOF9kd010RG9HLUZ2LXBEenZQcjNmTmRJZEsweHdibEh3Y0NUM010TWFTNjc0dFFUTFMxUW1aRzJiN1BFWk1IRnZ3UjBNYWVMeFFGdUJDbVM5SVJ3eXlJd0dfZ1A1R3ZjM2k4Rlhlbm9CMUFOMXJpSUxwQk51MjRHTmcuRDU1Y1RQM0ljZDhrNHI3Yy53aTdOTUVyeXpUOGZlODRGU3R5aTdCLWRlMjlVeURCdnBfaE9aaFl6WlltTTdsZVZJcGtRMnkxN19DVGtiSXAxS3puOGg0b1I2amV3TkJOMThIN0FkQUx3SUJoRi1UOUEtOTBkbWRkeDBMUXMtdHFHM3NMX2JETVZZSWhZU2QxMm94QkJEX3czMHJGWlR1em83SmN2ZTJ0VjVBNEpOb3U0Z3JWZ2hldTNEZU1LbGxzOWZwc0J4S2w3UWZfdWNPUUZLMGFZZFBIalo4am5vTlc1TmVLS0ctMmttYnA1Sk12NFRacld0NXk3b0EuT2s0anBfSFFKUGszS3l1dXlpNlhZUQ.jZgHvFjfkVfwtsFRtwvP4xuu8zj7zgSmF0dtc-KfE7y6Hg0Iv3U1HSdaNYfP7Zb_hWG3nQ9-_G1HApAPDqzocM8DEsf9rcJnWaFpebudSMTg3LwVemgnxC8MvIVsGbViFH06ZnA9GmfjnyOpOfokxTxnr_VMFCPUmsh6M0I4CBKUoP-u-sHAM-Ozje80irwUf57Bmgreb28sjG0wzoeEAGhI36IArWSPg-REqGbzAhSP8ogSQscQVkb7dh4YR-vNWXY_TA3QNWNr7bggEbBAxf45R00CU9fueGZ3h8X01pO81C982drn0eTDFKhRcFsf6jZY-5Qx7356PT1q8fDgBmrmWtwqhRdkVOxZr-WUJBWnBfydXi06qAufd0Da3nSpMb8FsP2bcijwZmhXLWGh8RtHWKltk5_kRxWr2jgtNjCZVP2KpM-9UoKGp-X-UutvS-t4-9bwv4A53LK4PfqwXwWfVKLoBddBEJhffEWy7GB2VGKSmD5EzodSnIRSgE0XE9_0xjKkTzR0PlT1ExXAaNohURBOTFLtGEPyLEvv_n2_v2FMcD7crkyvKM8q9O8cUKzkAYOS7c4FJdos8HJr9fJaqp77KVk5tgKqORMTnHL1bKkTZOnLmW6V1ZJa2BVdQuTAluKVEvQh8yuKNLz-aHhxEiGyBye1g0ecJOCCxbg'

 

Add Response


Below are the guidelines that how to process add card response from 2c2p.

📘

Provided Sample Code

Receive Response Data & Decrypt JWT Token with Key
Refer sample code here.

  1. Add Card API will return encrypted response data . Sample response show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kQTJDbEJIeHF3Uy1LS3V3MFl6eXhDWkx4X2ZZWGNPOFJMbXl0UnNOcU9WT2NueEdXNmpZNFE0RVpPeExQd0NtS19WN1hFbXg0ZHVlZjJPeWd5MkRJUlJ6S01GemhfRzlPZmJ2bmV6RUVNc2ZEY0ljY0JJaDBMaGJwQXlRY2hfX3dSUWw3NXBUbE9BRmJ3d1BPYlhUZUJYLWpHZEY5TV9NZE90MHZxQmlOU2dfSXVQU1BvNWphMTRlcDNoeEtfSHRyQXJxOXNDQ2F2czhDMENycGpQLXktbjN2Q2hQZnZpanpQYXppa3VwUkNyWldua1YzaDl4bXk3SFF0dDVzMVNDSDRRUjc4eEh0TFJGTUhXQ2VpZTlZTUgyLVpzQ0Z3c1dsLWxLeEEuMEpIeENQa2k1RzZwR094Z1lyajk2UQ.K2vY3kKr1ugIzFnHS9UHUI7nur_G54N2Us3c-z82T0IY80Tw_PDhM5ybry4_w-y0dUwHYUDl5eNay2o5XfJjI6oa3gDNc43QAkTG3t86h4vPdnU7mbI3gKgV4QheR6OWhfMij5I36qS7nRtI0CD8lpQCTAaQLlpzKLGJCQrJBWd1NZrmAsEp8IbQ8wiBk6dOdGiRlbpBMJzc11mW1awEMJlv_JAhIOS5xXu1694b1PwfFjSaU5Eunu9DBSVMnGbdYwaqUPop2A7HWbSJwkOTv63sywaHU3QoyFX4IGpf1yPNKhQirW2TpvwleInlRO5qmcVJ13mRtibNsxk0NkqOqw
  1. You wouldn't recognize the meaning of JWT response and it is required to decode it, refer to Process JWT Request with Keys

  2. Below are sample add card response refer to Add Card Response Parameter for API Specification.

<MaintenanceResponse>
  <version>2.3</version>
  <timeStamp>050321102154</timeStamp>
  <merchantID>JT01</merchantID>
  <respCode>00</respCode>
  <respReason></respReason>
  <storeCardUniqueID>05032110215528444994</storeCardUniqueID>
  <panBank>OCBC</panBank>
  <panCountry>SG</panCountry>
  <cardholderName>Terrance</cardholderName>
  <cardholderEmail>[email protected]</cardholderEmail>
  <panMasked>XXXXXXXXXXXX1111</panMasked>
</MaintenanceResponse>

 

Update Request


Below are the guidelines that how to prepare a update card request and send to 2c2p

📘

Provided Sample Code

Prepare Request Data, Generate JWT Token with Key & Send API
Refer sample code here.

  1. Prepare payload data. Below sample request data show the request structure. Refer Update Card Request Parameter for API Specification.
<MaintenanceRequest>
  <version>2.3</version>
  <timeStamp>050321132928</timeStamp>
  <merchantID>JT01</merchantID>
  <storeCardUniqueID>05032110215528444994</storeCardUniqueID>
  <pan>4111111111111111</pan>
  <panCurrency>702</panCurrency>
  <panBank>OCBC Bank</panBank>
  <panCountry>SG</panCountry>
  <cardholderName>Terrance</cardholderName>
  <cardholderEmail>[email protected]</cardholderEmail>
  <panExpiry>0532</panExpiry>
  <action>U</action>
</MaintenanceRequest>
  1. Generate encrypted request data. Refer to Generate JWT Request with Keys
  2. Send the encrypted request to update card API. Below show encrypted request data
eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCJ9.ZXlKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V5TlRaSFEwMGlmUS5uYU14QTJEY25HSUNVSVdLMHlaRVgtdGdwZlRkSGJsRWs5ZklCYWdOUkNaZzZLckh2M2tCMndBcXdnNWtjdDVUZnMwdnVhTkRpNWM3ajZ0MHJVTXBwb1k5aWZ4Wk5WWTloMkZYZjRNaENCeldOZHBZLXFpblBXMVJXV05rY2g1cjE5WV9uQjhiWFlhREF4SGRiY3UtZmJaZWZXOGZDT1BlNFNZS04tT2E2ZE5nTzJ2VVlCRGQ2VURLRG4yZHQ5TWNqejAzNGtjV0k1d0hfSmlJUUVvbkFCdWM5V0ZwQlBnYm9iU0U2VEg0VTZ0NHFOTmUyUmpDZjV2aHJZUnJoOEpmdWI0X1FuYXZlcDNmSm94NTBEeHhJUVVTWThxNGVyRWdfeWNzM1lEMjd2T29IY2gxamZJTFZVRFItZFE2ZmJlVWNTYU9kaWNMRzdCUnRobTF1blZQU3cuNlFXYVJXMTZ3bEhSckw1RS4weFV3V3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oGaz2PykWRYnYUYxPIy4DTNi1Q2o6JRwrcbCL9EXbGqcUG1GlW288jsg6rvZFlQQYT_tz2wzLPhPPxvySWPrH-WUpootX_LCYl0A3lSr4iEkXb6FeuS2Ac6BSBBJDdn5d4TEERgX9XmiTpUJXb7H4Xe2LknvqRClHrAj6DH175TzoZu98kWhN0LWrPHoBu0YQTc_7sSx4vFw

 

Update Response


Below are the guidelines that how to process update response from 2c2p.

📘

Provided Sample Code

Receive Response Data & Decrypt JWT Token with Key
Refer sample code here.

  1. Update Card API will return encrypted response data . Sample response show below.
eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCJ9.ZXlKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V5TlRaSFEwMGlmUS5uYU14QTJEY25HSUNVSVdLMHlaRVgtdGdwZlRkSGJsRWs5ZklCYWdOUkNaZzZLckh2M2tCMndBcXdnNWtjdDVUZnMwdnVhTkRpNWM3ajZ0MHJVTXBwb1k5aWZ4Wk5WWTloMkZYZjRNaENCeldOZHBZLXFpblBXMVJXV05rY2g1cjE5WV9uQjhiWFlhREF4SGRiY3UtZmJaZWZXOGZDT1BlNFNZS04tT2E2ZE5nTzJ2VVlCRGQ2VURLRG4yZHQ5TWNqejAzNGtjV0k1d0hfSmlJUUVvbkFCdWM5V0ZwQlBnYm9iU0U2VEg0VTZ0NHFOTmUyUmpDZjV2aHJZUnJoOEpmdWI0X1FuYXZlcDNmSm94NTBEeHhJUVVTWThxNGVyRWdfeWNzM1lEMjd2T29IY2gxamZJTFZVRFItZFE2ZmJlVWNTYU9kaWNMRzdCUnRobTF1blZQU3cuNlFXYVJXMTZ3bEhSckw1RS4weFV3V3Rrb0RteEFLU2Y1RVlEU2Vqamc4NHlmNDdfWHdmczA0RDFqRHNZcWc5bWU2X1FHczRhMzJGbFJ4cFIwT1piZVlCRUxYLVpUS3hBbjJlZTB1N01hUWY3dGFGSEtjM0c3cENKY25KR1dTUG56VGozRWs5WXBlQXh1UW9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rAj6DH175TzoZu98kWhN0LWrPHoBu0YQTc_7sSx4vFw
  1. You wouldn't recognize the meaning of JWT response and it is required to decode it, refer to Process JWT Request with Keys

  2. Below are sample delete card response refer to Update Card Response Parameter for API Specification.

<MaintenanceResponse>
  <version>2.3</version>
  <timeStamp>050321155316</timeStamp>
  <merchantID>JT01</merchantID>
  <respCode>00</respCode>
  <respReason></respReason>
  <storeCardUniqueID>05032110215528444994</storeCardUniqueID>
  <panBank></panBank>
  <panCountry></panCountry>
  <cardholderName></cardholderName>
  <cardholderEmail></cardholderEmail>
  <panMasked></panMasked>
</MaintenanceResponse>

 

Delete Request


Below are the guidelines that how to prepare an delete card request and send to 2c2p

📘

Provided Sample Code

Prepare Request Data, Generate JWT Token with Key & Send API
Refer sample code here.

  1. Prepare payload data. Below sample request data show the request structure. Refer Delete Card Request Parameter for API Specification.
<MaintenanceRequest>
  <version>2.3</version>
  <timeStamp>050321155316</timeStamp>
  <merchantID>JT01</merchantID>
  <storeCardUniqueID>05032110215528444994</storeCardUniqueID>
  <action>D</action>
</MaintenanceRequest>
  1. Generate encrypted request data. Refer to Generate JWT Request with Keys
  2. Send the encrypted request to delete card API. Below show encrypted request data
eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCJ9.ZXlKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V5TlRaSFEwMGlmUS5lOTFaSUVpM0xfZkE2dGtaRDNxYURQcE5MRHBwNHpCQTlCQ3o3eXhueGY2MVVlaXlVa3djNHVvQ20xMHpBODNSenMwQjV3NEVzMVQ5R05hLXlrYTJWdWVhV21zQm5HbGxxUVQtRnFxMlR3cWFvU1JVUm1ocm82WWV2MVo0NGpsVzNwajZZTDRiZkQ0dlNjOVV6UEc3aWNUMzBpdzlxcjZfdy1YVXBfMFkxNEpzSHNKTzlGM1E1NXROY3lPeGV4d1Q3WXYxemxBNjFJUXN3SGJTVWdRM0ZTR18tZVU4QUMzRkFzSDE2OUM2bThPNWJvb2czW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HVn3ze4DnQZYS-X-84sHZPvVqJgtMUUiQDjROkDbKtwmpAWHlD4Fw47q0q0CyZWqpzziin6QXoNqhDap0J1SyhBwBP_ZZ_UH8E1cVF0z1clhK8qURA3GkalY-qiHdGXrfoqQfAdX5N4znusVGOeyDn0aq6c9Efdm4r0ISxmWu6xwoAwUYDL_MUtdcUnGG86F4QnK_BitvUrPEUi8DCfJfH3how8LwIybOmx8GhOxWEMMRAQLbS0y0SXu4i6zxdM7DqxcwicbGnSUDBx51l65gYXdsV2-swGM0rN6Ug

 

Delete Response


Below are the guidelines that how to process delete card response from 2c2p.

📘

Provided Sample Code

Receive Response Data & Decrypt JWT Token with Key
Refer sample code here.

  1. Delete Card API will return encrypted response data . Sample response show below.
eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCJ9.ZXlKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V5TlRaSFEwMGlmUS56cjRnaVVNUEZGbmJwYl90RklqX1BGbjBoRGhvOWY5N2ZqYXFkbTZmMGMwRk5xd2k1QXdMX1ZMVDl6U0hiQmpySkF3ZmtodGI2WE5wRkliaTdneE9SbWI4cmdRRElhNlNYd2hEWXhra05lSFRVNXZ5YUJ2Y0VhNkFobTNBN1V3RU4wT1hqUmhVUjAyQV9TS09hTVhERHNVelJrQkt2c2VseUZ4dmI2OU92NzVkSVVITlVENHhlQjlsZnowTVRLcGFyd2V3VElLcFVwTnBiRHZ0ZU1HdmVRYzZGQWxqYmJNTlUtNnA5QjU5WmVVSndVM3FHSUFaYnRNX08zRlhCWkF2b0lRVmUwR3VKeU5CbmVMRnIxelVhZTVPdmoyMVZmSWNqZWo1VUc4cVZHTm9YWFdnZGtFNUlqdHVqNUFCc09OTlNYQ3l0cHIwV19QU3JFU0otSU9paVEueHN6a09rTkhQMEJHa0V2Zi5YYUlyZHVjV2FrYVAtN29FeXBMWTBxaHpaVjU5LW1YNWhHc2lRUHFiZDVNUXBRT1RBNU9XX25yTFJISWlkZWRo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  1. You wouldn't recognize the meaning of JWT response and it is required to decode it, refer to Process JWT Request with Keys

  2. Below are sample delete card response refer to Delete Card Response Parameter for API Specification.

<MaintenanceResponse>
  <version>2.3</version>
  <timeStamp>050321155316</timeStamp>
  <merchantID>JT01</merchantID>
  <respCode>00</respCode>
  <respReason></respReason>
  <storeCardUniqueID>05032110215528444994</storeCardUniqueID>
  <panBank></panBank>
  <panCountry></panCountry>
  <cardholderName></cardholderName>
  <cardholderEmail></cardholderEmail>
  <panMasked></panMasked>
</MaintenanceResponse>

 

Inquiry Request


Below are the guidelines that how to prepare an inquiry card request and send to 2c2p

📘

Provided Sample Code

Prepare Request Data, Generate JWT Token with Key & Send API
Refer sample code here.

  1. Prepare payload data. Below sample request data show the request structure. Refer Store Card Inquiry Request Parameter for API Specification.
<MaintenanceRequest>
  <version>2.3</version>
  <timeStamp>050321135505</timeStamp>
  <merchantID>JT01</merchantID>
  <storeCardUniqueID>05032110215528444994</storeCardUniqueID>
  <action>I</action>
</MaintenanceRequest>
  1. Generate encrypted request data. Refer to Generate JWT Request with Keys

  2. Send the encrypted request to inquiry card API. Below show encrypted request data

eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCJ9.ZXlKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V5TlRaSFEwMGlmUS5zT3VITzhRMGV0YmRFZ3JWYUNiWEZOU3Z2TlJEUHpDS2dReWhxY3paYzlRNEdtZkxuTmFpeE1uUmEzdGFkN2NGdFBaeUtpVHVFN3RIZTdOWUtKYlV6Y0h3blJDTW1QaWVFN05DbFRCZ2U4N21JNWdSM25NWDFsV3E5U0JHUG9WWDhkMjlubW1wVmRWcW8xYXJwTE9yUktZc29kV09HOGx3eU8xbzllTlhqUDBOOVlWWWxZcWI1ejJMa0hQTVhTeGlOUjJFNDk1a2Jhb3ZhZ0daN0JwM0gtNjAzUzB3aVRGa1kzdXRWQWlCRnF3X3RmNmlBa1l0MFZlcVBYdmRzMzBtMEEzQ3B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mkihr2H0fnwQq6urrDrkLI9C8i1bpTbDrMkx1_EmVyWWawvOBOzkwvEN0lef3f91-MYaybTTYkIk5fyyb4jvhxwCbdjG1WmWHmkNmw-ZW4UUS6jKMmj1m5OYUpQP9MQi6gMOyeEbbRKcsBiVzgyfDGMzhNIC1CPDPInT6leX2ARP9dIU1HCY1rORjwL_lz6ZjHW3i4oAoV8TMr_LFJhzDy5Cz3u60LPIESQSweY8DggrQ

 

Inquiry Response


Below are the guidelines that how to process inquiry card response from 2c2p.

📘

Provided Sample Code

Receive Response Data & Decrypt JWT Token with Key
Refer sample code here.

  1. Inquiry Card API will return encrypted response data . Sample response show below.
eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCJ9.ZXlKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V5TlRaSFEwMGlmUS5vSU1Md0pmYkwzd0RWZnZ0S09rVWlxZmk5bExZaVd5RWFqbXF0Y3FzV0ZRcUVoTmxXMlhiblljdWVZMGRYYzBVZnNfaTdheTZybzlLaXkxR054LUNYeU5Nb2FQQlQ4bFk1S0ZIaFlvQlVqTlN2RDAwdWlGd1BvSGVlVXF6WlVaUmJvdEpqTHMwa1cyRlpoUVdSWno2WGdKbWZza041NWliTWhwaWRNRHJMU2RsdUFqMVVKc0ZmWTZ4WUZBX3Q2UVFWRmphSGFfM0owYzlCdTc0RDJ3T2VxakFSUjdRcURQWG4yZFVueld5R3lGZUkydEFTWnhKMmpVSlBaZ2E4RGhZYzdvemFfekZXTXN1TEdIUWtXTk5wZlRmRXBNYXZEWGtpVUVPaG5zWTc3TFUwQTNwR3Bnb1l6aWc2eHlDZEQ2WlZfOF9WN013U1Z6eWpWQUJzZjBMT2cuUS1oRDhxdTJoNGJDXzNwbi5jbHl4OXFxNFRnMmVZaTRVWDg5UHFuOXNERHJQZ1dXSHVtLTd5dEd2NjZwVEZaUWt2M1R3d3BXOW5DSFFSVHVWV0VlRVZjbV9sQUVxbFZKeE05SzVYaFdIQm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7SPN5a5k7AlQhrgiduQMf-P7ajCqQo1jZUZiSRdgZVokMYg
  1. You wouldn't recognize the meaning of JWT response and it is required to decode it, refer to Process JWT Request with Keys

  2. Below are sample inquiry card response refer to Inquiry Card Response Parameter for API Specification.

<MaintenanceResponse>
  <version>2.3</version>
  <timeStamp>050321135505</timeStamp>
  <merchantID>JT01</merchantID>
  <respCode>00</respCode>
  <respReason></respReason>
  <storeCardUniqueID>05032110215528444994</storeCardUniqueID>
  <panBank>OCBC Bank</panBank>
  <panCountry>SG</panCountry>
  <cardholderName>Terrance</cardholderName>
  <cardholderEmail>[email protected]</cardholderEmail>
  <panMasked>XXXXXXXXXXXX1111</panMasked>
</MaintenanceResponse>