Overview
Users are the entities that own wallets and initiate transactions. Within your HOST Pay application, you have full control over user lifecycle management.User Identification
A user in HOST Pay is identified by several key attributes:- Name: The full name of the user.
- Email: A unique email address used for notifications and identification.
- Phone Number: A unique phone number (required for mobile money transactions).
- Username: A unique handle that can be used for P2P transfers.
Creating Users
To register a new user, use the Create User endpoint.Python
Automatic Validations
The system automatically validates that theemail and phone_number are unique within your application. If a duplicate is found, the API will return a 400 Bad Request error.
Managing User Accounts
Updating User Info
You can update a user’s name or metadata using the Update User endpoint. Note that core identifiers like email and phone number are typically locked to ensure transaction integrity.Account Status
Similar to wallets, users can be disabled or enabled. Disabling a user prevents them from logging in (if using HOST Pay Auth) or initiating any new actions, though their existing wallets may still be active unless individually disabled.Privacy & Security
HOST Pay handles sensitive user data with industry-standard encryption. As a developer, you should:- Never share credentials: Use your
api-keyandsecret-keyonly on the backend. - Sanitize Input: Always validate user-provided data before sending it to the HOST Pay API.
- Metadata: Use the
metadatafield to store non-sensitive application-specific data about the user (e.g., membership tier, preferences).
Related Topics
Wallets Guide
Manage user funds
Authentication
Secure your API requests