POST api/CarInsurance/InsuranceCompany

Insurance company list

Request Information

Body Parameters

Insurance company list parameters

BaseModel
NameDescriptionTypeAdditional information
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:
{
  "Token": "sample string 1",
  "Language": "sample string 2",
  "AppId": "sample string 3"
}

application/xml, text/xml

Sample:
<BaseModel 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>
</BaseModel>

Response Information

Resource Description

State value is:
0. Indicates success
100. Said no record

InsuranceCompanyResult
NameDescriptionTypeAdditional information
Items

Group information collection

Collection of InsuranceCompanyInfo

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "CN_Name": "sample string 1",
      "CompanyID": 2,
      "EN_Name": "sample string 3"
    },
    {
      "CN_Name": "sample string 1",
      "CompanyID": 2,
      "EN_Name": "sample string 3"
    }
  ],
  "State": 1
}

application/xml, text/xml

Sample:
<InsuranceCompanyResult 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:InsuranceCompanyInfo>
      <d2p1:CN_Name>sample string 1</d2p1:CN_Name>
      <d2p1:CompanyID>2</d2p1:CompanyID>
      <d2p1:EN_Name>sample string 3</d2p1:EN_Name>
    </d2p1:InsuranceCompanyInfo>
    <d2p1:InsuranceCompanyInfo>
      <d2p1:CN_Name>sample string 1</d2p1:CN_Name>
      <d2p1:CompanyID>2</d2p1:CompanyID>
      <d2p1:EN_Name>sample string 3</d2p1:EN_Name>
    </d2p1:InsuranceCompanyInfo>
  </Items>
</InsuranceCompanyResult>