POST jxc_api/PurchaseOrder/GetLatestProductPrice

Request Information

URI Parameters

None.

Body Parameters

GetLatestPoProductPricePara
NameDescriptionTypeAdditional information
VcId

integer

None.

ProdId

integer

None.

ApId

integer

None.

UnitId

integer

None.

Count

decimal number

None.

OrderDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "VcId": 1,
  "ProdId": 2,
  "ApId": 3,
  "UnitId": 4,
  "Count": 5.0,
  "OrderDate": "2025-04-04 20:59:07"
}

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

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:08"
    },
    {
      "LatestPrice": 1.0,
      "ModifiedDate": "2025-04-04 20:59:08"
    }
  ],
  "VcPrice": 3.0,
  "VcPriceLimit": 4.0,
  "VcTypePrice": 5.0,
  "VcTypePriceLimit": 6.0,
  "MaxPurPrice": 7.0,
  "MinSellPrice": 8.0
}

application/xml, text/xml

Sample:
<GetLatestPoProductPriceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Purchase.Models">
  <GradeName>sample string 1</GradeName>
  <GradePrice>2</GradePrice>
  <LatestPrice>
    <GetLatestPoProductPriceResult.HistoryPrice>
      <LatestPrice>1</LatestPrice>
      <ModifiedDate>2025-04-04T20:59:08.0138671+08:00</ModifiedDate>
    </GetLatestPoProductPriceResult.HistoryPrice>
    <GetLatestPoProductPriceResult.HistoryPrice>
      <LatestPrice>1</LatestPrice>
      <ModifiedDate>2025-04-04T20:59:08.0138671+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>