POST api/inquiry/InquireVehicle

Request Information

URI Parameters

None.

Body Parameters

InquireVehicleBindingModel
NameDescriptionTypeAdditional information
PlatePart1

string

Required

Matching regular expression pattern: ^\d{2}$

PlatePart2

string

Required

Matching regular expression pattern: ^[آابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]$

PlatePart3

string

Required

Matching regular expression pattern: ^\d{3}$

PlateSerial

string

Required

Matching regular expression pattern: ^\d{2}$

Request Formats

application/json, text/json

Sample:
{
  "PlatePart1": "sample string 1",
  "PlatePart2": "sample string 2",
  "PlatePart3": "sample string 3",
  "PlateSerial": "sample string 4"
}

application/xml, text/xml

Sample:
<InquireVehicleBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Barg.WebAPI.Models">
  <PlatePart1>sample string 1</PlatePart1>
  <PlatePart2>sample string 2</PlatePart2>
  <PlatePart3>sample string 3</PlatePart3>
  <PlateSerial>sample string 4</PlateSerial>
</InquireVehicleBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

InquireVehicleViewModel
NameDescriptionTypeAdditional information
Data

VehicleData

None.

HasErrors

boolean

None.

Messages

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "InsuranceCompanyName": "sample string 1",
    "InsuranceIssueDate": "sample string 2",
    "InsuranceStartDate": "sample string 3",
    "InsuranceEndDate": "sample string 4",
    "InsurancePolicyType": "sample string 5",
    "CurrentInusranceSerialNumber": "sample string 6",
    "InsurerName": "sample string 7",
    "InsurerNationalCode": "sample string 8",
    "PlateNumber": "sample string 9",
    "VIN": "sample string 10",
    "VINBarcodeImageUrl": "sample string 11",
    "ProductionYear": "sample string 12",
    "PreviousInsuranceSerialNo": "sample string 13",
    "VehicleUsageName": "sample string 14",
    "VehicleUsageCode": "sample string 15"
  },
  "HasErrors": false,
  "Messages": []
}

application/xml, text/xml

Sample:
<InquireVehicleViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Barg.WebAPI.Models">
  <Messages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <Data>
    <CurrentInusranceSerialNumber>sample string 6</CurrentInusranceSerialNumber>
    <InsuranceCompanyName>sample string 1</InsuranceCompanyName>
    <InsuranceEndDate>sample string 4</InsuranceEndDate>
    <InsuranceIssueDate>sample string 2</InsuranceIssueDate>
    <InsurancePolicyType>sample string 5</InsurancePolicyType>
    <InsuranceStartDate>sample string 3</InsuranceStartDate>
    <InsurerName>sample string 7</InsurerName>
    <InsurerNationalCode>sample string 8</InsurerNationalCode>
    <PlateNumber>sample string 9</PlateNumber>
    <PreviousInsuranceSerialNo>sample string 13</PreviousInsuranceSerialNo>
    <ProductionYear>sample string 12</ProductionYear>
    <VIN>sample string 10</VIN>
    <VINBarcodeImageUrl>sample string 11</VINBarcodeImageUrl>
    <VehicleUsageCode>sample string 15</VehicleUsageCode>
    <VehicleUsageName>sample string 14</VehicleUsageName>
  </Data>
</InquireVehicleViewModel>