National Insurance Number (PII)
Data protection endpoint
METHOD: POST
ENDPOINT: https://api.playground.protegrity.com/v1/nin
DESCRIPTION:
Protect or unprotect a National Insurance Number (UK). The returned NIN is case-, length- and position-preserving, i.e., generated letters and numbers will adhere to their original position. Note that some NIN logic, i.e. restricted letters, is not preserved.
ATTRIBUTES:
data
(required) Input data to transform.
operation
(required) Specify if to protect or unprotect data. Accepts: [ protect | unprotect ]
.
SAMPLE REQUEST
curl --location 'https://api.playground.protegrity.com/v1/nin' \
--header 'x-api-key: <API_Key>' \
--header 'Content-Type: application/json' \
--header 'Authorization: <JWT_TOKEN>' \
--data '{
"operation": "protect",
"data": ["QQ123456A", "KT902281F"]
}'
SAMPLE RESPONSE
[
"CD196371K",
"OO918451S"
]
Last modified January 14, 2025