POST api/InvProducts/InsertUpdateRecord?vUserID={vUserID}&IsOpen={IsOpen}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
vUserID

integer

Required

IsOpen

boolean

Required

Body Parameters

Products
NameDescriptionTypeAdditional information
ProductID

integer

None.

ProductName

string

None.

BrandID

integer

None.

GroupID

integer

None.

PurchasePrice

decimal number

None.

SalePrice

decimal number

None.

DiscPurPerc

decimal number

None.

DiscSalPerc

decimal number

None.

DiscPurVal

decimal number

None.

DiscSalVal

decimal number

None.

SalesTaxPerc

decimal number

None.

PurTaxPerc

decimal number

None.

AccountNo

string

None.

IsBatchProduct

boolean

None.

ExpiryLimit

integer

None.

SaleAccount

string

None.

BrandName

string

None.

GroupName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ProductID": 1,
  "ProductName": "sample string 2",
  "BrandID": 3,
  "GroupID": 4,
  "PurchasePrice": 5.0,
  "SalePrice": 6.0,
  "DiscPurPerc": 7.0,
  "DiscSalPerc": 8.0,
  "DiscPurVal": 9.0,
  "DiscSalVal": 10.0,
  "SalesTaxPerc": 11.0,
  "PurTaxPerc": 12.0,
  "AccountNo": "sample string 13",
  "IsBatchProduct": true,
  "ExpiryLimit": 15,
  "SaleAccount": "sample string 16",
  "BrandName": "sample string 17",
  "GroupName": "sample string 18"
}

application/xml, text/xml

Sample:
<Products xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RiceMillsERP_API.Models">
  <AccountNo>sample string 13</AccountNo>
  <BrandID>3</BrandID>
  <BrandName>sample string 17</BrandName>
  <DiscPurPerc>7</DiscPurPerc>
  <DiscPurVal>9</DiscPurVal>
  <DiscSalPerc>8</DiscSalPerc>
  <DiscSalVal>10</DiscSalVal>
  <ExpiryLimit>15</ExpiryLimit>
  <GroupID>4</GroupID>
  <GroupName>sample string 18</GroupName>
  <IsBatchProduct>true</IsBatchProduct>
  <ProductID>1</ProductID>
  <ProductName>sample string 2</ProductName>
  <PurTaxPerc>12</PurTaxPerc>
  <PurchasePrice>5</PurchasePrice>
  <SaleAccount>sample string 16</SaleAccount>
  <SalePrice>6</SalePrice>
  <SalesTaxPerc>11</SalesTaxPerc>
</Products>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.