POST api/Chemistry/Update?api={api}&id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
api

string

Required

id

string

Default value is

Body Parameters

ChemistryModel
NameDescriptionTypeAdditional information
id

string

None.

idkey

string

None.

idpartner

string

None.

idbrandpartner

string

None.

idcate

string

None.

codecate

string

None.

namecate

string

None.

codeinsurance

string

None.

nameinsurance

string

None.

code

string

None.

name

string

None.

idunit

string

None.

nameunit

string

None.

idunituse

string

None.

nameunituse

string

None.

idunitbuy

string

None.

nameunitbuy

string

None.

qtychange

decimal number

None.

idcapacity

string

None.

namecapacity

string

None.

qtycapacity

decimal number

None.

idmodelservice

integer

None.

namemodelservice

string

None.

idehc

integer

None.

codeehc

string

None.

qty

decimal number

None.

qtyavailable

decimal number

None.

qtyhight

decimal number

None.

qtylow

decimal number

None.

idsubject

string

None.

namesubject

string

None.

ordering

integer

None.

isdiscount

boolean

None.

ischange

boolean

None.

isdestroy

boolean

None.

isbold

boolean

None.

isinvoice

boolean

None.

notuse

boolean

None.

datecreate

string

None.

idcreate

string

None.

codecreate

string

None.

namecreate

string

None.

dateedit

string

None.

idedit

string

None.

codeedit

string

None.

nameedit

string

None.

lstprice

Collection of PriceTotalAdd

None.

lstbonus

Collection of BonusTotalAdd

None.

lstbrand

Collection of ListBrand

None.

cost

decimal number

None.

tax

decimal number

None.

priceimport

decimal number

None.

taximport

decimal number

None.

rate

Tỷ lệ % bảo hiểm thanh toán

decimal number

None.

phamvi

Phạm vi (1- BHYT Chi trả, 2- Ngoài BHYT, 3 - NgoaifBHYT trừ các đối tượng quân đội, công an)

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "sample string 1",
  "idkey": "sample string 2",
  "idpartner": "sample string 3",
  "idbrandpartner": "sample string 4",
  "idcate": "sample string 5",
  "codecate": "sample string 6",
  "namecate": "sample string 7",
  "codeinsurance": "sample string 8",
  "nameinsurance": "sample string 9",
  "code": "sample string 10",
  "name": "sample string 11",
  "idunit": "sample string 12",
  "nameunit": "sample string 13",
  "idunituse": "sample string 14",
  "nameunituse": "sample string 15",
  "idunitbuy": "sample string 16",
  "nameunitbuy": "sample string 17",
  "qtychange": 1.1,
  "idcapacity": "sample string 18",
  "namecapacity": "sample string 19",
  "qtycapacity": 1.1,
  "idmodelservice": 1,
  "namemodelservice": "sample string 20",
  "idehc": 1,
  "codeehc": "sample string 21",
  "qty": 1.1,
  "qtyavailable": 1.1,
  "qtyhight": 1.1,
  "qtylow": 1.1,
  "idsubject": "sample string 22",
  "namesubject": "sample string 23",
  "ordering": 1,
  "isdiscount": true,
  "ischange": true,
  "isdestroy": true,
  "isbold": true,
  "isinvoice": true,
  "notuse": true,
  "datecreate": "sample string 24",
  "idcreate": "sample string 25",
  "codecreate": "sample string 26",
  "namecreate": "sample string 27",
  "dateedit": "sample string 28",
  "idedit": "sample string 29",
  "codeedit": "sample string 30",
  "nameedit": "sample string 31",
  "lstprice": [
    {
      "id": "sample string 1",
      "idkey": "sample string 2",
      "idpartner": "sample string 3",
      "idbrandpartner": "sample string 4",
      "idmodelservice": 1,
      "namemodelservice": "sample string 5",
      "idproduct": "sample string 6",
      "wholesale": 1.1,
      "priceinsure": 1.1,
      "surchargeinsure": 1.1,
      "pricefee": 1.1,
      "surchargefee": 1.1,
      "price": 1.1,
      "surchargeprice": 1.1,
      "pricesend": 1.1,
      "surchargesend": 1.1,
      "pricecheck": 1.1,
      "surchargecheck": 1.1,
      "tax": 1.1,
      "isdefault": true,
      "fromdate": "sample string 7",
      "todate": "sample string 8",
      "notuse": true,
      "datecreate": "sample string 9",
      "idcreate": "sample string 10",
      "codecreate": "sample string 11",
      "namecreate": "sample string 12",
      "dateedit": "sample string 13",
      "idedit": "sample string 14",
      "codeedit": "sample string 15",
      "nameedit": "sample string 16",
      "nameunit": "sample string 17",
      "nameunitbuy": "sample string 18",
      "fulltime": 1,
      "totime": 1
    },
    {
      "id": "sample string 1",
      "idkey": "sample string 2",
      "idpartner": "sample string 3",
      "idbrandpartner": "sample string 4",
      "idmodelservice": 1,
      "namemodelservice": "sample string 5",
      "idproduct": "sample string 6",
      "wholesale": 1.1,
      "priceinsure": 1.1,
      "surchargeinsure": 1.1,
      "pricefee": 1.1,
      "surchargefee": 1.1,
      "price": 1.1,
      "surchargeprice": 1.1,
      "pricesend": 1.1,
      "surchargesend": 1.1,
      "pricecheck": 1.1,
      "surchargecheck": 1.1,
      "tax": 1.1,
      "isdefault": true,
      "fromdate": "sample string 7",
      "todate": "sample string 8",
      "notuse": true,
      "datecreate": "sample string 9",
      "idcreate": "sample string 10",
      "codecreate": "sample string 11",
      "namecreate": "sample string 12",
      "dateedit": "sample string 13",
      "idedit": "sample string 14",
      "codeedit": "sample string 15",
      "nameedit": "sample string 16",
      "nameunit": "sample string 17",
      "nameunitbuy": "sample string 18",
      "fulltime": 1,
      "totime": 1
    }
  ],
  "lstbonus": [
    {
      "id": "sample string 1",
      "idkey": "sample string 2",
      "idpartner": "sample string 3",
      "idbrandpartner": "sample string 4",
      "idproduct": "sample string 5",
      "rateabout": 1.1,
      "rateadoctor": 1.1,
      "ratenurse": 1.1,
      "ratetechnical": 1.1,
      "ratesale": 1.1,
      "ratevote": 1.1,
      "ratereception": 1.1,
      "idmodelservice": 1,
      "namemodelservice": "sample string 6",
      "isdefault": true,
      "fromdate": 1,
      "todate": 1,
      "notuse": true,
      "datecreate": "sample string 7",
      "idcreate": "sample string 8",
      "codecreate": "sample string 9",
      "namecreate": "sample string 10",
      "dateedit": "sample string 11",
      "idedit": "sample string 12",
      "codeedit": "sample string 13",
      "nameedit": "sample string 14"
    },
    {
      "id": "sample string 1",
      "idkey": "sample string 2",
      "idpartner": "sample string 3",
      "idbrandpartner": "sample string 4",
      "idproduct": "sample string 5",
      "rateabout": 1.1,
      "rateadoctor": 1.1,
      "ratenurse": 1.1,
      "ratetechnical": 1.1,
      "ratesale": 1.1,
      "ratevote": 1.1,
      "ratereception": 1.1,
      "idmodelservice": 1,
      "namemodelservice": "sample string 6",
      "isdefault": true,
      "fromdate": 1,
      "todate": 1,
      "notuse": true,
      "datecreate": "sample string 7",
      "idcreate": "sample string 8",
      "codecreate": "sample string 9",
      "namecreate": "sample string 10",
      "dateedit": "sample string 11",
      "idedit": "sample string 12",
      "codeedit": "sample string 13",
      "nameedit": "sample string 14"
    }
  ],
  "lstbrand": [
    {
      "id": "sample string 1",
      "idpartner": "sample string 2",
      "idproduct": "sample string 3",
      "idbrand": "sample string 4",
      "namabrand": "sample string 5"
    },
    {
      "id": "sample string 1",
      "idpartner": "sample string 2",
      "idproduct": "sample string 3",
      "idbrand": "sample string 4",
      "namabrand": "sample string 5"
    }
  ],
  "cost": 1.1,
  "tax": 1.1,
  "priceimport": 1.1,
  "taximport": 1.1,
  "rate": 1.1,
  "phamvi": 1
}

application/xml, text/xml

Sample:
<ChemistryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APISMART.Models.Category">
  <code>sample string 10</code>
  <codecate>sample string 6</codecate>
  <codecreate>sample string 26</codecreate>
  <codeedit>sample string 30</codeedit>
  <codeehc>sample string 21</codeehc>
  <codeinsurance>sample string 8</codeinsurance>
  <cost>1.1</cost>
  <datecreate>sample string 24</datecreate>
  <dateedit>sample string 28</dateedit>
  <id>sample string 1</id>
  <idbrandpartner>sample string 4</idbrandpartner>
  <idcapacity>sample string 18</idcapacity>
  <idcate>sample string 5</idcate>
  <idcreate>sample string 25</idcreate>
  <idedit>sample string 29</idedit>
  <idehc>1</idehc>
  <idkey>sample string 2</idkey>
  <idmodelservice>1</idmodelservice>
  <idpartner>sample string 3</idpartner>
  <idsubject>sample string 22</idsubject>
  <idunit>sample string 12</idunit>
  <idunitbuy>sample string 16</idunitbuy>
  <idunituse>sample string 14</idunituse>
  <isbold>true</isbold>
  <ischange>true</ischange>
  <isdestroy>true</isdestroy>
  <isdiscount>true</isdiscount>
  <isinvoice>true</isinvoice>
  <lstbonus>
    <BonusTotalAdd>
      <codecreate>sample string 9</codecreate>
      <codeedit>sample string 13</codeedit>
      <datecreate>sample string 7</datecreate>
      <dateedit>sample string 11</dateedit>
      <fromdate>1</fromdate>
      <id>sample string 1</id>
      <idbrandpartner>sample string 4</idbrandpartner>
      <idcreate>sample string 8</idcreate>
      <idedit>sample string 12</idedit>
      <idkey>sample string 2</idkey>
      <idmodelservice>1</idmodelservice>
      <idpartner>sample string 3</idpartner>
      <idproduct>sample string 5</idproduct>
      <isdefault>true</isdefault>
      <namecreate>sample string 10</namecreate>
      <nameedit>sample string 14</nameedit>
      <namemodelservice>sample string 6</namemodelservice>
      <notuse>true</notuse>
      <rateabout>1.1</rateabout>
      <rateadoctor>1.1</rateadoctor>
      <ratenurse>1.1</ratenurse>
      <ratereception>1.1</ratereception>
      <ratesale>1.1</ratesale>
      <ratetechnical>1.1</ratetechnical>
      <ratevote>1.1</ratevote>
      <todate>1</todate>
    </BonusTotalAdd>
    <BonusTotalAdd>
      <codecreate>sample string 9</codecreate>
      <codeedit>sample string 13</codeedit>
      <datecreate>sample string 7</datecreate>
      <dateedit>sample string 11</dateedit>
      <fromdate>1</fromdate>
      <id>sample string 1</id>
      <idbrandpartner>sample string 4</idbrandpartner>
      <idcreate>sample string 8</idcreate>
      <idedit>sample string 12</idedit>
      <idkey>sample string 2</idkey>
      <idmodelservice>1</idmodelservice>
      <idpartner>sample string 3</idpartner>
      <idproduct>sample string 5</idproduct>
      <isdefault>true</isdefault>
      <namecreate>sample string 10</namecreate>
      <nameedit>sample string 14</nameedit>
      <namemodelservice>sample string 6</namemodelservice>
      <notuse>true</notuse>
      <rateabout>1.1</rateabout>
      <rateadoctor>1.1</rateadoctor>
      <ratenurse>1.1</ratenurse>
      <ratereception>1.1</ratereception>
      <ratesale>1.1</ratesale>
      <ratetechnical>1.1</ratetechnical>
      <ratevote>1.1</ratevote>
      <todate>1</todate>
    </BonusTotalAdd>
  </lstbonus>
  <lstbrand>
    <ListBrand>
      <id>sample string 1</id>
      <idbrand>sample string 4</idbrand>
      <idpartner>sample string 2</idpartner>
      <idproduct>sample string 3</idproduct>
      <namabrand>sample string 5</namabrand>
    </ListBrand>
    <ListBrand>
      <id>sample string 1</id>
      <idbrand>sample string 4</idbrand>
      <idpartner>sample string 2</idpartner>
      <idproduct>sample string 3</idproduct>
      <namabrand>sample string 5</namabrand>
    </ListBrand>
  </lstbrand>
  <lstprice>
    <PriceTotalAdd>
      <codecreate>sample string 11</codecreate>
      <codeedit>sample string 15</codeedit>
      <datecreate>sample string 9</datecreate>
      <dateedit>sample string 13</dateedit>
      <fromdate>sample string 7</fromdate>
      <fulltime>1</fulltime>
      <id>sample string 1</id>
      <idbrandpartner>sample string 4</idbrandpartner>
      <idcreate>sample string 10</idcreate>
      <idedit>sample string 14</idedit>
      <idkey>sample string 2</idkey>
      <idmodelservice>1</idmodelservice>
      <idpartner>sample string 3</idpartner>
      <idproduct>sample string 6</idproduct>
      <isdefault>true</isdefault>
      <namecreate>sample string 12</namecreate>
      <nameedit>sample string 16</nameedit>
      <namemodelservice>sample string 5</namemodelservice>
      <nameunit>sample string 17</nameunit>
      <nameunitbuy>sample string 18</nameunitbuy>
      <notuse>true</notuse>
      <price>1.1</price>
      <pricecheck>1.1</pricecheck>
      <pricefee>1.1</pricefee>
      <priceinsure>1.1</priceinsure>
      <pricesend>1.1</pricesend>
      <surchargecheck>1.1</surchargecheck>
      <surchargefee>1.1</surchargefee>
      <surchargeinsure>1.1</surchargeinsure>
      <surchargeprice>1.1</surchargeprice>
      <surchargesend>1.1</surchargesend>
      <tax>1.1</tax>
      <todate>sample string 8</todate>
      <totime>1</totime>
      <wholesale>1.1</wholesale>
    </PriceTotalAdd>
    <PriceTotalAdd>
      <codecreate>sample string 11</codecreate>
      <codeedit>sample string 15</codeedit>
      <datecreate>sample string 9</datecreate>
      <dateedit>sample string 13</dateedit>
      <fromdate>sample string 7</fromdate>
      <fulltime>1</fulltime>
      <id>sample string 1</id>
      <idbrandpartner>sample string 4</idbrandpartner>
      <idcreate>sample string 10</idcreate>
      <idedit>sample string 14</idedit>
      <idkey>sample string 2</idkey>
      <idmodelservice>1</idmodelservice>
      <idpartner>sample string 3</idpartner>
      <idproduct>sample string 6</idproduct>
      <isdefault>true</isdefault>
      <namecreate>sample string 12</namecreate>
      <nameedit>sample string 16</nameedit>
      <namemodelservice>sample string 5</namemodelservice>
      <nameunit>sample string 17</nameunit>
      <nameunitbuy>sample string 18</nameunitbuy>
      <notuse>true</notuse>
      <price>1.1</price>
      <pricecheck>1.1</pricecheck>
      <pricefee>1.1</pricefee>
      <priceinsure>1.1</priceinsure>
      <pricesend>1.1</pricesend>
      <surchargecheck>1.1</surchargecheck>
      <surchargefee>1.1</surchargefee>
      <surchargeinsure>1.1</surchargeinsure>
      <surchargeprice>1.1</surchargeprice>
      <surchargesend>1.1</surchargesend>
      <tax>1.1</tax>
      <todate>sample string 8</todate>
      <totime>1</totime>
      <wholesale>1.1</wholesale>
    </PriceTotalAdd>
  </lstprice>
  <name>sample string 11</name>
  <namecapacity>sample string 19</namecapacity>
  <namecate>sample string 7</namecate>
  <namecreate>sample string 27</namecreate>
  <nameedit>sample string 31</nameedit>
  <nameinsurance>sample string 9</nameinsurance>
  <namemodelservice>sample string 20</namemodelservice>
  <namesubject>sample string 23</namesubject>
  <nameunit>sample string 13</nameunit>
  <nameunitbuy>sample string 17</nameunitbuy>
  <nameunituse>sample string 15</nameunituse>
  <notuse>true</notuse>
  <ordering>1</ordering>
  <phamvi>1</phamvi>
  <priceimport>1.1</priceimport>
  <qty>1.1</qty>
  <qtyavailable>1.1</qtyavailable>
  <qtycapacity>1.1</qtycapacity>
  <qtychange>1.1</qtychange>
  <qtyhight>1.1</qtyhight>
  <qtylow>1.1</qtylow>
  <rate>1.1</rate>
  <tax>1.1</tax>
  <taximport>1.1</taximport>
</ChemistryModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

DataUpdate
NameDescriptionTypeAdditional information
status

string

None.

message

string

None.

id

string

None.

code

string

None.

code1

string

None.

strprint

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": "sample string 1",
  "message": "sample string 2",
  "id": "sample string 3",
  "code": "sample string 4",
  "code1": "sample string 5",
  "strprint": "sample string 6"
}

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"status":"sample string 1","message":"sample string 2","id":"sample string 3","code":"sample string 4","code1":"sample string 5","strprint":"sample string 6"});

application/xml, text/xml

Sample:
<DataUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APISMART.Models">
  <code>sample string 4</code>
  <code1>sample string 5</code1>
  <id>sample string 3</id>
  <message>sample string 2</message>
  <status>sample string 1</status>
  <strprint>sample string 6</strprint>
</DataUpdate>