POST BlendTicket/PostRecalculateProductsFullDetail

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

ClsRecalculateProductsRequest
NameDescriptionTypeAdditional Information
CurrentProductList

The list of products to use in the calculation.

Collection of ClsRecalculateProductsRequestProduct

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

Sample:
{
  "CurrentProductList": [
    {
      "RatePerUnitAmount": 1.1,
      "TotalRatingAmount": 2.1,
      "MixedAmount": 3.1,
      "MixingScale": 4,
      "InventoryAmount": 5.1,
      "TotalPoundsInTheMix": 6.1,
      "CalculateBasedOnRateTotalMixInventoryPounds": 0,
      "ProductGUID": "29990b81-60b2-4474-8fb7-59fb80941f83",
      "DepartmentID": "sample string 7",
      "ProductID": "sample string 8"
    },
    {
      "RatePerUnitAmount": 1.1,
      "TotalRatingAmount": 2.1,
      "MixedAmount": 3.1,
      "MixingScale": 4,
      "InventoryAmount": 5.1,
      "TotalPoundsInTheMix": 6.1,
      "CalculateBasedOnRateTotalMixInventoryPounds": 0,
      "ProductGUID": "29990b81-60b2-4474-8fb7-59fb80941f83",
      "DepartmentID": "sample string 7",
      "ProductID": "sample string 8"
    }
  ],
  "Quantity": 3.1,
  "LocationIdOrGuid": "sample string 4",
  "ProductSetIdOrGuid": "sample string 5"
}

application/xml, text/xml

Sample:
<ClsBlendPlanUtilities.ClsRecalculateProductsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSI.plbl">
  <LocationIdOrGuid>sample string 4</LocationIdOrGuid>
  <ProductSetIdOrGuid>sample string 5</ProductSetIdOrGuid>
  <Quantity>3.1</Quantity>
  <CurrentProductList>
    <ClsBlendPlanUtilities.ClsRecalculateProductsRequestProduct>
      <DepartmentID xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Inventory">sample string 7</DepartmentID>
      <ProductGUID xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Inventory">29990b81-60b2-4474-8fb7-59fb80941f83</ProductGUID>
      <ProductID xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Inventory">sample string 8</ProductID>
      <CalculateBasedOnRateTotalMixInventoryPounds>Rating</CalculateBasedOnRateTotalMixInventoryPounds>
      <InventoryAmount>5.1</InventoryAmount>
      <MixedAmount>3.1</MixedAmount>
      <MixingScale>4</MixingScale>
      <RatePerUnitAmount>1.1</RatePerUnitAmount>
      <TotalPoundsInTheMix>6.1</TotalPoundsInTheMix>
      <TotalRatingAmount>2.1</TotalRatingAmount>
    </ClsBlendPlanUtilities.ClsRecalculateProductsRequestProduct>
    <ClsBlendPlanUtilities.ClsRecalculateProductsRequestProduct>
      <DepartmentID xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Inventory">sample string 7</DepartmentID>
      <ProductGUID xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Inventory">29990b81-60b2-4474-8fb7-59fb80941f83</ProductGUID>
      <ProductID xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Inventory">sample string 8</ProductID>
      <CalculateBasedOnRateTotalMixInventoryPounds>Rating</CalculateBasedOnRateTotalMixInventoryPounds>
      <InventoryAmount>5.1</InventoryAmount>
      <MixedAmount>3.1</MixedAmount>
      <MixingScale>4</MixingScale>
      <RatePerUnitAmount>1.1</RatePerUnitAmount>
      <TotalPoundsInTheMix>6.1</TotalPoundsInTheMix>
      <TotalRatingAmount>2.1</TotalRatingAmount>
    </ClsBlendPlanUtilities.ClsRecalculateProductsRequestProduct>
  </CurrentProductList>
</ClsBlendPlanUtilities.ClsRecalculateProductsRequest>

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 'ClsRecalculateProductsRequest'.

Response Information

Resource Description

Calculates the products using Agvance logic for the other Unit of Measures for a product on a Blend or Plan.

AgvBlendTicketCalculateOrder
NameDescriptionTypeAdditional 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

Sample:
{
  "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

Sample:
<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>