POST api/CompanyBuys/AddCompanyBuyHeader

Request Information

URI Parameters

None.

Body Parameters

CompanyBuyRequest
NameDescriptionTypeAdditional information
HeaderID

integer

None.

CompanyID

integer

None.

Total

decimal number

None.

ProductID

integer

None.

ProductName

string

None.

Units

integer

None.

Price

decimal number

None.

CardID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "HeaderID": 1,
  "CompanyID": 2,
  "Total": 3.0,
  "ProductID": 4,
  "ProductName": "sample string 5",
  "Units": 6,
  "Price": 7.0,
  "CardID": "sample string 8"
}

application/xml, text/xml

Sample:
<CompanyBuysController.CompanyBuyRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustomerAPI.Controllers">
  <CardID>sample string 8</CardID>
  <CompanyID>2</CompanyID>
  <HeaderID>1</HeaderID>
  <Price>7</Price>
  <ProductID>4</ProductID>
  <ProductName>sample string 5</ProductName>
  <Total>3</Total>
  <Units>6</Units>
</CompanyBuysController.CompanyBuyRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>