Mobile Prefill Code Examples

Identity and Security
POST /api/v1/mobile/prefill Bearer

Ready-to-run Mobile Prefill calls. Replace YOUR_API_KEY with the key from your dashboard.

Mobile Prefill — Code Samples

cURL
PHP
Fetch
jQuery
Axios
Python
curl -X POST https://app.way2api.com/api/v1/mobile/prefill \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Ananya Sharma","mobile_number":"9876543210"}'

Expected Response — 200

{
    "status": "SUCCESS",
    "status_code": 200,
    "charged": true,
    "success": true,
    "message": "",
    "message_code": "OK",
    "order_id": "W2A1739512345abcdef01",
    "data": {
        "order_id": "W2A1739512345abcdef01",
        "result": {
            "mobile_no": "9876543210",
            "name": "Ananya",
            "pan_number": "ABCDE1234F",
            "pan_details": {
                "full_name": "ANANYA SHARMA",
                "full_name_split": [
                    "ANANYA",
                    "",
                    "SHARMA"
                ],
                "masked_aadhaar": "XXXX-XXXX-1234",
                "address": {
                    "line_1": "123 MG ROAD",
                    "line_2": "",
                    "street_name": "MG ROAD",
                    "city": "MUMBAI",
                    "state": "MAHARASHTRA",
                    "zip": "400001",
                    "country": "INDIA"
                },
                "gender": "F",
                "dob": "1990-01-15",
                "email": "[email protected]",
                "phone_number": "9876543210",
                "category": "individual",
                "aadhaar_linked": true,
                "pan_status": "VALID"
            }
        }
    }
}