Overview
The PayTag creation process allows you to create PayTags for your customers on the FLEX ecosystem. Once created, your customers can transact with any other PayTag user across the entire FLEX network, regardless of which partner they come from. The process includes BVN verification, OTP validation, and PayTag account creation.PayTag Creation Flow
1
Verify PayTag Availability
Check if the desired PayTag is available
2
Initiate PayTag Creation
Start creation with customer’s BVN
3
Send and Validate OTP
Send OTP via SMS/WhatsApp/Email and validate customer input
4
Complete PayTag Creation
Submit final customer details to create the account
5
Authenticate Customer
Use the OAuth flow to get customer token
Step 1: Verify PayTag Availability
Before creating a PayTag, check if the desired PayTag is available.Step 2: Initiate PayTag Creation
Start the PayTag creation process with the customer’s 11-digit BVN (Bank Verification Number).bvn(required): 11-digit Bank Verification Numberuid(optional): Your internal user identifier for trackingreferrer(optional): PayTag of the referring userotpquery param: Set totrueto enable OTP flow
Step 3: Send OTP
Send a one-time password to verify the customer’s phone number or email.channel:sms,whatsapp, oremailrecipient(optional): Override default from BVN data
Step 4: Validate OTP
Validate the OTP code entered by the customer.Step 5: Complete PayTag Creation
Submit final details to create the customer account.tag: Desired PayTag (must be available)password: Strong password for the account- BVN-derived data can be pre-filled but may be overridden
Success! The customer account is now created. Next, use the authentication flow to log them in.
Complete PayTag Creation Example
Here’s a full implementation with UI feedback:Error Handling
400 - Invalid BVN
400 - Invalid BVN
Error:
"Invalid BVN format"Solution: Ensure BVN is exactly 11 digits400 - BVN Already Registered
400 - BVN Already Registered
Error:
"Customer with this BVN already exists"Solution: Guide user to login instead of creating a new account400 - PayTag Taken
400 - PayTag Taken
Error:
"PayTag is not available"Solution: Prompt user to choose a different PayTag400 - Invalid OTP
400 - Invalid OTP
Error:
"Invalid or expired OTP code"Solution: Ask user to request a new OTP or re-enter the codeBest Practices
Pre-fill BVN Data
Use the BVN data response to pre-fill the completion form
Clear Progress Indicators
Show users which step they’re on in the PayTag creation flow
OTP Retry Logic
Allow users to resend OTP after a cooldown period
Password Strength
Enforce strong password requirements
Next Steps
Authentication
Log in newly created customers
Integration Guide
Build complete wallet features