POST api/v1/OffstreetSessions/CreateSession
Request Information
URI Parameters
None.
Body Parameters
CreateOffstreetSessionRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Session | OffstreetSessionDTO |
None. |
Request Formats
application/json, text/json
Sample:
{
"Session": {
"Id": 1,
"CityId": 2,
"CountryId": 3,
"UserId": "sample string 4",
"ParkingId": 5,
"CarId": 1,
"PhoneId": 1,
"CarPermitId": 1,
"StartDate": "2025-12-06T07:16:42.6982793+03:00",
"PayDate": "2025-12-06T07:16:42.6982793+03:00",
"StopDate": "2025-12-06T07:16:42.6982793+03:00",
"Price": 1.0,
"Currency": "sample string 7",
"Paid": 1.0,
"OrderIn": "sample string 8",
"OrderOut": "sample string 9",
"PaymentChannelInId": 10,
"PaymentChannelOutId": 1,
"InternalSessions": [
{
"Id": 1,
"ParentOffstreetInternalSessionId": 1,
"ParkingId": 2,
"StartDate": "2025-12-06T07:16:42.7138815+03:00",
"DeviceIn": 4,
"OrderIn": "sample string 5",
"StopDate": "2025-12-06T07:16:42.7138815+03:00",
"DeviceOut": 1,
"OrderOut": "sample string 6",
"Price": 1.0,
"Currency": "sample string 7",
"Paid": 1.0,
"PaymentChannelInId": 8,
"PaymentChannelOutId": 1
},
{
"Id": 1,
"ParentOffstreetInternalSessionId": 1,
"ParkingId": 2,
"StartDate": "2025-12-06T07:16:42.7138815+03:00",
"DeviceIn": 4,
"OrderIn": "sample string 5",
"StopDate": "2025-12-06T07:16:42.7138815+03:00",
"DeviceOut": 1,
"OrderOut": "sample string 6",
"Price": 1.0,
"Currency": "sample string 7",
"Paid": 1.0,
"PaymentChannelInId": 8,
"PaymentChannelOutId": 1
}
]
}
}
application/xml, text/xml
Sample:
<CreateOffstreetSessionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sessions.Contracts">
<Session>
<CarId>1</CarId>
<CarPermitId>1</CarPermitId>
<CityId>2</CityId>
<CountryId>3</CountryId>
<Currency>sample string 7</Currency>
<Id>1</Id>
<InternalSessions>
<OffstreetInternalSessionDTO>
<Currency>sample string 7</Currency>
<DeviceIn>4</DeviceIn>
<DeviceOut>1</DeviceOut>
<Id>1</Id>
<OrderIn>sample string 5</OrderIn>
<OrderOut>sample string 6</OrderOut>
<Paid>1</Paid>
<ParentOffstreetInternalSessionId>1</ParentOffstreetInternalSessionId>
<ParkingId>2</ParkingId>
<PaymentChannelInId>8</PaymentChannelInId>
<PaymentChannelOutId>1</PaymentChannelOutId>
<Price>1</Price>
<StartDate>2025-12-06T07:16:42.7138815+03:00</StartDate>
<StopDate>2025-12-06T07:16:42.7138815+03:00</StopDate>
</OffstreetInternalSessionDTO>
<OffstreetInternalSessionDTO>
<Currency>sample string 7</Currency>
<DeviceIn>4</DeviceIn>
<DeviceOut>1</DeviceOut>
<Id>1</Id>
<OrderIn>sample string 5</OrderIn>
<OrderOut>sample string 6</OrderOut>
<Paid>1</Paid>
<ParentOffstreetInternalSessionId>1</ParentOffstreetInternalSessionId>
<ParkingId>2</ParkingId>
<PaymentChannelInId>8</PaymentChannelInId>
<PaymentChannelOutId>1</PaymentChannelOutId>
<Price>1</Price>
<StartDate>2025-12-06T07:16:42.7138815+03:00</StartDate>
<StopDate>2025-12-06T07:16:42.7138815+03:00</StopDate>
</OffstreetInternalSessionDTO>
</InternalSessions>
<OrderIn>sample string 8</OrderIn>
<OrderOut>sample string 9</OrderOut>
<Paid>1</Paid>
<ParkingId>5</ParkingId>
<PayDate>2025-12-06T07:16:42.6982793+03:00</PayDate>
<PaymentChannelInId>10</PaymentChannelInId>
<PaymentChannelOutId>1</PaymentChannelOutId>
<PhoneId>1</PhoneId>
<Price>1</Price>
<StartDate>2025-12-06T07:16:42.6982793+03:00</StartDate>
<StopDate>2025-12-06T07:16:42.6982793+03:00</StopDate>
<UserId>sample string 4</UserId>
</Session>
</CreateOffstreetSessionRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.