POST Seed/PostGrowerOrder
Creates a new Grower Order.
Request Information
URI Parameters
Body Parameters
Grower Order object used to create the transaction.
GrowerOrderAdd| Name | Description | Type | Additional Information |
|---|---|---|---|
| OrderDate |
Order Date |
string |
Required Format must be MM/dd/yyyy |
| LocationId |
Location ID |
string |
Required Max length: 6 |
| GrowerId |
Grower Id of the field |
string |
Max length: 6 |
| FieldId |
Field Id of the field |
string |
Max length: 8 |
| SalespersonId |
The salesperson id |
string |
Max length: 15 |
| Comments |
Comments |
string |
Max length: 80 |
| Splits |
List of customers |
Collection of GrowerOrderSplitAdd |
Required List cannot be empty Maximum of 8 allowed |
| Suppliers |
List of suppliers |
Collection of GrowerOrderSupplierAdd |
Required List cannot be empty |
Request Formats
application/json, text/json
{
"OrderDate": "sample string 1",
"LocationId": "sample string 2",
"GrowerId": "sample string 3",
"FieldId": "sample string 4",
"SalespersonId": "sample string 5",
"Comments": "sample string 6",
"Splits": [
{
"CustId": "sample string 1",
"Percents1": 2.1,
"Percents2": 3.1,
"Percents3": 4.1
},
{
"CustId": "sample string 1",
"Percents1": 2.1,
"Percents2": 3.1,
"Percents3": 4.1
}
],
"Suppliers": [
{
"VendorId": "sample string 1",
"PaymentType": "sample string 2",
"DirectShip": true,
"LineItems": [
{
"DeptId": "sample string 1",
"ProdId": "sample string 2",
"Quantity": 3.1,
"RequestedDate": "sample string 4",
"SendLineToSupplier": true
},
{
"DeptId": "sample string 1",
"ProdId": "sample string 2",
"Quantity": 3.1,
"RequestedDate": "sample string 4",
"SendLineToSupplier": true
}
]
},
{
"VendorId": "sample string 1",
"PaymentType": "sample string 2",
"DirectShip": true,
"LineItems": [
{
"DeptId": "sample string 1",
"ProdId": "sample string 2",
"Quantity": 3.1,
"RequestedDate": "sample string 4",
"SendLineToSupplier": true
},
{
"DeptId": "sample string 1",
"ProdId": "sample string 2",
"Quantity": 3.1,
"RequestedDate": "sample string 4",
"SendLineToSupplier": true
}
]
}
]
}
application/xml, text/xml
<GrowerOrder.GrowerOrderAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Seed">
<Comments>sample string 6</Comments>
<FieldId>sample string 4</FieldId>
<GrowerId>sample string 3</GrowerId>
<LocationId>sample string 2</LocationId>
<OrderDate>sample string 1</OrderDate>
<SalespersonId>sample string 5</SalespersonId>
<Splits>
<GrowerOrder.GrowerOrderSplitAdd>
<CustId>sample string 1</CustId>
<Percents1>2.1</Percents1>
<Percents2>3.1</Percents2>
<Percents3>4.1</Percents3>
</GrowerOrder.GrowerOrderSplitAdd>
<GrowerOrder.GrowerOrderSplitAdd>
<CustId>sample string 1</CustId>
<Percents1>2.1</Percents1>
<Percents2>3.1</Percents2>
<Percents3>4.1</Percents3>
</GrowerOrder.GrowerOrderSplitAdd>
</Splits>
<Suppliers>
<GrowerOrder.GrowerOrderSupplierAdd>
<DirectShip>true</DirectShip>
<LineItems>
<GrowerOrder.GrowerOrderLiAdd>
<DeptId>sample string 1</DeptId>
<ProdId>sample string 2</ProdId>
<Quantity>3.1</Quantity>
<RequestedDate>sample string 4</RequestedDate>
<SendLineToSupplier>true</SendLineToSupplier>
</GrowerOrder.GrowerOrderLiAdd>
<GrowerOrder.GrowerOrderLiAdd>
<DeptId>sample string 1</DeptId>
<ProdId>sample string 2</ProdId>
<Quantity>3.1</Quantity>
<RequestedDate>sample string 4</RequestedDate>
<SendLineToSupplier>true</SendLineToSupplier>
</GrowerOrder.GrowerOrderLiAdd>
</LineItems>
<PaymentType>sample string 2</PaymentType>
<VendorId>sample string 1</VendorId>
</GrowerOrder.GrowerOrderSupplierAdd>
<GrowerOrder.GrowerOrderSupplierAdd>
<DirectShip>true</DirectShip>
<LineItems>
<GrowerOrder.GrowerOrderLiAdd>
<DeptId>sample string 1</DeptId>
<ProdId>sample string 2</ProdId>
<Quantity>3.1</Quantity>
<RequestedDate>sample string 4</RequestedDate>
<SendLineToSupplier>true</SendLineToSupplier>
</GrowerOrder.GrowerOrderLiAdd>
<GrowerOrder.GrowerOrderLiAdd>
<DeptId>sample string 1</DeptId>
<ProdId>sample string 2</ProdId>
<Quantity>3.1</Quantity>
<RequestedDate>sample string 4</RequestedDate>
<SendLineToSupplier>true</SendLineToSupplier>
</GrowerOrder.GrowerOrderLiAdd>
</LineItems>
<PaymentType>sample string 2</PaymentType>
<VendorId>sample string 1</VendorId>
</GrowerOrder.GrowerOrderSupplierAdd>
</Suppliers>
</GrowerOrder.GrowerOrderAdd>
application/x-www-form-urlencoded
Response Information
Resource Description
Creates a new Grower Order.
AgvSeedGrowerOrder| Name | 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 |
Number of results returned |
string | |
| Data |
List of properties and values returned for each Grower Order that matches the request |
Collection of GrowerOrder |
Will be "null" when the status is not success. |
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",
"Data": [
{
"GrowerOrderGuid": "c902784f-b3a4-4be9-b64c-f2bc8f8b3712",
"OrderNumber": 1
},
{
"GrowerOrderGuid": "c902784f-b3a4-4be9-b64c-f2bc8f8b3712",
"OrderNumber": 1
}
]
}
application/xml, text/xml
<AgvSeedGrowerOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Seed">
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/SKY.Core.Seed">
<d2p1:GrowerOrder>
<d2p1:GrowerOrderGuid>c902784f-b3a4-4be9-b64c-f2bc8f8b3712</d2p1:GrowerOrderGuid>
<d2p1:OrderNumber>1</d2p1:OrderNumber>
</d2p1:GrowerOrder>
<d2p1:GrowerOrder>
<d2p1:GrowerOrderGuid>c902784f-b3a4-4be9-b64c-f2bc8f8b3712</d2p1:GrowerOrderGuid>
<d2p1:OrderNumber>1</d2p1:OrderNumber>
</d2p1:GrowerOrder>
</Data>
<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>
<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>
</AgvSeedGrowerOrder>