Data Retrieval

This step is the same for both implementations. You take the ID given and the tokenized values to get the plain values. You can call this whenever needed, no need to resubmit for new tokens. When you are done with the sensitive data, remove them from memory until needed again.

Example:

Detokenization

This example is in node.js, but any server side language that can call an API will work. Axios is a convenient library for making API calls.

var fnGetValues=function(strBfid,arrValues){
	axios({
	    "method": 'post',
	    "headers": {"Authorization": strAuthYourVariable,"Accept": 'application/json',"Content-Type": 'application/json'},
	    "url": 'https://secure-cert.shieldconex.com/api/tokenization/detokenize',
	    "data": JSON.stringify({"bfid":strBfid,"values":arrValues})
	  }).then(function (objResponse) {
	  	//this is where you get the real data values to use and wipe from memory ASAP
	  	console.log('got the values',objResponse.data.values);
	  });
}