POST jxc_api/ProductPriceInfo/Save

Request Information

URI Parameters

None.

Body Parameters

ProdPriceInfoSaveModel
NameDescriptionTypeAdditional information
Infos

Collection of ProductPriceInfoModel

None.

ConvertMultipleUnits

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Infos": [
    {
      "ProdId": 1,
      "ApId": 2,
      "UnitId": 3,
      "UseMultiUnits": true,
      "UseAp": true,
      "ProdName": "sample string 6",
      "ProdNo": "sample string 7",
      "ApName": "sample string 8",
      "UnitName": "sample string 9",
      "Spec": "sample string 10",
      "Location": "sample string 11",
      "Brand": "sample string 12",
      "ProdCatName": "sample string 13",
      "CreatedByName": "sample string 14",
      "ModifiedTime": "sample string 15",
      "ModifiedDate": "2024-05-03 22:32:02",
      "PricePur": 17.0,
      "PriceRetail": 18.0,
      "PriceWholeSale": 19.0,
      "PriceVip": 20.0,
      "PriceMinSell": 21.0,
      "PriceNewestSell": 22.0,
      "SellBillId": 23,
      "SellBillType": 24,
      "SellBillDate": "sample string 25",
      "PriceMaxPur": 26.0,
      "PriceNewestPur": 27.0,
      "PurBillId": 28,
      "PurBillType": 29,
      "PurBillDate": "sample string 30",
      "SerialEnabled": true,
      "Prices": [
        {
          "ProdId": 1,
          "LevelId": 2,
          "LevelName": "sample string 3",
          "Price": "sample string 4",
          "UnitId": 5,
          "ApId": 6
        },
        {
          "ProdId": 1,
          "LevelId": 2,
          "LevelName": "sample string 3",
          "Price": "sample string 4",
          "UnitId": 5,
          "ApId": 6
        }
      ]
    },
    {
      "ProdId": 1,
      "ApId": 2,
      "UnitId": 3,
      "UseMultiUnits": true,
      "UseAp": true,
      "ProdName": "sample string 6",
      "ProdNo": "sample string 7",
      "ApName": "sample string 8",
      "UnitName": "sample string 9",
      "Spec": "sample string 10",
      "Location": "sample string 11",
      "Brand": "sample string 12",
      "ProdCatName": "sample string 13",
      "CreatedByName": "sample string 14",
      "ModifiedTime": "sample string 15",
      "ModifiedDate": "2024-05-03 22:32:02",
      "PricePur": 17.0,
      "PriceRetail": 18.0,
      "PriceWholeSale": 19.0,
      "PriceVip": 20.0,
      "PriceMinSell": 21.0,
      "PriceNewestSell": 22.0,
      "SellBillId": 23,
      "SellBillType": 24,
      "SellBillDate": "sample string 25",
      "PriceMaxPur": 26.0,
      "PriceNewestPur": 27.0,
      "PurBillId": 28,
      "PurBillType": 29,
      "PurBillDate": "sample string 30",
      "SerialEnabled": true,
      "Prices": [
        {
          "ProdId": 1,
          "LevelId": 2,
          "LevelName": "sample string 3",
          "Price": "sample string 4",
          "UnitId": 5,
          "ApId": 6
        },
        {
          "ProdId": 1,
          "LevelId": 2,
          "LevelName": "sample string 3",
          "Price": "sample string 4",
          "UnitId": 5,
          "ApId": 6
        }
      ]
    }
  ],
  "ConvertMultipleUnits": true
}

application/xml, text/xml

Sample:
<ProdPriceInfoSaveModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.Abstraction.NewApi.BaseData.ProductPriceInfo">
  <ConvertMultipleUnits>true</ConvertMultipleUnits>
  <Infos>
    <ProductPriceInfoModel>
      <ApId>2</ApId>
      <ApName>sample string 8</ApName>
      <Brand>sample string 12</Brand>
      <CreatedByName>sample string 14</CreatedByName>
      <Location>sample string 11</Location>
      <ModifiedDate>2024-05-03T22:32:02.6937885+08:00</ModifiedDate>
      <ModifiedTime>sample string 15</ModifiedTime>
      <PriceMaxPur>26</PriceMaxPur>
      <PriceMinSell>21</PriceMinSell>
      <PriceNewestPur>27</PriceNewestPur>
      <PriceNewestSell>22</PriceNewestSell>
      <PricePur>17</PricePur>
      <PriceRetail>18</PriceRetail>
      <PriceVip>20</PriceVip>
      <PriceWholeSale>19</PriceWholeSale>
      <Prices xmlns:d4p1="http://schemas.datacontract.org/2004/07/LemonScm.Model.Abstraction.NewApi.BaseData.Product">
        <d4p1:ProductPriceSimpleModel>
          <d4p1:ApId>6</d4p1:ApId>
          <d4p1:LevelId>2</d4p1:LevelId>
          <d4p1:LevelName>sample string 3</d4p1:LevelName>
          <d4p1:Price>sample string 4</d4p1:Price>
          <d4p1:ProdId>1</d4p1:ProdId>
          <d4p1:UnitId>5</d4p1:UnitId>
        </d4p1:ProductPriceSimpleModel>
        <d4p1:ProductPriceSimpleModel>
          <d4p1:ApId>6</d4p1:ApId>
          <d4p1:LevelId>2</d4p1:LevelId>
          <d4p1:LevelName>sample string 3</d4p1:LevelName>
          <d4p1:Price>sample string 4</d4p1:Price>
          <d4p1:ProdId>1</d4p1:ProdId>
          <d4p1:UnitId>5</d4p1:UnitId>
        </d4p1:ProductPriceSimpleModel>
      </Prices>
      <ProdCatName>sample string 13</ProdCatName>
      <ProdId>1</ProdId>
      <ProdName>sample string 6</ProdName>
      <ProdNo>sample string 7</ProdNo>
      <PurBillDate>sample string 30</PurBillDate>
      <PurBillId>28</PurBillId>
      <PurBillType>29</PurBillType>
      <SellBillDate>sample string 25</SellBillDate>
      <SellBillId>23</SellBillId>
      <SellBillType>24</SellBillType>
      <SerialEnabled>true</SerialEnabled>
      <Spec>sample string 10</Spec>
      <UnitId>3</UnitId>
      <UnitName>sample string 9</UnitName>
      <UseAp>true</UseAp>
      <UseMultiUnits>true</UseMultiUnits>
    </ProductPriceInfoModel>
    <ProductPriceInfoModel>
      <ApId>2</ApId>
      <ApName>sample string 8</ApName>
      <Brand>sample string 12</Brand>
      <CreatedByName>sample string 14</CreatedByName>
      <Location>sample string 11</Location>
      <ModifiedDate>2024-05-03T22:32:02.6937885+08:00</ModifiedDate>
      <ModifiedTime>sample string 15</ModifiedTime>
      <PriceMaxPur>26</PriceMaxPur>
      <PriceMinSell>21</PriceMinSell>
      <PriceNewestPur>27</PriceNewestPur>
      <PriceNewestSell>22</PriceNewestSell>
      <PricePur>17</PricePur>
      <PriceRetail>18</PriceRetail>
      <PriceVip>20</PriceVip>
      <PriceWholeSale>19</PriceWholeSale>
      <Prices xmlns:d4p1="http://schemas.datacontract.org/2004/07/LemonScm.Model.Abstraction.NewApi.BaseData.Product">
        <d4p1:ProductPriceSimpleModel>
          <d4p1:ApId>6</d4p1:ApId>
          <d4p1:LevelId>2</d4p1:LevelId>
          <d4p1:LevelName>sample string 3</d4p1:LevelName>
          <d4p1:Price>sample string 4</d4p1:Price>
          <d4p1:ProdId>1</d4p1:ProdId>
          <d4p1:UnitId>5</d4p1:UnitId>
        </d4p1:ProductPriceSimpleModel>
        <d4p1:ProductPriceSimpleModel>
          <d4p1:ApId>6</d4p1:ApId>
          <d4p1:LevelId>2</d4p1:LevelId>
          <d4p1:LevelName>sample string 3</d4p1:LevelName>
          <d4p1:Price>sample string 4</d4p1:Price>
          <d4p1:ProdId>1</d4p1:ProdId>
          <d4p1:UnitId>5</d4p1:UnitId>
        </d4p1:ProductPriceSimpleModel>
      </Prices>
      <ProdCatName>sample string 13</ProdCatName>
      <ProdId>1</ProdId>
      <ProdName>sample string 6</ProdName>
      <ProdNo>sample string 7</ProdNo>
      <PurBillDate>sample string 30</PurBillDate>
      <PurBillId>28</PurBillId>
      <PurBillType>29</PurBillType>
      <SellBillDate>sample string 25</SellBillDate>
      <SellBillId>23</SellBillId>
      <SellBillType>24</SellBillType>
      <SerialEnabled>true</SerialEnabled>
      <Spec>sample string 10</Spec>
      <UnitId>3</UnitId>
      <UnitName>sample string 9</UnitName>
      <UseAp>true</UseAp>
      <UseMultiUnits>true</UseMultiUnits>
    </ProductPriceInfoModel>
  </Infos>
</ProdPriceInfoSaveModel>

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>