Enter phone number or search term to find results
|
API token
|
|
|
output
|
|
|
Mobile phone
|
|
|
Search Term
|
|
| Parameter | Type | Reqd | Description | Options |
|---|---|---|---|---|
| mobile | numeric | - | Mobile phone | |
| searchTerm | string | - | Search Term |
| Parameter | Type | Description |
|---|---|---|
| status | integer | Status |
| response | array | Policy document data |
| response.status | integer | Status |
| response.data | array | Customer policy set |
Json request example
{
"ajax_url": "/api/policy/getbyphone",
"username": "###",
"password": "###",
"mobile": "07945806306",
"searchTerm": "B15 1NQ"
}
Json response example
{
"status": "1",
"response": {
"status": "1",
"data": {
"10000001": {
"Policy_Number": "OCC010581A /1",
"Address_Line1": "Flat 7, Chiltern Court, Bowes Road",
"Address_Line2": "London",
"Postcode": "N11 1AF",
"Policy_holder_Title": "Mr.",
"Policy_holder_First_Name": "John",
"Policy_holder_Last_Name": "Doe",
"Policy_holder2_Title": "",
"Policy_holder2_First_Name": "Rafael",
"Policy_holder2_Last_Name": "Ferreira",
"Mobile_number": "07846981984",
"routeToMarket": "OneClickCover"
}
}
},
"apirequest_oid": 10008332
}