POST users/courierlocationhistories
Request Information
URI Parameters
None.
Body Parameters
HistoryLocationsQueryViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| company | integer |
None. |
|
| couriers | Collection of integer |
None. |
|
| from | date |
None. |
|
| to | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"company": 1,
"couriers": [
1,
2
],
"from": "2025-12-06T03:35:21.3661686+00:00",
"to": "2025-12-06T03:35:21.3661686+00:00"
}
application/xml, text/xml
Sample:
<HistoryLocationsQueryViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Clickoapp2.WEBAPI.ViewModels">
<company>1</company>
<couriers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</couriers>
<from>2025-12-06T03:35:21.3661686+00:00</from>
<to>2025-12-06T03:35:21.3661686+00:00</to>
</HistoryLocationsQueryViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of CourierLocationForCompany| Name | Description | Type | Additional information |
|---|---|---|---|
| CompanyId | integer |
None. |
|
| CompanyName | string |
None. |
|
| Couriers | Collection of CourierLocationHistoryViewModel |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"companyId": 1,
"companyName": "sample string 2",
"couriers": [
{
"courierId": 1,
"fullName": "sample string 2",
"locations": [
{
"lat": 1.1,
"lng": 2.1,
"dt": "2025-12-06T03:35:21.3661686+00:00",
"sDate": "sample string 4"
},
{
"lat": 1.1,
"lng": 2.1,
"dt": "2025-12-06T03:35:21.3661686+00:00",
"sDate": "sample string 4"
}
]
},
{
"courierId": 1,
"fullName": "sample string 2",
"locations": [
{
"lat": 1.1,
"lng": 2.1,
"dt": "2025-12-06T03:35:21.3661686+00:00",
"sDate": "sample string 4"
},
{
"lat": 1.1,
"lng": 2.1,
"dt": "2025-12-06T03:35:21.3661686+00:00",
"sDate": "sample string 4"
}
]
}
]
},
{
"companyId": 1,
"companyName": "sample string 2",
"couriers": [
{
"courierId": 1,
"fullName": "sample string 2",
"locations": [
{
"lat": 1.1,
"lng": 2.1,
"dt": "2025-12-06T03:35:21.3661686+00:00",
"sDate": "sample string 4"
},
{
"lat": 1.1,
"lng": 2.1,
"dt": "2025-12-06T03:35:21.3661686+00:00",
"sDate": "sample string 4"
}
]
},
{
"courierId": 1,
"fullName": "sample string 2",
"locations": [
{
"lat": 1.1,
"lng": 2.1,
"dt": "2025-12-06T03:35:21.3661686+00:00",
"sDate": "sample string 4"
},
{
"lat": 1.1,
"lng": 2.1,
"dt": "2025-12-06T03:35:21.3661686+00:00",
"sDate": "sample string 4"
}
]
}
]
}
]
application/xml, text/xml
Sample:
<ArrayOfCourierLocationForCompany xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Clickoapp2.Shared.ViewModels">
<CourierLocationForCompany>
<CompanyId>1</CompanyId>
<CompanyName>sample string 2</CompanyName>
<Couriers>
<CourierLocationHistoryViewModel>
<CourierId>1</CourierId>
<FullName>sample string 2</FullName>
<Locations>
<CourierLocationHistoryItemViewModel>
<Dt>2025-12-06T03:35:21.3661686+00:00</Dt>
<Lat>1.1</Lat>
<Lng>2.1</Lng>
<sDate>sample string 4</sDate>
</CourierLocationHistoryItemViewModel>
<CourierLocationHistoryItemViewModel>
<Dt>2025-12-06T03:35:21.3661686+00:00</Dt>
<Lat>1.1</Lat>
<Lng>2.1</Lng>
<sDate>sample string 4</sDate>
</CourierLocationHistoryItemViewModel>
</Locations>
</CourierLocationHistoryViewModel>
<CourierLocationHistoryViewModel>
<CourierId>1</CourierId>
<FullName>sample string 2</FullName>
<Locations>
<CourierLocationHistoryItemViewModel>
<Dt>2025-12-06T03:35:21.3661686+00:00</Dt>
<Lat>1.1</Lat>
<Lng>2.1</Lng>
<sDate>sample string 4</sDate>
</CourierLocationHistoryItemViewModel>
<CourierLocationHistoryItemViewModel>
<Dt>2025-12-06T03:35:21.3661686+00:00</Dt>
<Lat>1.1</Lat>
<Lng>2.1</Lng>
<sDate>sample string 4</sDate>
</CourierLocationHistoryItemViewModel>
</Locations>
</CourierLocationHistoryViewModel>
</Couriers>
</CourierLocationForCompany>
<CourierLocationForCompany>
<CompanyId>1</CompanyId>
<CompanyName>sample string 2</CompanyName>
<Couriers>
<CourierLocationHistoryViewModel>
<CourierId>1</CourierId>
<FullName>sample string 2</FullName>
<Locations>
<CourierLocationHistoryItemViewModel>
<Dt>2025-12-06T03:35:21.3661686+00:00</Dt>
<Lat>1.1</Lat>
<Lng>2.1</Lng>
<sDate>sample string 4</sDate>
</CourierLocationHistoryItemViewModel>
<CourierLocationHistoryItemViewModel>
<Dt>2025-12-06T03:35:21.3661686+00:00</Dt>
<Lat>1.1</Lat>
<Lng>2.1</Lng>
<sDate>sample string 4</sDate>
</CourierLocationHistoryItemViewModel>
</Locations>
</CourierLocationHistoryViewModel>
<CourierLocationHistoryViewModel>
<CourierId>1</CourierId>
<FullName>sample string 2</FullName>
<Locations>
<CourierLocationHistoryItemViewModel>
<Dt>2025-12-06T03:35:21.3661686+00:00</Dt>
<Lat>1.1</Lat>
<Lng>2.1</Lng>
<sDate>sample string 4</sDate>
</CourierLocationHistoryItemViewModel>
<CourierLocationHistoryItemViewModel>
<Dt>2025-12-06T03:35:21.3661686+00:00</Dt>
<Lat>1.1</Lat>
<Lng>2.1</Lng>
<sDate>sample string 4</sDate>
</CourierLocationHistoryItemViewModel>
</Locations>
</CourierLocationHistoryViewModel>
</Couriers>
</CourierLocationForCompany>
</ArrayOfCourierLocationForCompany>