{"_id":"5b197473be7bb50003d5dbb8","category":{"_id":"5b197473be7bb50003d5dba4","version":"5b197473be7bb50003d5dbd6","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-05-17T12:18:45.712Z","from_sync":false,"order":5,"slug":"encrypt-parameters","title":"Encrypt/Decrypt Parameters"},"parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","version":{"_id":"5b197473be7bb50003d5dbd6","project":"57336fd5a6a9c40e00e13a0b","__v":2,"forked_from":"5addf90f94fe9d0003cd9d29","createdAt":"2018-04-23T15:17:35.680Z","releaseDate":"2018-04-23T15:17:35.680Z","categories":["5b197473be7bb50003d5db9c","5b197473be7bb50003d5db9d","5b197473be7bb50003d5db9e","5b197473be7bb50003d5db9f","5b197473be7bb50003d5dba0","5b197473be7bb50003d5dba1","5b197473be7bb50003d5dba2","5b197473be7bb50003d5dba3","5b197473be7bb50003d5dba4","5b197473be7bb50003d5dba5","5b197473be7bb50003d5dba6","5b27bded4799c70003f36389","5b34c737e0dca2000311de6a"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.26 Release","version_clean":"8976.0.0-Tools","version":"8976-Tools"},"githubsync":"","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-06-22T18:03:11.175Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"post","results":{"codes":[{"code":"","language":"text"}]},"settings":"","auth":"optional","params":[],"url":""},"isReference":true,"order":1,"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>","excerpt":"","slug":"decrypt-parameters","type":"endpoint","title":"Decrypt Parameters"}

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>