POST BlendTicket/PostCalculateAnalysis

Calculates the analysis of the supplied products using Agvance logic for recalculation of the products and optionally the rounding and tolerance of the location preference.

Request Information

URI Parameters

Body Parameters

Request body to calculate the analysis from

ClsCalculateAnalysisRequest
NameDescriptionTypeAdditional Information
RoundToTolerance

Setting to indicate if the results should be rounded to the location tolerance and accuracy. Default is False.

boolean

Must be 0, 1, True, or False

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

Sample:
{
  "RoundToTolerance": true,
  "Quantity": 4.1,
  "LocationID": "sample string 5",
  "LocationGUID": "970baaf8-4abd-4d6b-bd2e-276e97599a76",
  "Products": [
    {
      "DepartmentID": "sample string 1",
      "ProductID": "sample string 2",
      "ProductGUID": "6c55b788-e5d5-4bc1-b42b-e15855063cab",
      "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": "6c55b788-e5d5-4bc1-b42b-e15855063cab",
      "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

Sample:
<ClsBlendPlanUtilities.ClsCalculateAnalysisRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSI.plbl">
  <LocationGUID>970baaf8-4abd-4d6b-bd2e-276e97599a76</LocationGUID>
  <LocationID>sample string 5</LocationID>
  <Products>
    <ClsBlendPlanUtilities.ClsRecalculatePlanBlendRequestProduct>
      <CalculateBasedOnRateTotalMixInventoryPounds>Rating</CalculateBasedOnRateTotalMixInventoryPounds>
      <DepartmentID>sample string 1</DepartmentID>
      <InventoryAmount>8.1</InventoryAmount>
      <MixedAmount>6.1</MixedAmount>
      <MixingScale>7</MixingScale>
      <ProductGUID>6c55b788-e5d5-4bc1-b42b-e15855063cab</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>6c55b788-e5d5-4bc1-b42b-e15855063cab</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>4.1</Quantity>
  <RoundToTolerance>true</RoundToTolerance>
</ClsBlendPlanUtilities.ClsCalculateAnalysisRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ClsCalculateAnalysisRequest'.

Response Information

Resource Description

Calculates the analysis of the supplied products using Agvance logic for recalculation of the products and optionally the rounding and tolerance of the location preference.

AgvBlendTicketCalculateAnalysis
NameDescriptionTypeAdditional Information
Status

Status of the API call.

string
Message

Message of the API call.

string
Count

Count of how many Analysis Detail Item JSON dictionaries.

string
AnalysisItems

JSON dictionary of Analysis Detail Items

Collection of ClsCalculateAnalysisDetailItem

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Message": "sample string 2",
  "Count": "2",
  "AnalysisItems": [
    {
      "NutrientName": "sample string 1",
      "AnalysisType": 0,
      "AnalysisValue": 2.1
    },
    {
      "NutrientName": "sample string 1",
      "AnalysisType": 0,
      "AnalysisValue": 2.1
    }
  ]
}

application/xml, text/xml

Sample:
<AgvBlendTicketCalculateAnalysis xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Blend">
  <AnalysisItems xmlns:d2p1="http://schemas.datacontract.org/2004/07/SSI.plbl">
    <d2p1:ClsBlendPlanUtilities.ClsCalculateAnalysisDetailItem>
      <d2p1:AnalysisType>Blended</d2p1:AnalysisType>
      <d2p1:AnalysisValue>2.1</d2p1:AnalysisValue>
      <d2p1:NutrientName>sample string 1</d2p1:NutrientName>
    </d2p1:ClsBlendPlanUtilities.ClsCalculateAnalysisDetailItem>
    <d2p1:ClsBlendPlanUtilities.ClsCalculateAnalysisDetailItem>
      <d2p1:AnalysisType>Blended</d2p1:AnalysisType>
      <d2p1:AnalysisValue>2.1</d2p1:AnalysisValue>
      <d2p1:NutrientName>sample string 1</d2p1:NutrientName>
    </d2p1:ClsBlendPlanUtilities.ClsCalculateAnalysisDetailItem>
  </AnalysisItems>
  <Message>sample string 2</Message>
  <Status>sample string 1</Status>
</AgvBlendTicketCalculateAnalysis>