POST jxc_api/ProductInitialStock/Update

Request Information

URI Parameters

None.

Body Parameters

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": "2024-11-25 02:48:48",
  "LifeTime": 10,
  "LifeTimeUnitName": "sample string 11",
  "ExpirationDate": "2024-11-25 02:48:48",
  "Amount": 13.0,
  "SerialNoItems": [
    {
      "AsId": 1,
      "FlowId": "sample string 2",
      "BillDirection": 3,
      "BillDate": "2024-11-25 02:48:48",
      "BillType": 1010,
      "BillId": 5,
      "EntryId": 6,
      "SerialNo": "sample string 7",
      "SerialNote": "sample string 8",
      "IsChecked": 9,
      "CheckedDate": "2024-11-25 02:48:48",
      "LastBillDirection": 11,
      "CreatedBy": 12,
      "CreatedDate": "2024-11-25 02:48:48"
    },
    {
      "AsId": 1,
      "FlowId": "sample string 2",
      "BillDirection": 3,
      "BillDate": "2024-11-25 02:48:48",
      "BillType": 1010,
      "BillId": 5,
      "EntryId": 6,
      "SerialNo": "sample string 7",
      "SerialNote": "sample string 8",
      "IsChecked": 9,
      "CheckedDate": "2024-11-25 02:48:48",
      "LastBillDirection": 11,
      "CreatedBy": 12,
      "CreatedDate": "2024-11-25 02:48:48"
    }
  ],
  "SerialEnabled": true,
  "IsId": 15
}

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.