POST api/Item/Item

Request Information

URI Parameters

None.

Body Parameters

SetItemDetails
NameDescriptionTypeAdditional information
ItemId

integer

None.

ItemName

string

None.

TypeId

integer

None.

CategoryTypeId

string

None.

CategoryId

integer

None.

Unit

string

None.

Description

string

None.

IsTrackItem

boolean

None.

IsSaleItem

boolean

None.

SaleUnitPrice

string

None.

SaleAccountId

integer

None.

SaleTaxRateId

integer

None.

IsPurchaseItem

boolean

None.

PurchaseUnitPrice

string

None.

PurchaseAccountId

integer

None.

PurchaseTaxRateId

integer

None.

StandardAccountCodeId

integer

None.

StandardSaleValeRateId

integer

None.

LanguageId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ItemId": 1,
  "ItemName": "sample string 2",
  "TypeId": 1,
  "CategoryTypeId": "sample string 3",
  "CategoryId": 1,
  "Unit": "sample string 4",
  "Description": "sample string 5",
  "IsTrackItem": true,
  "IsSaleItem": true,
  "SaleUnitPrice": "sample string 8",
  "SaleAccountId": 1,
  "SaleTaxRateId": 1,
  "IsPurchaseItem": true,
  "PurchaseUnitPrice": "sample string 10",
  "PurchaseAccountId": 1,
  "PurchaseTaxRateId": 1,
  "StandardAccountCodeId": 11,
  "StandardSaleValeRateId": 12,
  "LanguageId": 13
}

text/html

Sample:
{"ItemId":1,"ItemName":"sample string 2","TypeId":1,"CategoryTypeId":"sample string 3","CategoryId":1,"Unit":"sample string 4","Description":"sample string 5","IsTrackItem":true,"IsSaleItem":true,"SaleUnitPrice":"sample string 8","SaleAccountId":1,"SaleTaxRateId":1,"IsPurchaseItem":true,"PurchaseUnitPrice":"sample string 10","PurchaseAccountId":1,"PurchaseTaxRateId":1,"StandardAccountCodeId":11,"StandardSaleValeRateId":12,"LanguageId":13}

application/xml, text/xml

Sample:
<SetItemDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EasyAccounting.ViewModel">
  <CategoryId>1</CategoryId>
  <CategoryTypeId>sample string 3</CategoryTypeId>
  <Description>sample string 5</Description>
  <IsPurchaseItem>true</IsPurchaseItem>
  <IsSaleItem>true</IsSaleItem>
  <IsTrackItem>true</IsTrackItem>
  <ItemId>1</ItemId>
  <ItemName>sample string 2</ItemName>
  <LanguageId>13</LanguageId>
  <PurchaseAccountId>1</PurchaseAccountId>
  <PurchaseTaxRateId>1</PurchaseTaxRateId>
  <PurchaseUnitPrice>sample string 10</PurchaseUnitPrice>
  <SaleAccountId>1</SaleAccountId>
  <SaleTaxRateId>1</SaleTaxRateId>
  <SaleUnitPrice>sample string 8</SaleUnitPrice>
  <StandardAccountCodeId>11</StandardAccountCodeId>
  <StandardSaleValeRateId>12</StandardSaleValeRateId>
  <TypeId>1</TypeId>
  <Unit>sample string 4</Unit>
</SetItemDetails>

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.