Get encrypted sensitive data by card
Variable | Name | Type | Format | Usage | Description |
---|---|---|---|---|---|
card_code | card_code | string | Card code | ||
encrypted_key | encrypted_key | string | Encrypted session key generated by the client. Will be used to encrypt the response sent back | ||
public_key_fingerprint | public key fingerprint | string | Fingerprint of key which was used for session key encryption. |
{ "card_code": "CARD00000H8", "encrypted_key": "c0d10a61df16962bb9f434660b67a0544a3c56cf7ad321d2964a03915cff6faaf0721169fc73f75698ed7679e10ea0875c18997131f517d6b36b7cc2ee360343332f621a4ecdfd90da62e5be1e56cab32655aa1803fc40f22ad585b3924ef1508a4057ec0b86a3ff946c4d87a9c424a22869bba212381a1a691952d891ab5425817e45a60fc4b107928badbc465913216927a376d6fc442c47b253fab9b58902df30c437ebb4007e45ecc79310c4e67a8bbf28b8daa97f8682aadbea1ffadd40e94f9765c549212844bc648385640ead87a6c60d628ebd633ebcf2037581af0d9972b4986b571012bcf3866302d94a162359c95ac7bf6d5a348911979f154a0b2ddb4fb8d392626d63693b7b619a3e8bc7f14d2fbffd991b1ca0a679fd9e185e86f80d376f7d77af37fea45cfabca9c66617ef85c2927d732b56b77480e7ec7ff3c1b23ef49b77cc9955db3da910fc26363cd93d61ddaf1d8266d41b060a0772c4f04783a1f7644ee4df8d19619191110e8a557ed43587cfb0d518e7c5bdb3a1db03807ed4f6a212327491aa3454ef630e00988f31bc817180b7b732db08f7b4277c58447b97ec071a0e956be7b0e6858b6778f228a55b9fe733beabc5493598a3a8de0e78abbfda275a378e9cceaf4e4d8b7ed206ab06581e80f3135fdd2098d1cd020c1dbc736b88346f464ea5e67c2a6f4a466f2aff1bc355201ee1bc5b47", "public_key_fingerprint": "6E1D49384F41DC49E722575424FB706DB7C5EF48E18A48D426CD8DD68BDAD3D0" }
200 - Response with error when status is ERROR
Variable | Name | Type | Format | Description |
---|---|---|---|---|
status | status | string | Request execution status | |
error_description | Error Description | string | Description of error | |
error | Error Code | string | Error code | |
data_type | data_type | string | Type of data | |
total_records | total_records | string | Total count of records | |
data | data | object | Empty object |
{ "status": "error", "error_description": "[ERROR-MEAWALLET-GET-ENCRYPTED-PAN : Error in Rest getPan] [ERROR-MEAWALLET-RESPONSE : Network code 400 (Bad Request): {\"error\":{\"code\":\"VALIDATION_FAILED\",\"description\":\"Validation failed\",\"fieldErrors\":\"{\"field\":\"encryptionKey\",\"message\":\"length must be between 0 and 1024\"}\"}}]", "error": {}, "data_type": "", "total_records": -2, "data": {} }
200 - Response successfully when status is OK
Variable | Name | Type | Format | Description |
---|---|---|---|---|
status | status | string | Request execution status | |
error_description | Error Description | string | Description of error | |
error | Error Code | string | Error code | |
data_type | data_type | string | Type of data | |
total_records | total_records | string | Total count of records | |
data | data | object | data of Response |
Variable | Name | Type | Format | Description |
---|---|---|---|---|
encrypted_data | Encrypted data | string | Encrypted session key generated by the client. Will be used to encrypt the response sent back. | |
iv | Iv | string | The initialization vector used when encrypting data using the one-time use AES key. Must be exactly 16 bytes (32 character hex string) to match the block size. If not present, an IV of zero is assumed |
{ "status": "ok", "error_description": "", "error": {}, "data_type": "system.api.card.cardEncryptedDataModel", "total_records": 1, "data": { "encrypted_data": "1A8A0122CEFA137A5F651D692E856210547D7E8F2267F571E412512C28DB56E76E4A8FD739BB5ECEFE373A1A9CBA4B7F9C6622A8D0A0069A3E5D97EBF6243461FEB6DA85A95A8E0DFD84588C69FD3FBC24AEFB655DA079B51FB3EFEB7200C28A6F573AA73223CF1583C0BCAF3048AB3A3CC926E36EA909D8E8D77EC7B30DECDF537BBB9FB6653CDB1BADF2437765B07A", "iv": "F88C59AA664BD514164893064777683C" } }