POST V2/odata/Item

Inserts Item entity

Request Information

URI Parameters

None.

Body Parameters

QicsUnity.Api.Areas.V2.Models.Item
NameDescriptionTypeAdditional information
AllowPriceModifications

Gets or sets a value indicating whether to allow price modifications

boolean

Required

AllowTimeEntry

Gets or sets a value indicating whether this item can be used in time entry

boolean

Required

GLAccountRevenue

Gets or sets GLAccountRevenue

string

GLAccountCost

Gets or sets GLAccountCost

string

GLAccountWIP

Gets or sets GLAccountWIP

string

GLAccountCoverage

Gets or sets GLAccountCoverage

string

GLAccountAddition

Gets or sets GLAccountAddition

string

GLAccountDeduction

Gets or sets GLAccountDeduction

string

IsActive

Gets or sets a value indicating whether this item is active

boolean

Required

ItemCode

Gets or sets item code

string

Required

ItemGroupId

Gets or sets a reference to item group where this item belongs

integer

64-bit signed integer

Nullable

ItemHyperlinkCountsId

Gets or sets the ItemHyperlinkCountsId

integer

64-bit signed integer

ItemId

Gets or sets ItemId

integer

64-bit signed integer

Nullable

ItemCompanyId

Gets or sets the PK

integer

Required

64-bit signed integer

CompanyId

Gets or sets CompanyId

integer

64-bit signed integer

Nullable

ItemType

Gets or sets item type

QicsUnity.Api.Areas.V2.Models.ItemType

Required

LongDescription

Gets or sets long description of item

string

Name

Gets or sets the name of the item

string

Required

SurchargeItemCompanyId

Gets or sets a reference to surcharge item company

integer

64-bit signed integer

Nullable

SurchargePercentage

Gets or sets surcharge percentage

decimal number

Nullable

UseItemCustomers

Gets or sets a value indicating whether all or only linked customers should be used

boolean

VatCodeId

Gets or sets VatCodeId

integer

64-bit signed integer

Nullable

WillBeInvoiced

Gets or sets a value indicating whether the item will be invoiced

boolean

Required

Request Formats

application/json, text/json

Sample:
{
  "AllowPriceModifications": true,
  "AllowTimeEntry": true,
  "GLAccountRevenue": "sample 3",
  "GLAccountCost": "sample 4",
  "GLAccountWIP": "sample 5",
  "GLAccountCoverage": "sample 6",
  "GLAccountAddition": "sample 7",
  "GLAccountDeduction": "sample 8",
  "IsActive": true,
  "ItemCode": "sample 10",
  "ItemGroupId": "1",
  "ItemHyperlinkCountsId": "11",
  "ItemId": "1",
  "ItemCompanyId": "12",
  "CompanyId": "1",
  "ItemType": "Hours",
  "LongDescription": "sample 13",
  "Name": "sample 14",
  "SurchargeItemCompanyId": "1",
  "SurchargePercentage": "1",
  "UseItemCustomers": true,
  "VatCodeId": "1",
  "WillBeInvoiced": true
}

application/xml, text/xml

Sample:
<Item xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V2.Models">
  <AllowPriceModifications>true</AllowPriceModifications>
  <AllowTimeEntry>true</AllowTimeEntry>
  <CompanyId>1</CompanyId>
  <GLAccountAddition>sample 7</GLAccountAddition>
  <GLAccountCost>sample 4</GLAccountCost>
  <GLAccountCoverage>sample 6</GLAccountCoverage>
  <GLAccountDeduction>sample 8</GLAccountDeduction>
  <GLAccountRevenue>sample 3</GLAccountRevenue>
  <GLAccountWIP>sample 5</GLAccountWIP>
  <IsActive>true</IsActive>
  <ItemCode>sample 10</ItemCode>
  <ItemCompanyId>12</ItemCompanyId>
  <ItemGroupId>1</ItemGroupId>
  <ItemHyperlinkCountsId>11</ItemHyperlinkCountsId>
  <ItemId>1</ItemId>
  <ItemType>Hours</ItemType>
  <LongDescription>sample 13</LongDescription>
  <Name>sample 14</Name>
  <SurchargeItemCompanyId>1</SurchargeItemCompanyId>
  <SurchargePercentage>1</SurchargePercentage>
  <UseItemCustomers>true</UseItemCustomers>
  <VatCodeId>1</VatCodeId>
  <WillBeInvoiced>true</WillBeInvoiced>
</Item>

Response Information

Resource Description

QicsUnity.Api.Areas.V2.Models.Item
NameDescriptionTypeAdditional information
AllowPriceModifications

Gets or sets a value indicating whether to allow price modifications

boolean

Required

AllowTimeEntry

Gets or sets a value indicating whether this item can be used in time entry

boolean

Required

GLAccountRevenue

Gets or sets GLAccountRevenue

string

GLAccountCost

Gets or sets GLAccountCost

string

GLAccountWIP

Gets or sets GLAccountWIP

string

GLAccountCoverage

Gets or sets GLAccountCoverage

string

GLAccountAddition

Gets or sets GLAccountAddition

string

GLAccountDeduction

Gets or sets GLAccountDeduction

string

IsActive

Gets or sets a value indicating whether this item is active

boolean

Required

ItemCode

Gets or sets item code

string

Required

ItemGroupId

Gets or sets a reference to item group where this item belongs

integer

64-bit signed integer

Nullable

ItemHyperlinkCountsId

Gets or sets the ItemHyperlinkCountsId

integer

64-bit signed integer

ItemId

Gets or sets ItemId

integer

64-bit signed integer

Nullable

ItemCompanyId

Gets or sets the PK

integer

Required

64-bit signed integer

CompanyId

Gets or sets CompanyId

integer

64-bit signed integer

Nullable

ItemType

Gets or sets item type

QicsUnity.Api.Areas.V2.Models.ItemType

Required

LongDescription

Gets or sets long description of item

string

Name

Gets or sets the name of the item

string

Required

SurchargeItemCompanyId

Gets or sets a reference to surcharge item company

integer

64-bit signed integer

Nullable

SurchargePercentage

Gets or sets surcharge percentage

decimal number

Nullable

UseItemCustomers

Gets or sets a value indicating whether all or only linked customers should be used

boolean

VatCodeId

Gets or sets VatCodeId

integer

64-bit signed integer

Nullable

WillBeInvoiced

Gets or sets a value indicating whether the item will be invoiced

boolean

Required

Response Formats

application/json, text/json

Sample:
{
  "AllowPriceModifications": true,
  "AllowTimeEntry": true,
  "GLAccountRevenue": "sample 3",
  "GLAccountCost": "sample 4",
  "GLAccountWIP": "sample 5",
  "GLAccountCoverage": "sample 6",
  "GLAccountAddition": "sample 7",
  "GLAccountDeduction": "sample 8",
  "IsActive": true,
  "ItemCode": "sample 10",
  "ItemGroupId": "1",
  "ItemHyperlinkCountsId": "11",
  "ItemId": "1",
  "ItemCompanyId": "12",
  "CompanyId": "1",
  "ItemType": "Hours",
  "LongDescription": "sample 13",
  "Name": "sample 14",
  "SurchargeItemCompanyId": "1",
  "SurchargePercentage": "1",
  "UseItemCustomers": true,
  "VatCodeId": "1",
  "WillBeInvoiced": true
}

application/xml, text/xml

Sample:
<Item xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V2.Models">
  <AllowPriceModifications>true</AllowPriceModifications>
  <AllowTimeEntry>true</AllowTimeEntry>
  <CompanyId>1</CompanyId>
  <GLAccountAddition>sample 7</GLAccountAddition>
  <GLAccountCost>sample 4</GLAccountCost>
  <GLAccountCoverage>sample 6</GLAccountCoverage>
  <GLAccountDeduction>sample 8</GLAccountDeduction>
  <GLAccountRevenue>sample 3</GLAccountRevenue>
  <GLAccountWIP>sample 5</GLAccountWIP>
  <IsActive>true</IsActive>
  <ItemCode>sample 10</ItemCode>
  <ItemCompanyId>12</ItemCompanyId>
  <ItemGroupId>1</ItemGroupId>
  <ItemHyperlinkCountsId>11</ItemHyperlinkCountsId>
  <ItemId>1</ItemId>
  <ItemType>Hours</ItemType>
  <LongDescription>sample 13</LongDescription>
  <Name>sample 14</Name>
  <SurchargeItemCompanyId>1</SurchargeItemCompanyId>
  <SurchargePercentage>1</SurchargePercentage>
  <UseItemCustomers>true</UseItemCustomers>
  <VatCodeId>1</VatCodeId>
  <WillBeInvoiced>true</WillBeInvoiced>
</Item>