POST api/department/{dept}/subdepartment/{sub}/minordepartment/{minor}/lesserdepartment/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
dept

string

Required

sub

string

Required

minor

string

Required

id

string

Required

Body Parameters

LesserDepartment
NameDescriptionTypeAdditional information
ID

Sequential ID

integer

None.

DepartmentID

integer

None.

SubDepartmentID

integer

None.

MinorDepartmentID

integer

None.

Name

string

String length: inclusive between 0 and 60

Code

string

String length: inclusive between 0 and 20

DepartmentCode

string

String length: inclusive between 0 and 20

SubDepartmentCode

string

String length: inclusive between 0 and 20

MinorDepartmentCode

string

String length: inclusive between 0 and 20

Updated

date

None.

SalesMode

SalesMode

None.

GSTPercent

integer

None.

CostGSTPercent

integer

None.

EarnLoyaltyPoints

boolean

None.

QuantityOverride

boolean

None.

QuantityRequired

boolean

None.

AllowDiscounts

boolean

None.

DiscountDiscounts

boolean

None.

ItemRecalled

boolean

None.

NoRefund

boolean

None.

Active

boolean

None.

AllowMarkdown

boolean

None.

DefaultGP

decimal number

None.

LabelShelfDefault

integer

None.

LabelTalkerDefault

integer

None.

LabelSmall

boolean

None.

Tags

string

None.

UnitMeasureKind

integer

None.

FuelItem

boolean

None.

TrackSerial

boolean

None.

WarrantyPeriod

integer

None.

CostCalcMethod

CostCalcMethod

None.

ProviderName

string

None.

OverrideHostMargin

boolean

None.

KeepDescription

when false, changes to HostDescription should flow to receipt Name. (OverrideHostDescription)

boolean

None.

MSCCommodity

string

None.

AllowAutoOrder

boolean

None.

ExcludeFromWebUpdate

boolean

None.

WebPriceBasedOn

boolean

None.

LabelFormat

string

None.

SendToScale

boolean

None.

LabelPageLayoutG_UID

Collection of byte

None.

LabelPageLayoutGuid

globally unique identifier

None.

MinimumAge

Only a default on the Department table

integer

Relation. This field may not always be loaded or used for updates.

CountryOfOrigin

string

Relation. This field may not always be loaded or used for updates.

ServiceFeeID

Only a default on the Department table

integer

None.

EftCode

Only a default on the Department and SubDepartment table

integer

None.

DefaultPrinter

Only a default on the Department and SubDepartment table

string

String length: inclusive between 0 and 60

DefaultPrinterGroup

Only a default on the Department and SubDepartment table

string

String length: inclusive between 0 and 60

BuyingLimit

Buying Limit for Department. Below are possible values NULL=Dept/SubDept Limit will be used 0=Unlimited - Regardless of Dept/SubDept limits +ve integer

integer

None.

BuyingLimitIndependent

This indicates if buying limit is independent from other limits like Product/PriceGroup. If yes, limit does not count towards other limits like Product/PriceGroup limit. For example, if toilet paper has BuyingLimit=1 and Grocery Dept has BuyingLimit=2 - if true, transaction may have 1xTP and 2xGrocery - if false, 1xTP and 1xGrocery

boolean

None.

BuyingLimitType

It indicates whether limit applies to category or item

BuyingLimitType

None.

IncludeInDistinctLimit

It indicates whether this limit includes in distinct store level limit

boolean

None.

DefaultsEmpty

boolean

None.

MSCCat

MSCCategory

Relation. This field may not always be loaded or used for updates.

MSCCom

MSCCommodity

Relation. This field may not always be loaded or used for updates.

MSCDep

MSCDepartment

Relation. This field may not always be loaded or used for updates.

MSCSubCom

MSCSubCommodity

Relation. This field may not always be loaded or used for updates.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "departmentID": 2,
  "subDepartmentID": 3,
  "minorDepartmentID": 4,
  "name": "sample string 5",
  "code": "sample string 6",
  "departmentCode": "sample string 7",
  "subDepartmentCode": "sample string 8",
  "minorDepartmentCode": "sample string 9",
  "updated": "2025-06-14T07:43:09.1435422",
  "salesMode": 1,
  "gstPercent": 1,
  "costGSTPercent": 1,
  "earnLoyaltyPoints": true,
  "quantityOverride": true,
  "quantityRequired": true,
  "allowDiscounts": true,
  "discountDiscounts": true,
  "itemRecalled": true,
  "noRefund": true,
  "active": true,
  "allowMarkdown": true,
  "defaultGP": 1.1,
  "labelShelfDefault": 1,
  "labelTalkerDefault": 1,
  "labelSmall": true,
  "tags": "sample string 11",
  "unitMeasureKind": 1,
  "fuelItem": true,
  "trackSerial": true,
  "warrantyPeriod": 1,
  "costCalcMethod": 1,
  "providerName": "sample string 12",
  "overrideHostMargin": true,
  "keepDescription": true,
  "mscCommodity": "sample string 15",
  "allowAutoOrder": true,
  "excludeFromWebUpdate": true,
  "webPriceBasedOn": true,
  "labelFormat": "sample string 16",
  "sendToScale": true,
  "labelPageLayoutG_UID": "ZNmZwhA1cUGeobmzVCYA5g==",
  "labelPageLayoutGuid": "c299d964-3510-4171-9ea1-b9b3542600e6",
  "minimumAge": 17,
  "countryOfOrigin": "sample string 18",
  "serviceFeeID": 1,
  "eftCode": 19,
  "defaultPrinter": "sample string 20",
  "defaultPrinterGroup": "sample string 21",
  "buyingLimit": 1,
  "buyingLimitIndependent": true,
  "buyingLimitType": 0,
  "includeInDistinctLimit": true,
  "defaultsEmpty": false,
  "mscCat": {
    "$id": "2",
    "dept": 1,
    "category": 2,
    "name": "sample string 3",
    "active": true,
    "mscCommodities": [
      {
        "$id": "3",
        "dept": 1,
        "category": 2,
        "commodity": 3,
        "name": "sample string 4",
        "active": true,
        "mscSubCommodities": [
          {
            "$id": "4",
            "dept": 1,
            "category": 2,
            "commodity": 3,
            "subCommodity": 4,
            "name": "sample string 5",
            "active": true,
            "subCommodityCode": "sample string 7"
          },
          {
            "$ref": "4"
          }
        ],
        "commodityCode": "sample string 6"
      },
      {
        "$ref": "3"
      }
    ],
    "categoryCode": "sample string 5"
  },
  "mscCom": {
    "$ref": "3"
  },
  "mscDep": {
    "$id": "5",
    "dept": 1,
    "name": "sample string 2",
    "active": true,
    "mscCategories": [
      {
        "$ref": "2"
      },
      {
        "$ref": "2"
      }
    ],
    "deptCode": "sample string 4"
  },
  "mscSubCom": {
    "$ref": "4"
  }
}

application/xml, text/xml

Sample:
<LesserDepartment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Departments">
  <Active>true</Active>
  <AllowAutoOrder>true</AllowAutoOrder>
  <AllowDiscounts>true</AllowDiscounts>
  <AllowMarkdown>true</AllowMarkdown>
  <BuyingLimit>1</BuyingLimit>
  <BuyingLimitIndependent>true</BuyingLimitIndependent>
  <BuyingLimitType>CategoryWide</BuyingLimitType>
  <CostCalcMethod>1</CostCalcMethod>
  <CostGSTPercent>1</CostGSTPercent>
  <CountryOfOrigin>sample string 18</CountryOfOrigin>
  <DefaultGP>1.1</DefaultGP>
  <DefaultPrinter>sample string 20</DefaultPrinter>
  <DefaultPrinterGroup>sample string 21</DefaultPrinterGroup>
  <DiscountDiscounts>true</DiscountDiscounts>
  <EarnLoyaltyPoints>true</EarnLoyaltyPoints>
  <EftCode>19</EftCode>
  <ExcludeFromWebUpdate>true</ExcludeFromWebUpdate>
  <FuelItem>true</FuelItem>
  <GSTPercent>1</GSTPercent>
  <IncludeInDistinctLimit>true</IncludeInDistinctLimit>
  <ItemRecalled>true</ItemRecalled>
  <KeepDescription>true</KeepDescription>
  <LabelFormat>sample string 16</LabelFormat>
  <LabelPageLayoutG_UID>ZNmZwhA1cUGeobmzVCYA5g==</LabelPageLayoutG_UID>
  <LabelPageLayoutGuid>c299d964-3510-4171-9ea1-b9b3542600e6</LabelPageLayoutGuid>
  <LabelShelfDefault>1</LabelShelfDefault>
  <LabelSmall>true</LabelSmall>
  <LabelTalkerDefault>1</LabelTalkerDefault>
  <MSCCat>
    <Active>true</Active>
    <Category>2</Category>
    <CategoryCode>sample string 5</CategoryCode>
    <Dept>1</Dept>
    <MSCCommodities>
      <MSCCommodity>
        <Active>true</Active>
        <Category>2</Category>
        <Commodity>3</Commodity>
        <CommodityCode>sample string 6</CommodityCode>
        <Dept>1</Dept>
        <MSCSubCommodities>
          <MSCSubCommodity>
            <Active>true</Active>
            <Category>2</Category>
            <Commodity>3</Commodity>
            <Dept>1</Dept>
            <Name>sample string 5</Name>
            <SubCommodity>4</SubCommodity>
            <SubCommodityCode>sample string 7</SubCommodityCode>
          </MSCSubCommodity>
          <MSCSubCommodity>
            <Active>true</Active>
            <Category>2</Category>
            <Commodity>3</Commodity>
            <Dept>1</Dept>
            <Name>sample string 5</Name>
            <SubCommodity>4</SubCommodity>
            <SubCommodityCode>sample string 7</SubCommodityCode>
          </MSCSubCommodity>
        </MSCSubCommodities>
        <Name>sample string 4</Name>
      </MSCCommodity>
      <MSCCommodity>
        <Active>true</Active>
        <Category>2</Category>
        <Commodity>3</Commodity>
        <CommodityCode>sample string 6</CommodityCode>
        <Dept>1</Dept>
        <MSCSubCommodities>
          <MSCSubCommodity>
            <Active>true</Active>
            <Category>2</Category>
            <Commodity>3</Commodity>
            <Dept>1</Dept>
            <Name>sample string 5</Name>
            <SubCommodity>4</SubCommodity>
            <SubCommodityCode>sample string 7</SubCommodityCode>
          </MSCSubCommodity>
          <MSCSubCommodity>
            <Active>true</Active>
            <Category>2</Category>
            <Commodity>3</Commodity>
            <Dept>1</Dept>
            <Name>sample string 5</Name>
            <SubCommodity>4</SubCommodity>
            <SubCommodityCode>sample string 7</SubCommodityCode>
          </MSCSubCommodity>
        </MSCSubCommodities>
        <Name>sample string 4</Name>
      </MSCCommodity>
    </MSCCommodities>
    <Name>sample string 3</Name>
  </MSCCat>
  <MSCCom>
    <Active>true</Active>
    <Category>2</Category>
    <Commodity>3</Commodity>
    <CommodityCode>sample string 6</CommodityCode>
    <Dept>1</Dept>
    <MSCSubCommodities>
      <MSCSubCommodity>
        <Active>true</Active>
        <Category>2</Category>
        <Commodity>3</Commodity>
        <Dept>1</Dept>
        <Name>sample string 5</Name>
        <SubCommodity>4</SubCommodity>
        <SubCommodityCode>sample string 7</SubCommodityCode>
      </MSCSubCommodity>
      <MSCSubCommodity>
        <Active>true</Active>
        <Category>2</Category>
        <Commodity>3</Commodity>
        <Dept>1</Dept>
        <Name>sample string 5</Name>
        <SubCommodity>4</SubCommodity>
        <SubCommodityCode>sample string 7</SubCommodityCode>
      </MSCSubCommodity>
    </MSCSubCommodities>
    <Name>sample string 4</Name>
  </MSCCom>
  <MSCCommodity>sample string 15</MSCCommodity>
  <MSCDep>
    <Active>true</Active>
    <Dept>1</Dept>
    <DeptCode>sample string 4</DeptCode>
    <MSCCategories>
      <MSCCategory>
        <Active>true</Active>
        <Category>2</Category>
        <CategoryCode>sample string 5</CategoryCode>
        <Dept>1</Dept>
        <MSCCommodities>
          <MSCCommodity>
            <Active>true</Active>
            <Category>2</Category>
            <Commodity>3</Commodity>
            <CommodityCode>sample string 6</CommodityCode>
            <Dept>1</Dept>
            <MSCSubCommodities>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
            </MSCSubCommodities>
            <Name>sample string 4</Name>
          </MSCCommodity>
          <MSCCommodity>
            <Active>true</Active>
            <Category>2</Category>
            <Commodity>3</Commodity>
            <CommodityCode>sample string 6</CommodityCode>
            <Dept>1</Dept>
            <MSCSubCommodities>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
            </MSCSubCommodities>
            <Name>sample string 4</Name>
          </MSCCommodity>
        </MSCCommodities>
        <Name>sample string 3</Name>
      </MSCCategory>
      <MSCCategory>
        <Active>true</Active>
        <Category>2</Category>
        <CategoryCode>sample string 5</CategoryCode>
        <Dept>1</Dept>
        <MSCCommodities>
          <MSCCommodity>
            <Active>true</Active>
            <Category>2</Category>
            <Commodity>3</Commodity>
            <CommodityCode>sample string 6</CommodityCode>
            <Dept>1</Dept>
            <MSCSubCommodities>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
            </MSCSubCommodities>
            <Name>sample string 4</Name>
          </MSCCommodity>
          <MSCCommodity>
            <Active>true</Active>
            <Category>2</Category>
            <Commodity>3</Commodity>
            <CommodityCode>sample string 6</CommodityCode>
            <Dept>1</Dept>
            <MSCSubCommodities>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
            </MSCSubCommodities>
            <Name>sample string 4</Name>
          </MSCCommodity>
        </MSCCommodities>
        <Name>sample string 3</Name>
      </MSCCategory>
    </MSCCategories>
    <Name>sample string 2</Name>
  </MSCDep>
  <MSCSubCom>
    <Active>true</Active>
    <Category>2</Category>
    <Commodity>3</Commodity>
    <Dept>1</Dept>
    <Name>sample string 5</Name>
    <SubCommodity>4</SubCommodity>
    <SubCommodityCode>sample string 7</SubCommodityCode>
  </MSCSubCom>
  <MinimumAge>17</MinimumAge>
  <NoRefund>true</NoRefund>
  <OverrideHostMargin>true</OverrideHostMargin>
  <ProviderName>sample string 12</ProviderName>
  <QuantityOverride>true</QuantityOverride>
  <QuantityRequired>true</QuantityRequired>
  <SalesMode>1</SalesMode>
  <SendToScale>true</SendToScale>
  <ServiceFeeID>1</ServiceFeeID>
  <Tags>sample string 11</Tags>
  <TrackSerial>true</TrackSerial>
  <UnitMeasureKind>1</UnitMeasureKind>
  <Updated>2025-06-14T07:43:09.1435422+00:00</Updated>
  <WarrantyPeriod>1</WarrantyPeriod>
  <WebPriceBasedOn>true</WebPriceBasedOn>
  <Code>sample string 6</Code>
  <DepartmentCode>sample string 7</DepartmentCode>
  <DepartmentID>2</DepartmentID>
  <ID>1</ID>
  <MinorDepartmentCode>sample string 9</MinorDepartmentCode>
  <MinorDepartmentID>4</MinorDepartmentID>
  <Name>sample string 5</Name>
  <SubDepartmentCode>sample string 8</SubDepartmentCode>
  <SubDepartmentID>3</SubDepartmentID>
</LesserDepartment>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.