{"_id":"5bdc633c15437b0042ed9612","category":{"_id":"5bdc633c15437b0042ed95fc","version":"5bdc633c15437b0042ed963c","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-05-17T12:18:45.712Z","from_sync":false,"order":6,"slug":"encrypt-parameters","title":"Encrypt/Decrypt Parameters"},"parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","version":{"_id":"5bdc633c15437b0042ed963c","project":"57336fd5a6a9c40e00e13a0b","__v":0,"forked_from":"5bc48b4f9919d4000df5ea7b","createdAt":"2018-04-23T15:17:35.680Z","releaseDate":"2018-04-23T15:17:35.680Z","categories":["5bdc633c15437b0042ed95f4","5bdc633c15437b0042ed95f5","5bdc633c15437b0042ed95f6","5bdc633c15437b0042ed95f7","5bdc633c15437b0042ed95f8","5bdc633c15437b0042ed95f9","5bdc633c15437b0042ed95fa","5bdc633c15437b0042ed95fb","5bdc633c15437b0042ed95fc","5bdc633c15437b0042ed95fd","5bdc633c15437b0042ed95fe","5bdc633c15437b0042ed95ff","5b34c737e0dca2000311de6a","5bdc633c15437b0042ed9600"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.28.0 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* <span style=\"color:#F37500\">**required**</span>, contains the following properties (see [param-decryption](doc:param-decryption)):\n `encrypted-token` *string* <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¤cy=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>'
HTTP/ 1.1 200 OK
<param-decryption xmlns="http://ws.plimus.com">
<decrypted-token>sku2125148=1¤cy=USD&language=ENGLISH</decrypted-token>
</param-decryption>