POST jxc_api/DDL/BatchProdStockSummary

Request Information

URI Parameters

None.

Body Parameters

Collection of ProdStockSummaryConfig
NameDescriptionTypeAdditional information
prodId

integer

None.

whId

integer

None.

apId

integer

None.

UnitId

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "prodId": 1,
    "whId": 2,
    "apId": 3,
    "UnitId": 4
  },
  {
    "prodId": 1,
    "whId": 2,
    "apId": 3,
    "UnitId": 4
  }
]

application/xml, text/xml

Sample:
<ArrayOfProdStockSummaryConfig xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Framework.Controllers">
  <ProdStockSummaryConfig>
    <UnitId>4</UnitId>
    <apId>3</apId>
    <prodId>1</prodId>
    <whId>2</whId>
  </ProdStockSummaryConfig>
  <ProdStockSummaryConfig>
    <UnitId>4</UnitId>
    <apId>3</apId>
    <prodId>1</prodId>
    <whId>2</whId>
  </ProdStockSummaryConfig>
</ArrayOfProdStockSummaryConfig>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of ProdStockSummaryModel
NameDescriptionTypeAdditional information
sumCurrent

decimal number

None.

sumAvailable

decimal number

None.

sumTotal

decimal number

None.

UnitId

integer

None.

UnitName

string

None.

UnitRate

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "sumCurrent": 1.0,
    "sumAvailable": 2.0,
    "sumTotal": 3.0,
    "UnitId": 4,
    "UnitName": "sample string 5",
    "UnitRate": 6.0
  },
  {
    "sumCurrent": 1.0,
    "sumAvailable": 2.0,
    "sumTotal": 3.0,
    "UnitId": 4,
    "UnitName": "sample string 5",
    "UnitRate": 6.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfProdStockSummaryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Framework.Models">
  <ProdStockSummaryModel>
    <UnitId>4</UnitId>
    <UnitName>sample string 5</UnitName>
    <UnitRate>6</UnitRate>
    <sumAvailable>2</sumAvailable>
    <sumCurrent>1</sumCurrent>
    <sumTotal>3</sumTotal>
  </ProdStockSummaryModel>
  <ProdStockSummaryModel>
    <UnitId>4</UnitId>
    <UnitName>sample string 5</UnitName>
    <UnitRate>6</UnitRate>
    <sumAvailable>2</sumAvailable>
    <sumCurrent>1</sumCurrent>
    <sumTotal>3</sumTotal>
  </ProdStockSummaryModel>
</ArrayOfProdStockSummaryModel>