GET GrowerOrder/GetGrowerOrder?DeptID={DeptID}&ProdID={ProdID}&GrowerID={GrowerID}&LocationID={LocationID}&GrowerOrderNumber={GrowerOrderNumber}
Returns a list of grower orders
Request Information
URI Parameters
Name | Description | Type | Additional Information |
---|---|---|---|
DeptID |
Department ID of the product to search for |
string |
Default value is string.Empty |
ProdID |
Product ID of the product to search for |
string |
Default value is string.Empty |
GrowerID |
Grower ID to search for |
string |
Default value is string.Empty |
LocationID |
Location ID to search for |
string |
Default value is string.Empty |
GrowerOrderNumber |
Grower Order Number to search for |
integer |
Default value is 0 |
Body Parameters
Response Information
Resource Description
Returns a list of grower orders
AgvGrowerOrderName | Description | Type | Additional Information |
---|---|---|---|
Status |
0 = Success. 1 = An error occurred. 2 = An error occurred. 3 = Descriptive message, process was successful. |
string | |
Message |
Informational message that corresponds to the Status returned. 0 - Message will be "OK". 1 - Detailed message returned to give user an indication of what went wrong. 2 - Less Detailed message returned that may not mean anything to the user but that the application might use to take a corrective action. 3 - Not an error but something the user might need to know. |
string | |
ErrorList |
List of errors from the API |
Collection of string | |
WarningList |
List of warnings from the API |
Collection of string | |
Count |
Count of how many Grower Orders are returned |
string | |
Orders |
List of Grower Orders |
Collection of clsseedorder |
Response Formats
application/json, text/json
{ "Status": "sample string 1", "Message": "sample string 2", "ErrorList": [ "sample string 1", "sample string 2" ], "WarningList": [ "sample string 1", "sample string 2" ], "Count": "2", "Orders": [ { "UniqueID": 1, "DealerID": "sample string 2", "Salesman": "sample string 3", "OrderDate": "sample string 4", "OrderNumber": 5, "TransType": "sample string 6", "GrowerID": "sample string 7", "VendorID": "sample string 8", "Complete": true, "PaymentType": "sample string 10", "DirectShip": true, "SalesOrderReference": "sample string 12", "FarmManagerAgency": "sample string 13", "FarmManagerID": "sample string 14", "FarmManagerName": "sample string 15", "LineItems": [] }, { "UniqueID": 1, "DealerID": "sample string 2", "Salesman": "sample string 3", "OrderDate": "sample string 4", "OrderNumber": 5, "TransType": "sample string 6", "GrowerID": "sample string 7", "VendorID": "sample string 8", "Complete": true, "PaymentType": "sample string 10", "DirectShip": true, "SalesOrderReference": "sample string 12", "FarmManagerAgency": "sample string 13", "FarmManagerID": "sample string 14", "FarmManagerName": "sample string 15", "LineItems": [] } ] }
application/xml, text/xml
<AgvGrowerOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.GrowerOrder"> <ErrorList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </ErrorList> <Message>sample string 2</Message> <Orders xmlns:d2p1="http://schemas.datacontract.org/2004/07/SSI"> <d2p1:GrowerOrder> <d2p1:Complete>true</d2p1:Complete> <d2p1:DealerID>sample string 2</d2p1:DealerID> <d2p1:DirectShip>true</d2p1:DirectShip> <d2p1:FarmManagerAgency>sample string 13</d2p1:FarmManagerAgency> <d2p1:FarmManagerID>sample string 14</d2p1:FarmManagerID> <d2p1:FarmManagerName>sample string 15</d2p1:FarmManagerName> <d2p1:GrowerID>sample string 7</d2p1:GrowerID> <d2p1:LineItems /> <d2p1:OrderDate>sample string 4</d2p1:OrderDate> <d2p1:OrderNumber>5</d2p1:OrderNumber> <d2p1:PaymentType>sample string 10</d2p1:PaymentType> <d2p1:SalesOrderReference>sample string 12</d2p1:SalesOrderReference> <d2p1:Salesman>sample string 3</d2p1:Salesman> <d2p1:TransType>sample string 6</d2p1:TransType> <d2p1:UniqueID>1</d2p1:UniqueID> <d2p1:VendorID>sample string 8</d2p1:VendorID> </d2p1:GrowerOrder> <d2p1:GrowerOrder> <d2p1:Complete>true</d2p1:Complete> <d2p1:DealerID>sample string 2</d2p1:DealerID> <d2p1:DirectShip>true</d2p1:DirectShip> <d2p1:FarmManagerAgency>sample string 13</d2p1:FarmManagerAgency> <d2p1:FarmManagerID>sample string 14</d2p1:FarmManagerID> <d2p1:FarmManagerName>sample string 15</d2p1:FarmManagerName> <d2p1:GrowerID>sample string 7</d2p1:GrowerID> <d2p1:LineItems /> <d2p1:OrderDate>sample string 4</d2p1:OrderDate> <d2p1:OrderNumber>5</d2p1:OrderNumber> <d2p1:PaymentType>sample string 10</d2p1:PaymentType> <d2p1:SalesOrderReference>sample string 12</d2p1:SalesOrderReference> <d2p1:Salesman>sample string 3</d2p1:Salesman> <d2p1:TransType>sample string 6</d2p1:TransType> <d2p1:UniqueID>1</d2p1:UniqueID> <d2p1:VendorID>sample string 8</d2p1:VendorID> </d2p1:GrowerOrder> </Orders> <Status>sample string 1</Status> <WarningList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </WarningList> </AgvGrowerOrder>