InsuranceCentral Mobile API Host

<back to all web services

GetPolicy

To override the Content-type in your clients HTTP Accept Header, append ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/reply/GetPolicy HTTP/1.1 
Host: 109.110.238.5 
Content-Type: application/json
Content-Length: length

{"policy_id":"String","app_type":"String","app_version":"String","session_id":"String","offset":"String","app_lang":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"policy":{"policy_id":"String","policy_number":"String","policy_type":"String","date_effective":"String","date_expiry":"String","amount_gross":0,"endorsment_type":"String","account_code":"String","client_code":"String","policy_motor":{"car_registration":"String","estimated_value":0,"insurance_type":"String","horsepower":"String","car_year":0,"passengers":0,"car_make":"String","car_model":"String","car_type":"String","car_color":"String","policy_type":"String","limitations":"String","drivers":[{"id":"String","name":"String","occupation":"String","date_effective":"String","date_expired":"String","dob":"String","license_date":"String","id_type":"String","id_code":"String"}]}},"response_code":0,"response_message":"String"}