{"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":"60957f4cce403c0045a03205","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Encrypt/Decrypt Parameters","slug":"encrypt-parameters","order":8,"from_sync":false,"reference":true,"_id":"60957f4cce403c0045a031eb","version":"60957f4cce403c0045a03255","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.38 Release","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["60957f4cce403c0045a031e3","60957f4cce403c0045a031e4","60957f4cce403c0045a031e5","60957f4cce403c0045a031e6","60957f4cce403c0045a031e7","60957f4cce403c0045a031e8","60957f4cce403c0045a031e9","60957f4cce403c0045a031ea","60957f4cce403c0045a031eb","60957f4cce403c0045a031ec","60957f4cce403c0045a031ed","60957f4cce403c0045a031ee","5b34c737e0dca2000311de6a","60957f4cce403c0045a031ef","60957f4cce403c0045a031f0","60957f4cce403c0045a031f1","60957f4cce403c0045a031f2","60957f4cce403c0045a031f3","60957f4cce403c0045a031f4","60957f4cce403c0045a031f5"],"_id":"60957f4cce403c0045a03255","project":"57336fd5a6a9c40e00e13a0b","__v":0,"forked_from":"603fec227146110018e1daaf","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>