POST /api/v1/clients//verify
Verifies a client’s identity based on their billing data (such as plan name, plan price, or residential address). If the data matches cleanly, the client is verified and can proceed with operations like WhatsApp bot interactions.Path Parameters
The unique WispHub service identifier of the client to verify.
Request Body
The client’s name to verify against. This is compared using partial matching (normalized).
The client’s address to verify. Common prefixes like “V/”, “VDA/”, “VEREDA”, “BARRIO”, “B/” are automatically normalized.
The name of the internet plan to verify.
The price of the internet plan to verify. Allows a tolerance of ±1.0 for matching.
At least 3 of the 4 fields (name, address, internet_plan_name, internet_plan_price) must be provided for verification to proceed.
Response
Returns aBackendResponse containing verification results.
Indicates if the request was successful
Response type (e.g., “success”, “error”)
Action identifier:
client_verified or client_verification_failedVerification result data
Descriptive message about the verification result
Example Request
Example Response
Successful verification
Failed verification
Error Responses
400 Bad Request - Insufficient fields
Less than 3 fields were provided for verification
404 Not Found
Client with the specified service_id was not found
Verification Logic
String Matching: The verification uses normalized partial string matching. For addresses, common prefixes like “V/”, “VDA/”, “VEREDA”, “BARRIO”, and “B/” are automatically stripped before comparison.
Price Tolerance: When comparing prices, a tolerance of ±1.0 is allowed to account for rounding differences.
All Fields Must Match: For verification to succeed, ALL fields provided in the request must match. If you provide 4 fields, all 4 must match. If you provide 3 fields, all 3 must match.
Use Cases
- WhatsApp Bot Authentication: Verify users interacting with your WhatsApp bot before granting access to sensitive operations
- Self-Service Portal: Allow clients to verify their identity before viewing billing information
- Customer Support: Verify caller identity before providing account details
