Skip to main content

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.
Response:
PayTags must start with @ and can contain letters, numbers, underscores, and hyphens.

Step 2: Initiate PayTag Creation

Start the PayTag creation process with the customer’s 11-digit BVN (Bank Verification Number).
Parameters:
  • bvn (required): 11-digit Bank Verification Number
  • uid (optional): Your internal user identifier for tracking
  • referrer (optional): PayTag of the referring user
  • otp query param: Set to true to enable OTP flow
Response:
Store the session ID! You’ll need it for subsequent steps in the PayTag creation flow.

Step 3: Send OTP

Send a one-time password to verify the customer’s phone number or email.
Parameters:
  • channel: sms, whatsapp, or email
  • recipient (optional): Override default from BVN data
Response:

Step 4: Validate OTP

Validate the OTP code entered by the customer.
Response:

Step 5: Complete PayTag Creation

Submit final details to create the customer account.
Required Fields:
  • tag: Desired PayTag (must be available)
  • password: Strong password for the account
  • BVN-derived data can be pre-filled but may be overridden
Response:
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

Error: "Invalid BVN format"Solution: Ensure BVN is exactly 11 digits
Error: "Customer with this BVN already exists"Solution: Guide user to login instead of creating a new account
Error: "PayTag is not available"Solution: Prompt user to choose a different PayTag
Error: "Invalid or expired OTP code"Solution: Ask user to request a new OTP or re-enter the code

Best 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