POST api/CarInsurance/InsuranceList

List of insurance records

Request Information

Body Parameters

Get the insurance list parameters

InsuranceListModel
NameDescriptionTypeAdditional information
DeviceId

device id

integer

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceId": 1,
  "Token": "sample string 2",
  "Language": "sample string 3",
  "AppId": "sample string 4"
}

application/xml, text/xml

Sample:
<InsuranceListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 4</AppId>
  <Language>sample string 3</Language>
  <Token>sample string 2</Token>
  <DeviceId>1</DeviceId>
</InsuranceListModel>

Response Information

Resource Description

State value is:
0. Indicates success
100. The list is empty

InsuranceListResult
NameDescriptionTypeAdditional information
Items

Insurance information collection

Collection of CarInsuranceListInfo

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "CompanyID": 1,
      "CompanyName": "sample string 2",
      "Cost": 3.0,
      "Created": "sample string 4",
      "DeviceID": 5,
      "Id": 6,
      "RenewalTime": "sample string 7"
    },
    {
      "CompanyID": 1,
      "CompanyName": "sample string 2",
      "Cost": 3.0,
      "Created": "sample string 4",
      "DeviceID": 5,
      "Id": 6,
      "RenewalTime": "sample string 7"
    }
  ],
  "State": 1
}

application/xml, text/xml

Sample:
<InsuranceListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:CarInsuranceListInfo>
      <d2p1:CompanyID>1</d2p1:CompanyID>
      <d2p1:CompanyName>sample string 2</d2p1:CompanyName>
      <d2p1:Cost>3</d2p1:Cost>
      <d2p1:Created>sample string 4</d2p1:Created>
      <d2p1:DeviceID>5</d2p1:DeviceID>
      <d2p1:Id>6</d2p1:Id>
      <d2p1:RenewalTime>sample string 7</d2p1:RenewalTime>
    </d2p1:CarInsuranceListInfo>
    <d2p1:CarInsuranceListInfo>
      <d2p1:CompanyID>1</d2p1:CompanyID>
      <d2p1:CompanyName>sample string 2</d2p1:CompanyName>
      <d2p1:Cost>3</d2p1:Cost>
      <d2p1:Created>sample string 4</d2p1:Created>
      <d2p1:DeviceID>5</d2p1:DeviceID>
      <d2p1:Id>6</d2p1:Id>
      <d2p1:RenewalTime>sample string 7</d2p1:RenewalTime>
    </d2p1:CarInsuranceListInfo>
  </Items>
</InsuranceListResult>