POST api/itemgroups/sku

Creates a Stock Keeping Unit (SKU)Item Group. This type of item group is used as a grouping of articles. All articles belonging an item group inherits it's VAT configuration and barcode label setup.

Request Information

URI Parameters

None.

Body Parameters

PublicAPI.Models.SKUItemGroupInsertModel
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

String length: inclusive between 0 and 30

VatId

The Id of the VAT configuration this item group uses.

integer

None.

BarcodeId

Id of the barcode label used by articles belonging to this item group

integer

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

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

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

Response Information

Resource Description

None.