PUT api/SubCategoryMasters/PutSubCategoryMaster

Request Information

URI Parameters

None.

Body Parameters

SubCategoryMaster
NameDescriptionTypeAdditional information
Id

integer

None.

SubCategoryName

string

None.

Category

integer

None.

ShortDescription

string

None.

UOM

string

None.

CST

decimal number

None.

VAT

decimal number

None.

ScheduleandCommitteCode

string

None.

InterstatePurchaseAccount

integer

None.

InterstatePurchaseReturnsAccount

integer

None.

LocalPurchaseAccount

integer

None.

LocalPurchaseReturnsAccount

integer

None.

SalesAmount

integer

None.

SalesReturnAmount

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "SubCategoryName": "sample string 2",
  "Category": 1,
  "ShortDescription": "sample string 3",
  "UOM": "sample string 4",
  "CST": 1.0,
  "VAT": 1.0,
  "ScheduleandCommitteCode": "sample string 5",
  "InterstatePurchaseAccount": 1,
  "InterstatePurchaseReturnsAccount": 1,
  "LocalPurchaseAccount": 1,
  "LocalPurchaseReturnsAccount": 1,
  "SalesAmount": 1,
  "SalesReturnAmount": 1
}

application/xml, text/xml

Sample:
<SubCategoryMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BILLING.DAL.DataModel">
  <CST>1</CST>
  <Category>1</Category>
  <Id>1</Id>
  <InterstatePurchaseAccount>1</InterstatePurchaseAccount>
  <InterstatePurchaseReturnsAccount>1</InterstatePurchaseReturnsAccount>
  <LocalPurchaseAccount>1</LocalPurchaseAccount>
  <LocalPurchaseReturnsAccount>1</LocalPurchaseReturnsAccount>
  <SalesAmount>1</SalesAmount>
  <SalesReturnAmount>1</SalesReturnAmount>
  <ScheduleandCommitteCode>sample string 5</ScheduleandCommitteCode>
  <ShortDescription>sample string 3</ShortDescription>
  <SubCategoryName>sample string 2</SubCategoryName>
  <UOM>sample string 4</UOM>
  <VAT>1</VAT>
</SubCategoryMaster>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SubCategoryMaster'.

Response Information

Resource Description

None.