GET Stock/GetPurchaseUnits/{SiteID}
Returns a list of available Purchase Units
Request Information
URI Parameters
Name | Type | Description | Additional information |
---|---|---|---|
SiteID | integer |
Body Parameters
None.
Response Information
Resource Description
PurchaseUnitModelName | Type | Description | Additional information |
---|---|---|---|
SiteID | integer |
None. |
|
PurchaseUnits | Collection of PurchaseUnitDto |
None. |
Response Formats
application/json, text/json
Sample:
{ "SiteID": 1, "PurchaseUnits": [ { "Name": "sample string 1" }, { "Name": "sample string 1" } ] }
application/xml, text/xml
Sample:
<PurchaseUnitModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.API.App.Models"> <PurchaseUnits xmlns:d2p1="http://schemas.datacontract.org/2004/07/Tevalis.StockMid.Core.Models.PurchaseUnits"> <d2p1:PurchaseUnitDto> <d2p1:Name>sample string 1</d2p1:Name> </d2p1:PurchaseUnitDto> <d2p1:PurchaseUnitDto> <d2p1:Name>sample string 1</d2p1:Name> </d2p1:PurchaseUnitDto> </PurchaseUnits> <SiteID>1</SiteID> </PurchaseUnitModel>