What are identities?
Identities represent the people or organizations that own balances in your ledger system. The Identity model in Blnk allows you to store customer information, personal details, and business data while providing built-in support for PII (Personally Identifiable Information) tokenization to meet compliance and privacy requirements. Identities help you:- Link balances to customers for easy account management
- Store customer information in a structured format
- Tokenize sensitive data to comply with privacy regulations
- Manage both individuals and organizations with flexible fields
- Maintain KYC/compliance data alongside financial records
Identity structure
The Identity model in Blnk contains the following fields:Unique identifier for the identity (auto-generated)
Type of identity (e.g., “individual”, “business”, “corporate”)
Name of the organization (for business identities)
Category or classification of the identity
Individual’s first name
Individual’s last name
Middle names or other names
Gender information
Email address
Phone number
Nationality or citizenship
Street address
Country
State or province
Postal or ZIP code
City
Date of birth
When the identity was created
Custom metadata and tokenization tracking
Example identity object
Creating an identity
Individual identity
Create an identity for an individual customer:Response
Response
Business identity
Create an identity for a business or organization:Linking identities to balances
Identities can be linked to balances to associate customer information with their accounts.Create a balance with an identity
Link an existing balance to an identity
Retrieve a balance with identity information
PII tokenization
Blnk provides built-in tokenization to protect sensitive personally identifiable information (PII). Tokenization replaces sensitive data with secure tokens, helping you comply with privacy regulations like GDPR, CCPA, and PCI DSS.How tokenization works
- Store original data: Sensitive fields are encrypted and stored securely
- Replace with tokens: Field values are replaced with secure tokens
- Track tokenized fields: Metadata tracks which fields are tokenized
- Detokenize when needed: Retrieve original values with proper authorization
Tokenizing identity fields
Tokenize specific fields of an identity:Tokenizing a single field
Detokenizing fields
Retrieve the original values of tokenized fields:Response
Response
Detokenize all fields
Omit thefields parameter to detokenize all tokenized fields:
View tokenized fields
Check which fields are currently tokenized:Response
Response
Managing identities
Retrieve an identity
List all identities
Filter identities
Update an identity
Delete an identity
Use cases
Customer onboarding
Customer onboarding
Create an identity during customer registration:
- Collect customer information
- Create identity record
- Tokenize sensitive fields (email, phone, address)
- Create customer balance linked to identity
- Store only the identity_id in your application
KYC/compliance workflows
KYC/compliance workflows
Use identities to manage compliance:
Multi-currency customer accounts
Multi-currency customer accounts
Link multiple balances (different currencies) to one identity:Now you can query all balances for a customer by their identity_id.
Privacy-compliant data handling
Privacy-compliant data handling
Tokenize PII for GDPR/CCPA compliance:
- Tokenize sensitive fields on creation
- Only detokenize when necessary (customer support, compliance checks)
- Log detokenization requests for audit trails
- Implement role-based access to detokenization endpoints
Best practices
Tokenize sensitive fields by default
Tokenize sensitive fields by default
Always tokenize PII fields that you don’t need for regular operations:
- Email addresses
- Phone numbers
- Street addresses
- Date of birth
- Government IDs
Use metadata for flexible data storage
Use metadata for flexible data storage
Store additional customer information in
meta_data:Implement access controls
Implement access controls
Restrict access to detokenization endpoints:
- Require authentication and authorization
- Log all detokenization requests
- Implement rate limiting
- Use role-based permissions (only support staff can detokenize)
Separate identity types clearly
Separate identity types clearly
Use This makes filtering and reporting easier.
identity_type and category consistently:Handle identity updates carefully
Handle identity updates carefully
When customers update their information:
- Verify the update request
- Log the change for audit purposes
- Re-tokenize if updating sensitive fields
- Update any cached data in your application
Next steps
Balances
Link identities to customer balances
Transactions
Record financial movements for customers
Privacy & Compliance
Learn more about compliance features
API Reference
Complete API documentation for identities