Validate Phone Number
Internet Top-Ups
Validate Phone Number
Validate phone numbers before processing internet top-up
GET
Validate Phone Number
Documentation Index
Fetch the complete documentation index at: https://docs.oneclickdz.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Validates phone numbers for ADSL or 4G services before submission. Helps prevent errors and reduces refund issues.Query Parameters
Service type:
ADSL or 4GPhone number to validate - ADSL:
0[0-9]{8} (e.g., 036362608) - 4G:
213[0-9]{9} (e.g., 213472731602)Response
Valid ADSL Number
Valid 4G Number
Invalid Number
Examples
Phone Number Formats
- ADSL
- 4G
Format:
0[0-9]{8} Valid Examples: - ✅ 036362608 - ✅
031417237 - ✅ 021123456 Invalid Examples: - ❌ 36362608 (missing
leading 0) - ❌ 0363626081 (too long) - ❌ 213636362608 (wrong format)Integration Example
Why Validate?
Reduce Errors
Catch invalid numbers before submission
Better UX
Show immediate feedback to users
Fewer Refunds
Minimize failed transactions and refunds
Verify Format
Ensure number matches service type
Best Practices
Client-Side Validation
Client-Side Validation
Validate format client-side first, then confirm with API:
Show Helpful Messages
Show Helpful Messages
Display clear messages when validation fails: - “Please enter a valid ADSL
number (e.g., 036362608)” - “4G numbers should start with 213 (e.g.,
213665983439)” - “Number format: 9 digits starting with 0”
Cache Validation Results
Cache Validation Results
Cache successful validations for a short period:
Related Endpoints
List Products
Get available cards
Send Top-Up
Purchase internet card

