POST BlendTicket/PostRecalculateBlendPlanProducts
Calculates the products using Agvance logic for the other Unit of Measures for a product on a Blend or Plan.
Request Information
URI Parameters
Body Parameters
Request body to calculate the product quantities from
ClsRecalculateBlendPlanProductsRequestName | Description | Type | Additional Information |
---|---|---|---|
Quantity |
The quantity (acres) of the Blend or Plan use for calculations. |
decimal number |
Cannot be negative Max of 3 decimal places Must be filled out and numeric |
LocationID |
The location id to used for the preferences in the calculations. |
string |
Max length: 6 |
LocationGUID |
The location Globally Unique Identifier. Used to identify the location of the preferences when the LocationID is not set. |
globally unique identifier |
(Hexadecimal 8-4-4-4-12) |
Products |
The list of products to use in the calculation. |
Collection of ClsRecalculatePlanBlendRequestProduct |
List cannot be empty |
Request Formats
application/json, text/json
{ "Quantity": 3.1, "LocationID": "sample string 4", "LocationGUID": "aa016c3a-7284-44c6-9ba3-d09ab20140f8", "Products": [ { "DepartmentID": "sample string 1", "ProductID": "sample string 2", "ProductGUID": "3b6b22cc-d516-4b60-ae34-54b1d26ed742", "ProductName": "sample string 3", "RatePerUnitAmount": 4.1, "TotalRatingAmount": 5.1, "MixedAmount": 6.1, "MixingScale": 7, "InventoryAmount": 8.1, "TotalPoundsInTheMix": 9.1, "CalculateBasedOnRateTotalMixInventoryPounds": 0 }, { "DepartmentID": "sample string 1", "ProductID": "sample string 2", "ProductGUID": "3b6b22cc-d516-4b60-ae34-54b1d26ed742", "ProductName": "sample string 3", "RatePerUnitAmount": 4.1, "TotalRatingAmount": 5.1, "MixedAmount": 6.1, "MixingScale": 7, "InventoryAmount": 8.1, "TotalPoundsInTheMix": 9.1, "CalculateBasedOnRateTotalMixInventoryPounds": 0 } ] }
application/xml, text/xml
<ClsBlendPlanUtilities.ClsRecalculateBlendPlanProductsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSI.plbl"> <LocationGUID>aa016c3a-7284-44c6-9ba3-d09ab20140f8</LocationGUID> <LocationID>sample string 4</LocationID> <Products> <ClsBlendPlanUtilities.ClsRecalculatePlanBlendRequestProduct> <CalculateBasedOnRateTotalMixInventoryPounds>Rating</CalculateBasedOnRateTotalMixInventoryPounds> <DepartmentID>sample string 1</DepartmentID> <InventoryAmount>8.1</InventoryAmount> <MixedAmount>6.1</MixedAmount> <MixingScale>7</MixingScale> <ProductGUID>3b6b22cc-d516-4b60-ae34-54b1d26ed742</ProductGUID> <ProductID>sample string 2</ProductID> <ProductName>sample string 3</ProductName> <RatePerUnitAmount>4.1</RatePerUnitAmount> <TotalPoundsInTheMix>9.1</TotalPoundsInTheMix> <TotalRatingAmount>5.1</TotalRatingAmount> </ClsBlendPlanUtilities.ClsRecalculatePlanBlendRequestProduct> <ClsBlendPlanUtilities.ClsRecalculatePlanBlendRequestProduct> <CalculateBasedOnRateTotalMixInventoryPounds>Rating</CalculateBasedOnRateTotalMixInventoryPounds> <DepartmentID>sample string 1</DepartmentID> <InventoryAmount>8.1</InventoryAmount> <MixedAmount>6.1</MixedAmount> <MixingScale>7</MixingScale> <ProductGUID>3b6b22cc-d516-4b60-ae34-54b1d26ed742</ProductGUID> <ProductID>sample string 2</ProductID> <ProductName>sample string 3</ProductName> <RatePerUnitAmount>4.1</RatePerUnitAmount> <TotalPoundsInTheMix>9.1</TotalPoundsInTheMix> <TotalRatingAmount>5.1</TotalRatingAmount> </ClsBlendPlanUtilities.ClsRecalculatePlanBlendRequestProduct> </Products> <Quantity>3.1</Quantity> </ClsBlendPlanUtilities.ClsRecalculateBlendPlanProductsRequest>
application/x-www-form-urlencoded
Response Information
Resource Description
Calculates the products using Agvance logic for the other Unit of Measures for a product on a Blend or Plan.
AgvBlendTicketRecalculateProductsName | Description | Type | Additional Information |
---|---|---|---|
Status |
Status of the API call. |
string | |
Message |
Message of the API call. |
string | |
ErrorList |
List of error messages of the API call. |
Collection of string | |
WarningList |
List of warning messages of the API call. |
Collection of string | |
Count |
Count of how many Recalculated Product JSON dictionaries. |
string | |
ProductList |
JSON dictionary of Recalculated Products |
Collection of ClsRecalculatePlanBlendResponseProduct |
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", "ProductList": [ { "DepartmentID": "sample string 35", "ProductID": "sample string 36", "ProductGUID": "e31a96af-1857-4aef-885f-181a87465a4c", "ProductName": "sample string 38", "RatePerUnitAmount": 39.1, "RatingUOM": "sample string 40", "TotalRatingAmount": 41.1, "MixedAmount": 42.1, "MixingUOM": "sample string 43", "MixingScale": 44, "InventoryAmount": 45.1, "InventoryUOM": "sample string 46", "TotalPoundsInTheMix": 47.1 }, { "DepartmentID": "sample string 35", "ProductID": "sample string 36", "ProductGUID": "e31a96af-1857-4aef-885f-181a87465a4c", "ProductName": "sample string 38", "RatePerUnitAmount": 39.1, "RatingUOM": "sample string 40", "TotalRatingAmount": 41.1, "MixedAmount": 42.1, "MixingUOM": "sample string 43", "MixingScale": 44, "InventoryAmount": 45.1, "InventoryUOM": "sample string 46", "TotalPoundsInTheMix": 47.1 } ] }
application/xml, text/xml
<AgvBlendTicketRecalculateProducts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Blend"> <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> <ProductList xmlns:d2p1="http://schemas.datacontract.org/2004/07/SSI.plbl"> <d2p1:ClsBlendPlanUtilities.ClsRecalculatePlanBlendResponseProduct> <d2p1:DepartmentID>sample string 35</d2p1:DepartmentID> <d2p1:InventoryAmount>45.1</d2p1:InventoryAmount> <d2p1:InventoryUOM>sample string 46</d2p1:InventoryUOM> <d2p1:MixedAmount>42.1</d2p1:MixedAmount> <d2p1:MixingScale>44</d2p1:MixingScale> <d2p1:MixingUOM>sample string 43</d2p1:MixingUOM> <d2p1:ProductGUID>e31a96af-1857-4aef-885f-181a87465a4c</d2p1:ProductGUID> <d2p1:ProductID>sample string 36</d2p1:ProductID> <d2p1:ProductName>sample string 38</d2p1:ProductName> <d2p1:RatePerUnitAmount>39.1</d2p1:RatePerUnitAmount> <d2p1:RatingUOM>sample string 40</d2p1:RatingUOM> <d2p1:TotalPoundsInTheMix>47.1</d2p1:TotalPoundsInTheMix> <d2p1:TotalRatingAmount>41.1</d2p1:TotalRatingAmount> </d2p1:ClsBlendPlanUtilities.ClsRecalculatePlanBlendResponseProduct> <d2p1:ClsBlendPlanUtilities.ClsRecalculatePlanBlendResponseProduct> <d2p1:DepartmentID>sample string 35</d2p1:DepartmentID> <d2p1:InventoryAmount>45.1</d2p1:InventoryAmount> <d2p1:InventoryUOM>sample string 46</d2p1:InventoryUOM> <d2p1:MixedAmount>42.1</d2p1:MixedAmount> <d2p1:MixingScale>44</d2p1:MixingScale> <d2p1:MixingUOM>sample string 43</d2p1:MixingUOM> <d2p1:ProductGUID>e31a96af-1857-4aef-885f-181a87465a4c</d2p1:ProductGUID> <d2p1:ProductID>sample string 36</d2p1:ProductID> <d2p1:ProductName>sample string 38</d2p1:ProductName> <d2p1:RatePerUnitAmount>39.1</d2p1:RatePerUnitAmount> <d2p1:RatingUOM>sample string 40</d2p1:RatingUOM> <d2p1:TotalPoundsInTheMix>47.1</d2p1:TotalPoundsInTheMix> <d2p1:TotalRatingAmount>41.1</d2p1:TotalRatingAmount> </d2p1:ClsBlendPlanUtilities.ClsRecalculatePlanBlendResponseProduct> </ProductList> <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> </AgvBlendTicketRecalculateProducts>