POST api/HSNCode/AddHSNCode

Request Information

URI Parameters

None.

Body Parameters

AddHSNCommandDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Description

string

None.

EAN_Number

string

None.

SKU

string

None.

PIP

string

None.

Brand

string

None.

UOM

string

None.

PackSize

string

None.

HSN_Code

string

None.

User_Id

string

None.

SelfLife

decimal number

None.

MRP

decimal number

None.

DPL

decimal number

None.

RMCC

decimal number

None.

ZSTO

decimal number

None.

SellingPrice

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "0e783f5f-eb20-4580-b2a1-67f088cdec13",
  "Description": "sample string 2",
  "EAN_Number": "sample string 3",
  "SKU": "sample string 4",
  "PIP": "sample string 5",
  "Brand": "sample string 6",
  "UOM": "sample string 7",
  "PackSize": "sample string 8",
  "HSN_Code": "sample string 9",
  "User_Id": "sample string 10",
  "SelfLife": 1.0,
  "MRP": 1.0,
  "DPL": 1.0,
  "RMCC": 1.0,
  "ZSTO": 1.0,
  "SellingPrice": 1.0
}

application/xml, text/xml

Sample:
<AddHSNCommandDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Modules.HSNCodeModule.Model">
  <Brand>sample string 6</Brand>
  <DPL>1</DPL>
  <Description>sample string 2</Description>
  <EAN_Number>sample string 3</EAN_Number>
  <HSN_Code>sample string 9</HSN_Code>
  <Id>0e783f5f-eb20-4580-b2a1-67f088cdec13</Id>
  <MRP>1</MRP>
  <PIP>sample string 5</PIP>
  <PackSize>sample string 8</PackSize>
  <RMCC>1</RMCC>
  <SKU>sample string 4</SKU>
  <SelfLife>1</SelfLife>
  <SellingPrice>1</SellingPrice>
  <UOM>sample string 7</UOM>
  <User_Id>sample string 10</User_Id>
  <ZSTO>1</ZSTO>
</AddHSNCommandDto>

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 'AddHSNCommandDto'.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
Status

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 0,
  "Message": "sample string 1"
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Utilities.Common">
  <Message>sample string 1</Message>
  <Status>Failed</Status>
</Response>