POST BlendTicket/PostRecalculateOrderFullDetail
Recalculates the quantity and products needed to meet the requested value for the order.
Request Information
URI Parameters
Body Parameters
Request body to recalculate the order with
ClsRecalculateOrderRequestName | Description | Type | Additional Information |
---|---|---|---|
MethodOfCalculation |
The method of calculation. MethodNotSet (0) is not a valid request enumeration |
MethodOfOrderCalcualtionEnum |
Required |
RequestedAdjustment |
The value to adjust the order by |
decimal number |
Max of 3 decimal places Must be filled out and numeric |
CurrentProductList |
List of products currently on the order |
Collection of ClsRecalculateOrderRequesstProduct |
List cannot be empty |
Quantity |
The quantity (acres) of the order to use for calculations |
decimal number |
Cannot be negative Max of 3 decimal places Must be filled out and numeric |
LocationIdOrGuid |
Identifier of the location for this order |
string |
Required Max length: 36 |
ProductSetIdOrGuid |
Identifier of the current product set for this order |
string |
Required Max length: 36 |
Request Formats
application/json, text/json
{ "MethodOfCalculation": 0, "RequestedAdjustment": 1.1, "CurrentProductList": [ { "RatePerUnitAmount": 1.1, "MixingScale": 2, "ProductIsCarrier": true, "ProductGUID": "347520f0-bce2-4d88-8599-8aa8fde87273", "DepartmentID": "sample string 4", "ProductID": "sample string 5" }, { "RatePerUnitAmount": 1.1, "MixingScale": 2, "ProductIsCarrier": true, "ProductGUID": "347520f0-bce2-4d88-8599-8aa8fde87273", "DepartmentID": "sample string 4", "ProductID": "sample string 5" } ], "Quantity": 4.1, "LocationIdOrGuid": "sample string 5", "ProductSetIdOrGuid": "sample string 6" }
application/xml, text/xml
<ClsBlendPlanUtilities.ClsRecalculateOrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSI.plbl"> <LocationIdOrGuid>sample string 5</LocationIdOrGuid> <ProductSetIdOrGuid>sample string 6</ProductSetIdOrGuid> <Quantity>4.1</Quantity> <CurrentProductList> <ClsBlendPlanUtilities.ClsRecalculateOrderRequesstProduct> <DepartmentID xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Inventory">sample string 4</DepartmentID> <ProductGUID xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Inventory">347520f0-bce2-4d88-8599-8aa8fde87273</ProductGUID> <ProductID xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Inventory">sample string 5</ProductID> <MixingScale>2</MixingScale> <ProductIsCarrier>true</ProductIsCarrier> <RatePerUnitAmount>1.1</RatePerUnitAmount> </ClsBlendPlanUtilities.ClsRecalculateOrderRequesstProduct> <ClsBlendPlanUtilities.ClsRecalculateOrderRequesstProduct> <DepartmentID xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Inventory">sample string 4</DepartmentID> <ProductGUID xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Inventory">347520f0-bce2-4d88-8599-8aa8fde87273</ProductGUID> <ProductID xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Inventory">sample string 5</ProductID> <MixingScale>2</MixingScale> <ProductIsCarrier>true</ProductIsCarrier> <RatePerUnitAmount>1.1</RatePerUnitAmount> </ClsBlendPlanUtilities.ClsRecalculateOrderRequesstProduct> </CurrentProductList> <MethodOfCalculation>MethodNotSet</MethodOfCalculation> <RequestedAdjustment>1.1</RequestedAdjustment> </ClsBlendPlanUtilities.ClsRecalculateOrderRequest>
application/x-www-form-urlencoded
Response Information
Resource Description
Recalculates the quantity and products needed to meet the requested value for the order.
AgvBlendTicketCalculateOrderName | 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 error messages of the API call. |
Collection of string | |
WarningList |
List of warning messages of the API call. |
Collection of string | |
Count |
Number of results returned. |
string | |
Data |
Calculated Order Response with Quantity and Products updated. |
ClsCalculationResponse |
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": null, "Data": null }
application/xml, text/xml
<AgvBlendTicketCalculateOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Blend"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/SSI.PLBLM" i:nil="true" /> <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> </AgvBlendTicketCalculateOrder>