POST jxc_api/PurchaseOrder/BatchGetLatestProductPrice

Request Information

URI Parameters

None.

Body Parameters

BatchGetLatestPoProductPricePara
NameDescriptionTypeAdditional information
VcId

integer

None.

VcType

integer

None.

VcLevel

integer

None.

RowPriceParas

Collection of PoRowPricePara

None.

Request Formats

application/json, text/json

Sample:
{
  "VcId": 1,
  "VcType": 1,
  "VcLevel": 1,
  "RowPriceParas": [
    {
      "ProdId": 1,
      "ApId": 2,
      "UnitId": 3,
      "Count": 4.0,
      "OrderDate": "2025-04-04 20:59:06"
    },
    {
      "ProdId": 1,
      "ApId": 2,
      "UnitId": 3,
      "Count": 4.0,
      "OrderDate": "2025-04-04 20:59:06"
    }
  ]
}

application/xml, text/xml

Sample:
<BatchGetLatestPoProductPricePara xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Purchase.Models">
  <RowPriceParas>
    <BatchGetLatestPoProductPricePara.PoRowPricePara>
      <ApId>2</ApId>
      <Count>4</Count>
      <OrderDate>2025-04-04T20:59:06.7297937+08:00</OrderDate>
      <ProdId>1</ProdId>
      <UnitId>3</UnitId>
    </BatchGetLatestPoProductPricePara.PoRowPricePara>
    <BatchGetLatestPoProductPricePara.PoRowPricePara>
      <ApId>2</ApId>
      <Count>4</Count>
      <OrderDate>2025-04-04T20:59:06.7297937+08:00</OrderDate>
      <ProdId>1</ProdId>
      <UnitId>3</UnitId>
    </BatchGetLatestPoProductPricePara.PoRowPricePara>
  </RowPriceParas>
  <VcId>1</VcId>
  <VcLevel>1</VcLevel>
  <VcType>1</VcType>
</BatchGetLatestPoProductPricePara>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of GetLatestPoProductPriceResult
NameDescriptionTypeAdditional information
GradeName

string

None.

GradePrice

decimal number

None.

LatestPrice

Collection of HistoryPrice

None.

VcPrice

decimal number

None.

VcPriceLimit

decimal number

None.

VcTypePrice

decimal number

None.

VcTypePriceLimit

decimal number

None.

MaxPurPrice

decimal number

None.

MinSellPrice

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "GradeName": "sample string 1",
    "GradePrice": 2.0,
    "LatestPrice": [
      {
        "LatestPrice": 1.0,
        "ModifiedDate": "2025-04-04 20:59:06"
      },
      {
        "LatestPrice": 1.0,
        "ModifiedDate": "2025-04-04 20:59:06"
      }
    ],
    "VcPrice": 3.0,
    "VcPriceLimit": 4.0,
    "VcTypePrice": 5.0,
    "VcTypePriceLimit": 6.0,
    "MaxPurPrice": 7.0,
    "MinSellPrice": 8.0
  },
  {
    "GradeName": "sample string 1",
    "GradePrice": 2.0,
    "LatestPrice": [
      {
        "LatestPrice": 1.0,
        "ModifiedDate": "2025-04-04 20:59:06"
      },
      {
        "LatestPrice": 1.0,
        "ModifiedDate": "2025-04-04 20:59:06"
      }
    ],
    "VcPrice": 3.0,
    "VcPriceLimit": 4.0,
    "VcTypePrice": 5.0,
    "VcTypePriceLimit": 6.0,
    "MaxPurPrice": 7.0,
    "MinSellPrice": 8.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfGetLatestPoProductPriceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Purchase.Models">
  <GetLatestPoProductPriceResult>
    <GradeName>sample string 1</GradeName>
    <GradePrice>2</GradePrice>
    <LatestPrice>
      <GetLatestPoProductPriceResult.HistoryPrice>
        <LatestPrice>1</LatestPrice>
        <ModifiedDate>2025-04-04T20:59:06.7297937+08:00</ModifiedDate>
      </GetLatestPoProductPriceResult.HistoryPrice>
      <GetLatestPoProductPriceResult.HistoryPrice>
        <LatestPrice>1</LatestPrice>
        <ModifiedDate>2025-04-04T20:59:06.7297937+08:00</ModifiedDate>
      </GetLatestPoProductPriceResult.HistoryPrice>
    </LatestPrice>
    <MaxPurPrice>7</MaxPurPrice>
    <MinSellPrice>8</MinSellPrice>
    <VcPrice>3</VcPrice>
    <VcPriceLimit>4</VcPriceLimit>
    <VcTypePrice>5</VcTypePrice>
    <VcTypePriceLimit>6</VcTypePriceLimit>
  </GetLatestPoProductPriceResult>
  <GetLatestPoProductPriceResult>
    <GradeName>sample string 1</GradeName>
    <GradePrice>2</GradePrice>
    <LatestPrice>
      <GetLatestPoProductPriceResult.HistoryPrice>
        <LatestPrice>1</LatestPrice>
        <ModifiedDate>2025-04-04T20:59:06.7297937+08:00</ModifiedDate>
      </GetLatestPoProductPriceResult.HistoryPrice>
      <GetLatestPoProductPriceResult.HistoryPrice>
        <LatestPrice>1</LatestPrice>
        <ModifiedDate>2025-04-04T20:59:06.7297937+08:00</ModifiedDate>
      </GetLatestPoProductPriceResult.HistoryPrice>
    </LatestPrice>
    <MaxPurPrice>7</MaxPurPrice>
    <MinSellPrice>8</MinSellPrice>
    <VcPrice>3</VcPrice>
    <VcPriceLimit>4</VcPriceLimit>
    <VcTypePrice>5</VcTypePrice>
    <VcTypePriceLimit>6</VcTypePriceLimit>
  </GetLatestPoProductPriceResult>
</ArrayOfGetLatestPoProductPriceResult>