Skip to content

Share Code

The NIMC mobile app lets the cardholder generate a temporary 6-character share code. Pass the code to this endpoint to retrieve their record without ever handling the raw NIN.

POST/verify-nin/share-code

FieldTypeRequiredNotes
share_codestring6 characters, alphanumeric, uppercase (the API uppercases it for you)
reasonstringA key from /nimc-reasons
Terminal window
curl -X POST https://api.randaverify.com/verify-nin/share-code \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"share_code": "AB12CD",
"reason": "corporate"
}'

Same shape as the standard NIN response. The full record is returned, including the unmasked NIN (the share code is itself a consented disclosure by the holder).

StatusWhenRecover by
400Share code rejected by NIMC (expired, malformed, already-used)Ask the holder to regenerate a new code in the NIMC app.
402Org wallet emptyTop up.
  • Share codes are single-use and time-limited by NIMC (typically valid for a short window after generation). Use them quickly.
  • The returned nin is the holder’s real NIN — store it according to your data-protection policy.