GET api/v1/CustomerTruck/Trucks?customerid={customerid}
Query customer truck information for a specific customer.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| customerid | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
List of Truck Registration Numbers
Collection of CustomerTruck| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerId | globally unique identifier |
None. |
|
| IsThirdParty | boolean |
None. |
|
| ExternalId | string |
None. |
|
| TruckId | integer |
None. |
|
| TruckRego | string |
Required |
|
| TruckNumber | string |
None. |
|
| TruckType | string |
None. |
|
| ModelOrigin | string |
None. |
|
| adhoc | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"CustomerId": "ce2100e5-5d0c-4418-b72a-e16d9b8bf070",
"IsThirdParty": true,
"ExternalId": "sample string 2",
"TruckId": 3,
"TruckRego": "sample string 4",
"TruckNumber": "sample string 5",
"TruckType": "sample string 6",
"ModelOrigin": "sample string 7",
"adhoc": true
},
{
"CustomerId": "ce2100e5-5d0c-4418-b72a-e16d9b8bf070",
"IsThirdParty": true,
"ExternalId": "sample string 2",
"TruckId": 3,
"TruckRego": "sample string 4",
"TruckNumber": "sample string 5",
"TruckType": "sample string 6",
"ModelOrigin": "sample string 7",
"adhoc": true
}
]
application/xml, text/xml
Sample:
<ArrayOfCustomerTruck xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/nfuels_sharedmodels.Models.Truck">
<CustomerTruck>
<ModelOrigin>sample string 7</ModelOrigin>
<TruckId>3</TruckId>
<TruckNumber>sample string 5</TruckNumber>
<TruckRego>sample string 4</TruckRego>
<TruckType>sample string 6</TruckType>
<adhoc>true</adhoc>
<CustomerId>ce2100e5-5d0c-4418-b72a-e16d9b8bf070</CustomerId>
<ExternalId>sample string 2</ExternalId>
<IsThirdParty>true</IsThirdParty>
</CustomerTruck>
<CustomerTruck>
<ModelOrigin>sample string 7</ModelOrigin>
<TruckId>3</TruckId>
<TruckNumber>sample string 5</TruckNumber>
<TruckRego>sample string 4</TruckRego>
<TruckType>sample string 6</TruckType>
<adhoc>true</adhoc>
<CustomerId>ce2100e5-5d0c-4418-b72a-e16d9b8bf070</CustomerId>
<ExternalId>sample string 2</ExternalId>
<IsThirdParty>true</IsThirdParty>
</CustomerTruck>
</ArrayOfCustomerTruck>