POST api/ParkingFine
Stores a parkingfine
Requires Authorization
Request Information
URI Parameters
None.
Body Parameters
The parkingfine to add
ParkingFine| Name | Description | Type | Additional information |
|---|---|---|---|
| Amount |
Amount |
integer |
Required Range: inclusive between 400 and 1300 |
| CountryCode |
Code for country. The service accept's new countries. |
string |
Required Max length: 3 Min length: 1 |
| Distance |
Distance |
integer |
None. |
| DutyNumber |
The service will NOT accept new dutynumbers. |
string |
Required Max length: 6 Min length: 4 |
| ImageData |
Image size should be 1000x630px (Width x Height). |
Collection of byte |
Required |
| ImageType |
The service will accept these formats: PDF ("application/pdf"), TIF ("image/tif"), TIFF ("image/tiff") and PNG ("image/png"). Tiff is preferred. |
string |
Required |
| InternalNote |
Private note |
string |
Max length: 2048 |
| IssuedTime |
Issued time Swedish local time |
date |
Required |
| Latitude |
Latitude |
decimal number |
None. |
| LicensePlateNumber |
License plate number |
string |
Required Max length: 12 |
| LicensePlateType |
Name for LicensePlatetype. The service accept's new licenseplatetypes. |
string |
Required |
| Longitude |
Longitude |
decimal number |
None. |
| MunicipalityCode |
MunicipalityCode |
string |
Required |
| Note |
Public note |
string |
Max length: 2048 |
| OcrNumber |
Casenumber |
string |
Required Max length: 18 Min length: 10 |
| OffenseCode |
Offense code The service will NOT accept new offense codes. |
string |
None. |
| OffenseShortText |
Offense short text |
string |
None. |
| ParisControls |
Paris Controls |
Collection of string |
None. |
| PayMachine |
Paymachine number. The service will NOT accept new paymachines. |
string |
Max length: 6 |
| PlacementDescription |
Placement description |
string |
Max length: 256 |
| RoadMarkingsChecked |
Roadmarkings checked |
boolean |
None. |
| SignsChecked |
Signs checked |
boolean |
None. |
| StartTime |
Start time Swedish local time |
date |
Required |
| StreetName |
Street name The service accept's new streets. |
string |
Required Max length: 50 |
| StreetNumberFrom |
Street number from |
string |
None. |
| StreetNumberTo |
Street number to |
string |
None. |
| TireValvePosition1 |
Valve postion left front. Set as a clock between 1 and 12, if valve control is not current send 0. |
integer |
None. |
| TireValvePosition2 |
Valve postion right front. Set as a clock between 1 and 12, if valve control is not current send 0. |
integer |
None. |
| TireValvePosition3 |
Valve postion left rear. Set as a clock between 1 and 12, if valve control is not current send 0. |
integer |
None. |
| TireValvePosition4 |
Valve postion right rear. Set as a clock between 1 and 12, if valve control is not current send 0. |
integer |
None. |
| VehicleManufacturer |
Name for vehiclemanufacturer. The service accept's new manufacturers. |
string |
Required |
| VehicleType |
Name for vehicletype. The service accept's new vehicletypes. |
string |
Required |
Request Formats
application/json, text/json
{
"Amount": 1,
"CountryCode": "sample string 2",
"Distance": 1,
"DutyNumber": "sample string 3",
"ImageData": "QEA=",
"ImageType": "sample string 4",
"InternalNote": "sample string 5",
"IssuedTime": "2026-12-05T04:37:20.3017532+01:00",
"Latitude": 1.1,
"LicensePlateNumber": "sample string 7",
"LicensePlateType": "sample string 8",
"Longitude": 1.1,
"MunicipalityCode": "sample string 9",
"Note": "sample string 10",
"OcrNumber": "sample string 11",
"OffenseCode": "sample string 12",
"OffenseShortText": "sample string 13",
"ParisControls": [
"sample string 1",
"sample string 2"
],
"PayMachine": "sample string 14",
"PlacementDescription": "sample string 15",
"RoadMarkingsChecked": true,
"SignsChecked": true,
"StartTime": "2026-12-05T04:37:20.3017532+01:00",
"StreetName": "sample string 19",
"StreetNumberFrom": "sample string 20",
"StreetNumberTo": "sample string 21",
"TireValvePosition1": 1,
"TireValvePosition2": 1,
"TireValvePosition3": 1,
"TireValvePosition4": 1,
"VehicleManufacturer": "sample string 22",
"VehicleType": "sample string 23"
}
application/xml, text/xml
<ParkingFine xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkingDataService.Common.DTO">
<Amount>1</Amount>
<CountryCode>sample string 2</CountryCode>
<Distance>1</Distance>
<DutyNumber>sample string 3</DutyNumber>
<ImageData>QEA=</ImageData>
<ImageType>sample string 4</ImageType>
<InternalNote>sample string 5</InternalNote>
<IssuedTime>2026-12-05T04:37:20.3017532+01:00</IssuedTime>
<Latitude>1.1</Latitude>
<LicensePlateNumber>sample string 7</LicensePlateNumber>
<LicensePlateType>sample string 8</LicensePlateType>
<Longitude>1.1</Longitude>
<MunicipalityCode>sample string 9</MunicipalityCode>
<Note>sample string 10</Note>
<OcrNumber>sample string 11</OcrNumber>
<OffenseCode>sample string 12</OffenseCode>
<OffenseShortText>sample string 13</OffenseShortText>
<ParisControls xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ParisControls>
<PayMachine>sample string 14</PayMachine>
<PlacementDescription>sample string 15</PlacementDescription>
<RoadMarkingsChecked>true</RoadMarkingsChecked>
<SignsChecked>true</SignsChecked>
<StartTime>2026-12-05T04:37:20.3017532+01:00</StartTime>
<StreetName>sample string 19</StreetName>
<StreetNumberFrom>sample string 20</StreetNumberFrom>
<StreetNumberTo>sample string 21</StreetNumberTo>
<TireValvePosition1>1</TireValvePosition1>
<TireValvePosition2>1</TireValvePosition2>
<TireValvePosition3>1</TireValvePosition3>
<TireValvePosition4>1</TireValvePosition4>
<VehicleManufacturer>sample string 22</VehicleManufacturer>
<VehicleType>sample string 23</VehicleType>
</ParkingFine>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
A IHttpActionResult
Response codes
201 Created
400 Bad Request
401 Unauthorized
409 Conflict
500 Internal Server Error
503 Service Unavailable IHttpActionResult
None.
Response Formats
application/json, text/json, application/xml, text/xml
Sample not available.