GET api/v7/Hierarchies/{hierarchyCode}

Retrieve the hierarchy information for the given hierarchy code.

Request Information

URI Parameters

NameDescriptionTypeRequired?Additional information
hierarchyCode *

the hierarchy code

string

Yes

None.

Body Parameters

None.

Response Information

Resource Description

Returns hierarchy information for the given code

HierarchyDto
NameDescriptionType
hierarchyCode

Hiearchy Code

string
hierarchyLevelCode

Hierarchy Level Code

string
description

Hierarchy Description

string
culture

Culture

string
parentHierarchyCode

Parent Hierarhcy Code

string
externalId

External Hierarchy ID

string
taxClassCode

TaxClass Code for the hierarchy

string
taxTypeCodes

Hierarchy Tax Type

Collection of string
salesCategoryCode

Sales Category Code for the hierarchy

string
maxAllowedQuantity

Maximum sales quantity allowed for any item under this Hierarchy

integer
ubcRequired

Flag which indicates if UBC is required for item sold at hierarchy

boolean
nonReturnable

Flag which represents if an item sold by hierarchy is returnable

boolean
customerAuditDate

Last modified audit information

date

Response Formats

application/json, text/json

Sample:
{
  "hierarchyCode": "51",
  "hierarchyLevelCode": "2",
  "description": "merch hier 1",
  "culture": "en-US",
  "parentHierarchyCode": "1",
  "externalId": "MERCH-1",
  "taxClassCode": "100200",
  "salesCategoryCode": "normal",
  "maxAllowedQuantity": 50,
  "ubcRequired": false,
  "nonReturnable": false,
  "customerAuditDate": "2018-01-01T00:00:00"
}

application/xml, text/xml

Sample:
<Hierarchy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <hierarchyCode>51</hierarchyCode>
  <hierarchyLevelCode>2</hierarchyLevelCode>
  <description>merch hier 1</description>
  <culture>en-US</culture>
  <parentHierarchyCode>1</parentHierarchyCode>
  <externalId>MERCH-1</externalId>
  <taxClassCode>100200</taxClassCode>
  <salesCategoryCode>normal</salesCategoryCode>
  <maxAllowedQuantity>50</maxAllowedQuantity>
  <ubcRequired>false</ubcRequired>
  <nonReturnable>false</nonReturnable>
  <customerAuditDate>2018-01-01T00:00:00</customerAuditDate>
</Hierarchy>