POST api/Kapsch/RegisterObu?centerNumber={centerNumber}&contractNumber={contractNumber}

регистрация БУ в системе Берлио (регистрация в Kapsch, происходит согласно регламента при передаче от Берлио файла CDX)

Request Information

URI Parameters

НаименованиеОписаниеТипДополнительная информация
centerNumber

номер центра(компании) в системе Берлио

integer

Required

contractNumber

номер договора в системе Берлио

integer

Required

Body Parameters

информация о регистрируемом БУ

KapschObuRegistrationModel
НаименованиеОписаниеТипДополнительная информация
AutoCategory

категория автомобиля

string

Required

Matching regular expression pattern: [A-Z]{1}$

AxlesClass

количество осей ТС

integer

Required

Range: inclusive between 1 and 9

CountryCode

iso код страны регистрации ТС

string

Required

Matching regular expression pattern: [A-Z]{2}$

EmissionClass

экологический класс

integer

Required

Range: inclusive between 1 and 9

LicencePlate

номерной знак ТС

string

Required

String length: inclusive between 0 and 20

ManufacturingYear

год выпуска

integer

Required

Matching regular expression pattern: [0-9]{4}$

VehicleOwnerApartment

офис/кв

string

String length: inclusive between 0 and 10

VehicleOwnerCity

город

string

Required

String length: inclusive between 0 and 60

VehicleOwnerCountryCode

iso код страны владельца ТС

string

Required

String length: inclusive between 0 and 2

VehicleOwnerFirstName

имя владельца ТС

string

Required

String length: inclusive between 0 and 60

VehicleOwnerFloor

этаж

string

String length: inclusive between 0 and 10

VehicleOwnerLastName

фамилия/организация владельца ТС

string

Required

String length: inclusive between 0 and 60

VehicleOwnerRegionName

область/район

string

String length: inclusive between 0 and 60

VehicleOwnerStreet

улица

string

Required

String length: inclusive between 0 and 60

VehicleOwnerStreetNumber

дом

string

Required

String length: inclusive between 0 and 20

VehicleOwnerZipCode

индекс

string

Required

String length: inclusive between 0 and 20

Request Formats

application/json, text/json

Sample:
{
  "AutoCategory": "sample string 1",
  "AxlesClass": 2,
  "CountryCode": "sample string 3",
  "EmissionClass": 4,
  "LicencePlate": "sample string 5",
  "ManufacturingYear": 6,
  "VehicleOwnerApartment": "sample string 7",
  "VehicleOwnerCity": "sample string 8",
  "VehicleOwnerCountryCode": "sample string 9",
  "VehicleOwnerFirstName": "sample string 10",
  "VehicleOwnerFloor": "sample string 11",
  "VehicleOwnerLastName": "sample string 12",
  "VehicleOwnerRegionName": "sample string 13",
  "VehicleOwnerStreet": "sample string 14",
  "VehicleOwnerStreetNumber": "sample string 15",
  "VehicleOwnerZipCode": "sample string 16"
}

application/xml, text/xml

Sample:
<KapschObuRegistrationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiBerlioInfo.Dto.DataTypes.Kapsch">
  <AutoCategory>sample string 1</AutoCategory>
  <AxlesClass>2</AxlesClass>
  <CountryCode>sample string 3</CountryCode>
  <EmissionClass>4</EmissionClass>
  <LicencePlate>sample string 5</LicencePlate>
  <ManufacturingYear>6</ManufacturingYear>
  <VehicleOwnerApartment>sample string 7</VehicleOwnerApartment>
  <VehicleOwnerCity>sample string 8</VehicleOwnerCity>
  <VehicleOwnerCountryCode>sample string 9</VehicleOwnerCountryCode>
  <VehicleOwnerFirstName>sample string 10</VehicleOwnerFirstName>
  <VehicleOwnerFloor>sample string 11</VehicleOwnerFloor>
  <VehicleOwnerLastName>sample string 12</VehicleOwnerLastName>
  <VehicleOwnerRegionName>sample string 13</VehicleOwnerRegionName>
  <VehicleOwnerStreet>sample string 14</VehicleOwnerStreet>
  <VehicleOwnerStreetNumber>sample string 15</VehicleOwnerStreetNumber>
  <VehicleOwnerZipCode>sample string 16</VehicleOwnerZipCode>
</KapschObuRegistrationModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Информация о ответе

Resource Description

ResultInfoOfInt32
НаименованиеОписаниеТипДополнительная информация
Value

integer

None.

Message

string

None.

Success

boolean

None.

Code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Value": 1,
  "Message": "sample string 2",
  "Success": true,
  "Code": 4
}

application/xml, text/xml

Sample:
<ResultInfoOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BerlioSoft.Core.Common.Results">
  <Code>4</Code>
  <Message>sample string 2</Message>
  <Success>true</Success>
  <Value>1</Value>
</ResultInfoOfint>