POST api/itemgroups/nonsku

Creates a Non Stock Keeping Unit (NonSKU)Item Group. This type of item group is used when selling something where the shop is not interesteded in keeping stock and linking the sale to specific articles. No articles are associated with this type of item group.

Request Information

URI Parameters

None.

Body Parameters

PublicAPI.Models.NonSKUItemGroupInsertModel
NameDescriptionTypeAdditional information
Id

The unique Id of an item group

integer

None.

Description

Text associated with this item group. E.g. "Pants", "Women shirts", "Socks", etc.

string

Required

VatId

The Id of the VAT configuration this item group uses.

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Description": "sample string 2",
  "VatId": 3
}

application/xml, text/xml

Sample:
<NonSKUItemGroupInsertModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
  <Description>sample string 2</Description>
  <Id>1</Id>
  <VatId>3</VatId>
</NonSKUItemGroupInsertModel>

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

Response Information

Resource Description

None.