Basic Authentication
Our Basic Authentication method requires that you place the partnerId and partnerKey in the authentication header.
Build a Basic Authentication Header
- Concatenate your partnerId and partnerKey with a : separator.
WATERFORD:ef1ad938150fb15a1384b883a104ce70
- Base64 encode the string.
base64Encode( WATERFORD:ef1ad938150fb15a1384b883a104ce70 )
//output V0FURVJGT1JEOmVmMWFkOTM4MTUwZmIxNWExMzg0Yjg4M2ExMDRjZTcw
- Build the Basic Auth Header.
authorization: Basic V0FURVJGT1JEOmVmMWFkOTM4MTUwZmIxNWExMzg0Yjg4M2ExMDRjZTcw
Example
curl 'https://secure-cert.decryptx.com/api/partner/validate' \
-X POST \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'authorization: Basic V0FURVJGT1JEOmVmMWFkOTM4MTUwZmIxNWExMzg0Yjg4M2ExMDRjZTcw' \
-d '{
"reference" : "723f57e1-e9c8-48cb-81d9-547ad2b76435"
}'
Updated over 2 years ago