POST jxc_api/ProductInitialStock/BatchUpdate

Request Information

URI Parameters

None.

Body Parameters

Collection of ProductInitialStockEditModel
NameDescriptionTypeAdditional information
Id

integer

None.

ProdId

integer

None.

Spec

string

None.

ApId

integer

None.

WhId

integer

None.

QTY

decimal number

None.

Price

decimal number

None.

BatchNo

string

None.

ProductionDate

date

None.

LifeTime

integer

None.

LifeTimeUnitName

string

None.

ExpirationDate

date

None.

Amount

decimal number

None.

SerialNoItems

Collection of ProductSerialNoDbModel

None.

SerialEnabled

boolean

None.

IsId

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "ProdId": 2,
    "Spec": "sample string 3",
    "ApId": 4,
    "WhId": 5,
    "QTY": 6.0,
    "Price": 7.0,
    "BatchNo": "sample string 8",
    "ProductionDate": "2025-04-04 20:54:32",
    "LifeTime": 10,
    "LifeTimeUnitName": "sample string 11",
    "ExpirationDate": "2025-04-04 20:54:32",
    "Amount": 13.0,
    "SerialNoItems": [
      {
        "AsId": 1,
        "FlowId": "sample string 2",
        "BillDirection": 3,
        "BillDate": "2025-04-04 20:54:32",
        "BillType": 1010,
        "BillId": 5,
        "EntryId": 6,
        "SerialNo": "sample string 7",
        "SerialNote": "sample string 8",
        "IsChecked": 9,
        "CheckedDate": "2025-04-04 20:54:32",
        "LastBillDirection": 11,
        "CreatedBy": 12,
        "CreatedDate": "2025-04-04 20:54:32"
      },
      {
        "AsId": 1,
        "FlowId": "sample string 2",
        "BillDirection": 3,
        "BillDate": "2025-04-04 20:54:32",
        "BillType": 1010,
        "BillId": 5,
        "EntryId": 6,
        "SerialNo": "sample string 7",
        "SerialNote": "sample string 8",
        "IsChecked": 9,
        "CheckedDate": "2025-04-04 20:54:32",
        "LastBillDirection": 11,
        "CreatedBy": 12,
        "CreatedDate": "2025-04-04 20:54:32"
      }
    ],
    "SerialEnabled": true,
    "IsId": 15
  },
  {
    "Id": 1,
    "ProdId": 2,
    "Spec": "sample string 3",
    "ApId": 4,
    "WhId": 5,
    "QTY": 6.0,
    "Price": 7.0,
    "BatchNo": "sample string 8",
    "ProductionDate": "2025-04-04 20:54:32",
    "LifeTime": 10,
    "LifeTimeUnitName": "sample string 11",
    "ExpirationDate": "2025-04-04 20:54:32",
    "Amount": 13.0,
    "SerialNoItems": [
      {
        "AsId": 1,
        "FlowId": "sample string 2",
        "BillDirection": 3,
        "BillDate": "2025-04-04 20:54:32",
        "BillType": 1010,
        "BillId": 5,
        "EntryId": 6,
        "SerialNo": "sample string 7",
        "SerialNote": "sample string 8",
        "IsChecked": 9,
        "CheckedDate": "2025-04-04 20:54:32",
        "LastBillDirection": 11,
        "CreatedBy": 12,
        "CreatedDate": "2025-04-04 20:54:32"
      },
      {
        "AsId": 1,
        "FlowId": "sample string 2",
        "BillDirection": 3,
        "BillDate": "2025-04-04 20:54:32",
        "BillType": 1010,
        "BillId": 5,
        "EntryId": 6,
        "SerialNo": "sample string 7",
        "SerialNote": "sample string 8",
        "IsChecked": 9,
        "CheckedDate": "2025-04-04 20:54:32",
        "LastBillDirection": 11,
        "CreatedBy": 12,
        "CreatedDate": "2025-04-04 20:54:32"
      }
    ],
    "SerialEnabled": true,
    "IsId": 15
  }
]

application/xml, text/xml

Sample:
<ArrayOfProductInitialStockEditModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.Setting.Product">
  <ProductInitialStockEditModel>
    <Amount>13</Amount>
    <ApId>4</ApId>
    <BatchNo>sample string 8</BatchNo>
    <ExpirationDate>2025-04-04T20:54:32.7958044+08:00</ExpirationDate>
    <Id>1</Id>
    <IsId>15</IsId>
    <LifeTime>10</LifeTime>
    <LifeTimeUnitName>sample string 11</LifeTimeUnitName>
    <Price>7</Price>
    <ProdId>2</ProdId>
    <ProductionDate>2025-04-04T20:54:32.7958044+08:00</ProductionDate>
    <QTY>6</QTY>
    <SerialEnabled>true</SerialEnabled>
    <SerialNoItems xmlns:d3p1="http://schemas.datacontract.org/2004/07/LemonScm.Model.Abstraction.NewApi.DbModels.Shared">
      <d3p1:ProductSerialNoDbModel>
        <d3p1:_x003C_AsId_x003E_k__BackingField>1</d3p1:_x003C_AsId_x003E_k__BackingField>
        <d3p1:_x003C_BillDate_x003E_k__BackingField>2025-04-04T20:54:32.7958044+08:00</d3p1:_x003C_BillDate_x003E_k__BackingField>
        <d3p1:_x003C_BillDirection_x003E_k__BackingField>3</d3p1:_x003C_BillDirection_x003E_k__BackingField>
        <d3p1:_x003C_BillId_x003E_k__BackingField>5</d3p1:_x003C_BillId_x003E_k__BackingField>
        <d3p1:_x003C_BillType_x003E_k__BackingField>Purchase</d3p1:_x003C_BillType_x003E_k__BackingField>
        <d3p1:_x003C_CheckedDate_x003E_k__BackingField>2025-04-04T20:54:32.7958044+08:00</d3p1:_x003C_CheckedDate_x003E_k__BackingField>
        <d3p1:_x003C_CreatedBy_x003E_k__BackingField>12</d3p1:_x003C_CreatedBy_x003E_k__BackingField>
        <d3p1:_x003C_CreatedDate_x003E_k__BackingField>2025-04-04T20:54:32.7958044+08:00</d3p1:_x003C_CreatedDate_x003E_k__BackingField>
        <d3p1:_x003C_EntryId_x003E_k__BackingField>6</d3p1:_x003C_EntryId_x003E_k__BackingField>
        <d3p1:_x003C_FlowId_x003E_k__BackingField>sample string 2</d3p1:_x003C_FlowId_x003E_k__BackingField>
        <d3p1:_x003C_IsChecked_x003E_k__BackingField>9</d3p1:_x003C_IsChecked_x003E_k__BackingField>
        <d3p1:_x003C_LastBillDirection_x003E_k__BackingField>11</d3p1:_x003C_LastBillDirection_x003E_k__BackingField>
        <d3p1:_x003C_SerialNo_x003E_k__BackingField>sample string 7</d3p1:_x003C_SerialNo_x003E_k__BackingField>
        <d3p1:_x003C_SerialNote_x003E_k__BackingField>sample string 8</d3p1:_x003C_SerialNote_x003E_k__BackingField>
      </d3p1:ProductSerialNoDbModel>
      <d3p1:ProductSerialNoDbModel>
        <d3p1:_x003C_AsId_x003E_k__BackingField>1</d3p1:_x003C_AsId_x003E_k__BackingField>
        <d3p1:_x003C_BillDate_x003E_k__BackingField>2025-04-04T20:54:32.7958044+08:00</d3p1:_x003C_BillDate_x003E_k__BackingField>
        <d3p1:_x003C_BillDirection_x003E_k__BackingField>3</d3p1:_x003C_BillDirection_x003E_k__BackingField>
        <d3p1:_x003C_BillId_x003E_k__BackingField>5</d3p1:_x003C_BillId_x003E_k__BackingField>
        <d3p1:_x003C_BillType_x003E_k__BackingField>Purchase</d3p1:_x003C_BillType_x003E_k__BackingField>
        <d3p1:_x003C_CheckedDate_x003E_k__BackingField>2025-04-04T20:54:32.7958044+08:00</d3p1:_x003C_CheckedDate_x003E_k__BackingField>
        <d3p1:_x003C_CreatedBy_x003E_k__BackingField>12</d3p1:_x003C_CreatedBy_x003E_k__BackingField>
        <d3p1:_x003C_CreatedDate_x003E_k__BackingField>2025-04-04T20:54:32.7958044+08:00</d3p1:_x003C_CreatedDate_x003E_k__BackingField>
        <d3p1:_x003C_EntryId_x003E_k__BackingField>6</d3p1:_x003C_EntryId_x003E_k__BackingField>
        <d3p1:_x003C_FlowId_x003E_k__BackingField>sample string 2</d3p1:_x003C_FlowId_x003E_k__BackingField>
        <d3p1:_x003C_IsChecked_x003E_k__BackingField>9</d3p1:_x003C_IsChecked_x003E_k__BackingField>
        <d3p1:_x003C_LastBillDirection_x003E_k__BackingField>11</d3p1:_x003C_LastBillDirection_x003E_k__BackingField>
        <d3p1:_x003C_SerialNo_x003E_k__BackingField>sample string 7</d3p1:_x003C_SerialNo_x003E_k__BackingField>
        <d3p1:_x003C_SerialNote_x003E_k__BackingField>sample string 8</d3p1:_x003C_SerialNote_x003E_k__BackingField>
      </d3p1:ProductSerialNoDbModel>
    </SerialNoItems>
    <Spec>sample string 3</Spec>
    <WhId>5</WhId>
  </ProductInitialStockEditModel>
  <ProductInitialStockEditModel>
    <Amount>13</Amount>
    <ApId>4</ApId>
    <BatchNo>sample string 8</BatchNo>
    <ExpirationDate>2025-04-04T20:54:32.7958044+08:00</ExpirationDate>
    <Id>1</Id>
    <IsId>15</IsId>
    <LifeTime>10</LifeTime>
    <LifeTimeUnitName>sample string 11</LifeTimeUnitName>
    <Price>7</Price>
    <ProdId>2</ProdId>
    <ProductionDate>2025-04-04T20:54:32.7958044+08:00</ProductionDate>
    <QTY>6</QTY>
    <SerialEnabled>true</SerialEnabled>
    <SerialNoItems xmlns:d3p1="http://schemas.datacontract.org/2004/07/LemonScm.Model.Abstraction.NewApi.DbModels.Shared">
      <d3p1:ProductSerialNoDbModel>
        <d3p1:_x003C_AsId_x003E_k__BackingField>1</d3p1:_x003C_AsId_x003E_k__BackingField>
        <d3p1:_x003C_BillDate_x003E_k__BackingField>2025-04-04T20:54:32.7958044+08:00</d3p1:_x003C_BillDate_x003E_k__BackingField>
        <d3p1:_x003C_BillDirection_x003E_k__BackingField>3</d3p1:_x003C_BillDirection_x003E_k__BackingField>
        <d3p1:_x003C_BillId_x003E_k__BackingField>5</d3p1:_x003C_BillId_x003E_k__BackingField>
        <d3p1:_x003C_BillType_x003E_k__BackingField>Purchase</d3p1:_x003C_BillType_x003E_k__BackingField>
        <d3p1:_x003C_CheckedDate_x003E_k__BackingField>2025-04-04T20:54:32.7958044+08:00</d3p1:_x003C_CheckedDate_x003E_k__BackingField>
        <d3p1:_x003C_CreatedBy_x003E_k__BackingField>12</d3p1:_x003C_CreatedBy_x003E_k__BackingField>
        <d3p1:_x003C_CreatedDate_x003E_k__BackingField>2025-04-04T20:54:32.7958044+08:00</d3p1:_x003C_CreatedDate_x003E_k__BackingField>
        <d3p1:_x003C_EntryId_x003E_k__BackingField>6</d3p1:_x003C_EntryId_x003E_k__BackingField>
        <d3p1:_x003C_FlowId_x003E_k__BackingField>sample string 2</d3p1:_x003C_FlowId_x003E_k__BackingField>
        <d3p1:_x003C_IsChecked_x003E_k__BackingField>9</d3p1:_x003C_IsChecked_x003E_k__BackingField>
        <d3p1:_x003C_LastBillDirection_x003E_k__BackingField>11</d3p1:_x003C_LastBillDirection_x003E_k__BackingField>
        <d3p1:_x003C_SerialNo_x003E_k__BackingField>sample string 7</d3p1:_x003C_SerialNo_x003E_k__BackingField>
        <d3p1:_x003C_SerialNote_x003E_k__BackingField>sample string 8</d3p1:_x003C_SerialNote_x003E_k__BackingField>
      </d3p1:ProductSerialNoDbModel>
      <d3p1:ProductSerialNoDbModel>
        <d3p1:_x003C_AsId_x003E_k__BackingField>1</d3p1:_x003C_AsId_x003E_k__BackingField>
        <d3p1:_x003C_BillDate_x003E_k__BackingField>2025-04-04T20:54:32.7958044+08:00</d3p1:_x003C_BillDate_x003E_k__BackingField>
        <d3p1:_x003C_BillDirection_x003E_k__BackingField>3</d3p1:_x003C_BillDirection_x003E_k__BackingField>
        <d3p1:_x003C_BillId_x003E_k__BackingField>5</d3p1:_x003C_BillId_x003E_k__BackingField>
        <d3p1:_x003C_BillType_x003E_k__BackingField>Purchase</d3p1:_x003C_BillType_x003E_k__BackingField>
        <d3p1:_x003C_CheckedDate_x003E_k__BackingField>2025-04-04T20:54:32.7958044+08:00</d3p1:_x003C_CheckedDate_x003E_k__BackingField>
        <d3p1:_x003C_CreatedBy_x003E_k__BackingField>12</d3p1:_x003C_CreatedBy_x003E_k__BackingField>
        <d3p1:_x003C_CreatedDate_x003E_k__BackingField>2025-04-04T20:54:32.7958044+08:00</d3p1:_x003C_CreatedDate_x003E_k__BackingField>
        <d3p1:_x003C_EntryId_x003E_k__BackingField>6</d3p1:_x003C_EntryId_x003E_k__BackingField>
        <d3p1:_x003C_FlowId_x003E_k__BackingField>sample string 2</d3p1:_x003C_FlowId_x003E_k__BackingField>
        <d3p1:_x003C_IsChecked_x003E_k__BackingField>9</d3p1:_x003C_IsChecked_x003E_k__BackingField>
        <d3p1:_x003C_LastBillDirection_x003E_k__BackingField>11</d3p1:_x003C_LastBillDirection_x003E_k__BackingField>
        <d3p1:_x003C_SerialNo_x003E_k__BackingField>sample string 7</d3p1:_x003C_SerialNo_x003E_k__BackingField>
        <d3p1:_x003C_SerialNote_x003E_k__BackingField>sample string 8</d3p1:_x003C_SerialNote_x003E_k__BackingField>
      </d3p1:ProductSerialNoDbModel>
    </SerialNoItems>
    <Spec>sample string 3</Spec>
    <WhId>5</WhId>
  </ProductInitialStockEditModel>
</ArrayOfProductInitialStockEditModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MessageModel
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Data

Object

None.

StatusCode

StatusCode

None.

ErrorData

Object

None.

BusinessCode

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Data": {},
  "StatusCode": 100,
  "ErrorData": {},
  "BusinessCode": 5
}

application/xml, text/xml

Sample:
<MessageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model">
  <_x003C_BusinessCode_x003E_k__BackingField>5</_x003C_BusinessCode_x003E_k__BackingField>
  <_x003C_Data_x003E_k__BackingField />
  <_x003C_ErrorData_x003E_k__BackingField />
  <_x003C_Message_x003E_k__BackingField>sample string 2</_x003C_Message_x003E_k__BackingField>
  <_x003C_StatusCode_x003E_k__BackingField>CONTINUE</_x003C_StatusCode_x003E_k__BackingField>
  <_x003C_Success_x003E_k__BackingField>true</_x003C_Success_x003E_k__BackingField>
</MessageModel>