GET api/v1/Collection/COL_GET_LastCollectionFromSupplier?supplierid={supplierid}&locationid={locationid}
Query ROC collection information for the most recent collection from a supplier.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| supplierid |
Id of the supplier. |
globally unique identifier |
Required |
| locationid |
Id of the supplier location. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection information pertaining to the last collection made from the supplier.
UCOCollectionGet| Name | Description | Type | Additional information |
|---|---|---|---|
| collectionid | integer |
None. |
|
| entityid | globally unique identifier |
None. |
|
| entityname | string |
None. |
|
| entitytypename | string |
None. |
|
| locationid | integer |
None. |
|
| locationname | string |
None. |
|
| supervisorid | integer |
None. |
|
| supervisorname | string |
None. |
|
| datetimeofcollection | date |
None. |
|
| purchaseordernumber | string |
None. |
|
| truckrego | string |
None. |
|
| containers | Collection of UCOContainer |
None. |
|
| emptycontainers | Collection of UCOEmptyContainer |
None. |
Response Formats
application/json, text/json
Sample:
{
"collectionid": 1,
"entityid": "4062b3b2-1d44-4fd1-a24e-04d318806c3f",
"entityname": "sample string 3",
"entitytypename": "sample string 4",
"locationid": 1,
"locationname": "sample string 5",
"supervisorid": 6,
"supervisorname": "sample string 7",
"datetimeofcollection": "2026-08-16T17:19:23.7874359+00:00",
"purchaseordernumber": "sample string 8",
"truckrego": "sample string 9",
"containers": [
{
"quantity": 1.0,
"containertypeid": 2,
"state": "sample string 3",
"containernumber": "sample string 4"
},
{
"quantity": 1.0,
"containertypeid": 2,
"state": "sample string 3",
"containernumber": "sample string 4"
}
],
"emptycontainers": [
{
"state": "sample string 1",
"containernumber": "sample string 2"
},
{
"state": "sample string 1",
"containernumber": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<UCOCollectionGet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/nfuels_sharedmodels.Models.Collection">
<collectionid>1</collectionid>
<containers xmlns:d2p1="http://schemas.datacontract.org/2004/07/nfuels_sharedmodels.Models.Containers">
<d2p1:UCOContainer>
<d2p1:containernumber>sample string 4</d2p1:containernumber>
<d2p1:state>sample string 3</d2p1:state>
<d2p1:containertypeid>2</d2p1:containertypeid>
<d2p1:quantity>1</d2p1:quantity>
</d2p1:UCOContainer>
<d2p1:UCOContainer>
<d2p1:containernumber>sample string 4</d2p1:containernumber>
<d2p1:state>sample string 3</d2p1:state>
<d2p1:containertypeid>2</d2p1:containertypeid>
<d2p1:quantity>1</d2p1:quantity>
</d2p1:UCOContainer>
</containers>
<datetimeofcollection>2026-08-16T17:19:23.7874359+00:00</datetimeofcollection>
<emptycontainers xmlns:d2p1="http://schemas.datacontract.org/2004/07/nfuels_sharedmodels.Models.Containers">
<d2p1:UCOEmptyContainer>
<d2p1:containernumber>sample string 2</d2p1:containernumber>
<d2p1:state>sample string 1</d2p1:state>
</d2p1:UCOEmptyContainer>
<d2p1:UCOEmptyContainer>
<d2p1:containernumber>sample string 2</d2p1:containernumber>
<d2p1:state>sample string 1</d2p1:state>
</d2p1:UCOEmptyContainer>
</emptycontainers>
<entityid>4062b3b2-1d44-4fd1-a24e-04d318806c3f</entityid>
<entityname>sample string 3</entityname>
<entitytypename>sample string 4</entitytypename>
<locationid>1</locationid>
<locationname>sample string 5</locationname>
<purchaseordernumber>sample string 8</purchaseordernumber>
<supervisorid>6</supervisorid>
<supervisorname>sample string 7</supervisorname>
<truckrego>sample string 9</truckrego>
</UCOCollectionGet>