Path Parameters
The unique identifier of the balance to update.
Request Body
The ID of the new identity to associate with this balance.The identity must already exist in the system before associating it with a balance.
Response
Confirmation message indicating successful update.
Examples
Validation
Before updating the identity association, Blnk validates:- Balance Exists: The specified balance must exist
- Identity Exists: The new identity must already be created
- Valid Identity ID: The identity_id cannot be empty
Use Cases
Account Transfer
Transfer a balance from one user to another:Identity Consolidation
Merge multiple identities by reassigning their balances:Business Acquisition
Transfer merchant balances to acquiring company:Account Correction
Fix incorrectly assigned balances:Organizational Restructuring
Move balances between departments or entities:Important Considerations
Fund Lineage Impact
If the balance hastrack_fund_lineage enabled:
- Shadow Balances: Fund lineage shadow balances are tied to the identity
- Lineage Preservation: Existing lineage mappings remain unchanged
- Future Lineage: New lineage tracking will use the new identity
- Migration Complexity: Consider implications before changing identity on lineage-tracked balances
Transaction History
- Preserved: All transaction history remains intact
- Audit Trail: The identity change itself should be logged externally
- Reporting: Historical reports may need to account for identity changes
Multi-Currency Balances
- Independent: Each balance-currency pair must be updated separately
- Batch Operations: Use multiple API calls to update all currencies for an identity
Permissions and Access Control
- Authorization: Ensure proper permissions before allowing identity changes
- Verification: May require additional user verification for security
- Compliance: Document identity changes for regulatory compliance
Workflow Example
Complete workflow for transferring account ownership:Error Responses
Error message describing what went wrong.
Balance Not Found (400)
Identity Not Found (400)
Missing Identity ID (400)
Invalid Balance ID (400)
Best Practices
- Verify First: Always verify both balance and identity exist before updating
- Document Changes: Maintain an audit log of identity changes in your application
- Notify Users: Inform affected users when balance ownership changes
- Batch Carefully: When updating multiple balances, implement error handling
- Test Thoroughly: Test identity changes in staging before production
- Compliance: Ensure identity changes comply with financial regulations