POST jxc_api/Bom/Save

Request Information

URI Parameters

None.

Body Parameters

BomTpEditModel
NameDescriptionTypeAdditional information
TpId

integer

None.

TpNo

string

None.

TpDate

date

None.

Note

string

None.

PreCost

decimal number

None.

IsChecked

integer

None.

CombItem

BomTpeEditModel

None.

AutoGenerate

boolean

None.

SubItems

Collection of BomTpeEditModel

None.

Request Formats

application/json, text/json

Sample:
{
  "TpId": 1,
  "TpNo": "sample string 2",
  "TpDate": "2024-05-03 19:30:25",
  "Note": "sample string 4",
  "PreCost": 5.0,
  "IsChecked": 6,
  "CombItem": {
    "ProdId": 1,
    "ProdName": "sample string 2",
    "Image": "sample string 3",
    "WhId": 4,
    "WhName": "sample string 5",
    "CatId": 6,
    "CatName": "sample string 7",
    "ApId": 8,
    "UnitId": 9,
    "Rate": 10.0,
    "Qty": 11.0,
    "Price": 12.0,
    "Note": "sample string 13",
    "StrValue1": "sample string 14",
    "StrValue2": "sample string 15",
    "StrValue3": "sample string 16",
    "StrValue4": "sample string 17",
    "StrValue5": "sample string 18",
    "StrValue6": "sample string 19",
    "StrValue7": "sample string 20",
    "StrValue8": "sample string 21"
  },
  "AutoGenerate": true,
  "SubItems": [
    {
      "ProdId": 1,
      "ProdName": "sample string 2",
      "Image": "sample string 3",
      "WhId": 4,
      "WhName": "sample string 5",
      "CatId": 6,
      "CatName": "sample string 7",
      "ApId": 8,
      "UnitId": 9,
      "Rate": 10.0,
      "Qty": 11.0,
      "Price": 12.0,
      "Note": "sample string 13",
      "StrValue1": "sample string 14",
      "StrValue2": "sample string 15",
      "StrValue3": "sample string 16",
      "StrValue4": "sample string 17",
      "StrValue5": "sample string 18",
      "StrValue6": "sample string 19",
      "StrValue7": "sample string 20",
      "StrValue8": "sample string 21"
    },
    {
      "ProdId": 1,
      "ProdName": "sample string 2",
      "Image": "sample string 3",
      "WhId": 4,
      "WhName": "sample string 5",
      "CatId": 6,
      "CatName": "sample string 7",
      "ApId": 8,
      "UnitId": 9,
      "Rate": 10.0,
      "Qty": 11.0,
      "Price": 12.0,
      "Note": "sample string 13",
      "StrValue1": "sample string 14",
      "StrValue2": "sample string 15",
      "StrValue3": "sample string 16",
      "StrValue4": "sample string 17",
      "StrValue5": "sample string 18",
      "StrValue6": "sample string 19",
      "StrValue7": "sample string 20",
      "StrValue8": "sample string 21"
    }
  ]
}

application/xml, text/xml

Sample:
<BomTpEditModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.Abstraction.NewApi.Stock">
  <AutoGenerate>true</AutoGenerate>
  <CombItem>
    <ApId>8</ApId>
    <CatId>6</CatId>
    <CatName>sample string 7</CatName>
    <Image>sample string 3</Image>
    <Note>sample string 13</Note>
    <Price>12</Price>
    <ProdId>1</ProdId>
    <ProdName>sample string 2</ProdName>
    <Qty>11</Qty>
    <Rate>10</Rate>
    <StrValue1>sample string 14</StrValue1>
    <StrValue2>sample string 15</StrValue2>
    <StrValue3>sample string 16</StrValue3>
    <StrValue4>sample string 17</StrValue4>
    <StrValue5>sample string 18</StrValue5>
    <StrValue6>sample string 19</StrValue6>
    <StrValue7>sample string 20</StrValue7>
    <StrValue8>sample string 21</StrValue8>
    <UnitId>9</UnitId>
    <WhId>4</WhId>
    <WhName>sample string 5</WhName>
  </CombItem>
  <IsChecked>6</IsChecked>
  <Note>sample string 4</Note>
  <PreCost>5</PreCost>
  <SubItems>
    <BomTpeEditModel>
      <ApId>8</ApId>
      <CatId>6</CatId>
      <CatName>sample string 7</CatName>
      <Image>sample string 3</Image>
      <Note>sample string 13</Note>
      <Price>12</Price>
      <ProdId>1</ProdId>
      <ProdName>sample string 2</ProdName>
      <Qty>11</Qty>
      <Rate>10</Rate>
      <StrValue1>sample string 14</StrValue1>
      <StrValue2>sample string 15</StrValue2>
      <StrValue3>sample string 16</StrValue3>
      <StrValue4>sample string 17</StrValue4>
      <StrValue5>sample string 18</StrValue5>
      <StrValue6>sample string 19</StrValue6>
      <StrValue7>sample string 20</StrValue7>
      <StrValue8>sample string 21</StrValue8>
      <UnitId>9</UnitId>
      <WhId>4</WhId>
      <WhName>sample string 5</WhName>
    </BomTpeEditModel>
    <BomTpeEditModel>
      <ApId>8</ApId>
      <CatId>6</CatId>
      <CatName>sample string 7</CatName>
      <Image>sample string 3</Image>
      <Note>sample string 13</Note>
      <Price>12</Price>
      <ProdId>1</ProdId>
      <ProdName>sample string 2</ProdName>
      <Qty>11</Qty>
      <Rate>10</Rate>
      <StrValue1>sample string 14</StrValue1>
      <StrValue2>sample string 15</StrValue2>
      <StrValue3>sample string 16</StrValue3>
      <StrValue4>sample string 17</StrValue4>
      <StrValue5>sample string 18</StrValue5>
      <StrValue6>sample string 19</StrValue6>
      <StrValue7>sample string 20</StrValue7>
      <StrValue8>sample string 21</StrValue8>
      <UnitId>9</UnitId>
      <WhId>4</WhId>
      <WhName>sample string 5</WhName>
    </BomTpeEditModel>
  </SubItems>
  <TpDate>2024-05-03T19:30:25.7980501+08:00</TpDate>
  <TpId>1</TpId>
  <TpNo>sample string 2</TpNo>
</BomTpEditModel>

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.

Response Formats

application/json, text/json

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

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_Data_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>