POST api/CarInsurance/InsuranceSetting

Vehicle insurance Settings

Request Information

Body Parameters

Get the car insurance Settings parameters

CarInsuranceModel
NameDescriptionTypeAdditional information
Item

insurance information

CarInsuranceInfo

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:
{
  "Item": {
    "CompanyID": 1,
    "DeviceID": 2,
    "ExpireDate": "sample string 3",
    "Id": 4,
    "Updated": "sample string 5"
  },
  "Token": "sample string 1",
  "Language": "sample string 2",
  "AppId": "sample string 3"
}

application/xml, text/xml

Sample:
<CarInsuranceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 3</AppId>
  <Language>sample string 2</Language>
  <Token>sample string 1</Token>
  <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:CompanyID>1</d2p1:CompanyID>
    <d2p1:DeviceID>2</d2p1:DeviceID>
    <d2p1:ExpireDate>sample string 3</d2p1:ExpireDate>
    <d2p1:Id>4</d2p1:Id>
    <d2p1:Updated>sample string 5</d2p1:Updated>
  </Item>
</CarInsuranceModel>

Response Information

Resource Description

State value is:
0. Indicates success
4000. Says failure

CarInsuranceResult
NameDescriptionTypeAdditional information
Message

string

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "State": 2
}

application/xml, text/xml

Sample:
<CarInsuranceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>2</State>
  <Message>sample string 1</Message>
</CarInsuranceResult>