{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"optional","examples":{"codes":[]},"method":"post","results":{"codes":[{"language":"text","code":""}]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"Decrypt Parameters","type":"endpoint","slug":"decrypt-parameters","excerpt":"","body":"##Definition\nhttps<span>://sandbox.bluesnap.com/services/2/tools/param-decryption</span>\n\n<hr>\n\n##Documentation\nThe Encrypt Parameters request enables you to send in an encrypted string and decrypt it into plain text.\n\n###Request Content\n`param-decryption` *container* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required**</span>, contains the following properties (see [param-decryption](doc:param-decryption)):\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`encrypted-token` *string* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required**</span>\n\n###Response Details\nIf successful, the response HTTP status code is 200 OK.\nThe decrypted string is returned within the `decrypted-token` property.\n\n<hr>\n\n##Examples\n\n###Request Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/tools/param-decryption \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<param-decryption xmlns=\\\"http://ws.plimus.com\\\">\\n  <encrypted-token>XC9VdW0NVMnb%2FZdF1xccFwMulRrHqC2gurtDIrxRhHUFUqZAXA6Flwv3iR84oSVf</encrypted-token>\\n</param-decryption>'\",\n      \"language\": \"curl\",\n      \"name\": \"Decrypt Parameters Request\"\n    }\n  ]\n}\n[/block]\n###Response Example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"HTTP/ 1.1 200 OK\\n\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<param-decryption xmlns=\\\"http://ws.plimus.com\\\">\\n  <decrypted-token>sku2125148=1&currency=USD&language=ENGLISH</decrypted-token>\\n</param-decryption>\",\n      \"language\": \"xml\",\n      \"name\": \"Decrypt Parameters Reponse: 200 OK\"\n    }\n  ]\n}\n[/block]\n<a class=\"btn btn-primary\" href=\"#\" role=\"button\">Back to Top</a>","updates":[],"order":1,"isReference":true,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5f4d276c4ff932005f3e3b52","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Encrypt/Decrypt Parameters","slug":"encrypt-parameters","order":7,"from_sync":false,"reference":true,"_id":"5f4d276b4ff932005f3e3b3b","version":"5f4d276c4ff932005f3e3b86","project":"57336fd5a6a9c40e00e13a0b","createdAt":"2016-05-17T12:18:45.712Z","__v":0},"parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","version":{"version":"8976-Tools","version_clean":"8976.0.0-Tools","codename":"3.35 Release","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5f4d276b4ff932005f3e3b33","5f4d276b4ff932005f3e3b34","5f4d276b4ff932005f3e3b35","5f4d276b4ff932005f3e3b36","5f4d276b4ff932005f3e3b37","5f4d276b4ff932005f3e3b38","5f4d276b4ff932005f3e3b39","5f4d276b4ff932005f3e3b3a","5f4d276b4ff932005f3e3b3b","5f4d276b4ff932005f3e3b3c","5f4d276b4ff932005f3e3b3d","5f4d276b4ff932005f3e3b3e","5b34c737e0dca2000311de6a","5f4d276b4ff932005f3e3b3f","5f4d276b4ff932005f3e3b40","5f4d276b4ff932005f3e3b41","5f4d276b4ff932005f3e3b42","5f4d2af1ca14ec003918818c","5f4e66c5c9098e01d05608cf"],"_id":"5f4d276c4ff932005f3e3b86","project":"57336fd5a6a9c40e00e13a0b","__v":2,"forked_from":"5f076ef5f118570458067d0f","createdAt":"2018-04-23T15:17:35.680Z","releaseDate":"2018-04-23T15:17:35.680Z"},"createdAt":"2016-06-22T18:03:11.175Z","githubsync":"","__v":0}

postDecrypt Parameters


Definition

https://sandbox.bluesnap.com/services/2/tools/param-decryption


Documentation

The Encrypt Parameters request enables you to send in an encrypted string and decrypt it into plain text.

Request Content

param-decryption container    required, contains the following properties (see param-decryption):
      encrypted-token string    required

Response Details

If successful, the response HTTP status code is 200 OK.
The decrypted string is returned within the decrypted-token property.


Examples

Request Examples

curl -v -X POST https://sandbox.bluesnap.com/services/2/tools/param-decryption \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<param-decryption xmlns="http://ws.plimus.com">
  <encrypted-token>XC9VdW0NVMnb%2FZdF1xccFwMulRrHqC2gurtDIrxRhHUFUqZAXA6Flwv3iR84oSVf</encrypted-token>
</param-decryption>'

Response Example

HTTP/ 1.1 200 OK

<?xml version="1.0" encoding="UTF-8"?>
<param-decryption xmlns="http://ws.plimus.com">
  <decrypted-token>sku2125148=1&currency=USD&language=ENGLISH</decrypted-token>
</param-decryption>