PATCH api/DiscountHierarchies
Request Information
URI Parameters
None.
Body Parameters
Collection of DiscountHierarchy| Name | Description | Type | Additional information | 
|---|---|---|---|
| Type | integer | 
                             None.  | 
                |
| Hierarchy | integer | 
                             None.  | 
                |
| Description | string | 
                             None.  | 
                |
| CompanyId | integer | 
                             None.  | 
                |
| Company | Company | 
                             None.  | 
                |
| Id | integer | 
                             None.  | 
                |
| CreatedDate | date | 
                             None.  | 
                |
| CreatedBy | string | 
                             None.  | 
                |
| UpdateDate | date | 
                             None.  | 
                |
| UpdatedBy | string | 
                             None.  | 
                |
| IsActive | boolean | 
                             None.  | 
                
Request Formats
application/json, text/json
            Sample:
        
[
  {
    "Type": 1,
    "Hierarchy": 2,
    "Description": "sample string 3",
    "CompanyId": 4,
    "Company": {
      "ConnectionId": 1,
      "Connection": {
        "Name": "sample string 1",
        "Odbctype": "sample string 2",
        "Server": "sample string 3",
        "User": "sample string 4",
        "Pass": "sample string 5",
        "ServerType": "sample string 6",
        "SLUrl": "sample string 7",
        "Id": 8,
        "CreatedDate": "2025-11-03T18:13:24.4337861-06:00",
        "CreatedBy": "sample string 10",
        "UpdateDate": "2025-11-03T18:13:24.4337861-06:00",
        "UpdatedBy": "sample string 11",
        "IsActive": true
      },
      "Name": "sample string 2",
      "DatabaseCode": "sample string 3",
      "Id": 4,
      "CreatedDate": "2025-11-03T18:13:24.4337861-06:00",
      "CreatedBy": "sample string 6",
      "UpdateDate": "2025-11-03T18:13:24.4337861-06:00",
      "UpdatedBy": "sample string 7",
      "IsActive": true
    },
    "Id": 5,
    "CreatedDate": "2025-11-03T18:13:24.4337861-06:00",
    "CreatedBy": "sample string 7",
    "UpdateDate": "2025-11-03T18:13:24.4337861-06:00",
    "UpdatedBy": "sample string 8",
    "IsActive": true
  },
  {
    "Type": 1,
    "Hierarchy": 2,
    "Description": "sample string 3",
    "CompanyId": 4,
    "Company": {
      "ConnectionId": 1,
      "Connection": {
        "Name": "sample string 1",
        "Odbctype": "sample string 2",
        "Server": "sample string 3",
        "User": "sample string 4",
        "Pass": "sample string 5",
        "ServerType": "sample string 6",
        "SLUrl": "sample string 7",
        "Id": 8,
        "CreatedDate": "2025-11-03T18:13:24.4337861-06:00",
        "CreatedBy": "sample string 10",
        "UpdateDate": "2025-11-03T18:13:24.4337861-06:00",
        "UpdatedBy": "sample string 11",
        "IsActive": true
      },
      "Name": "sample string 2",
      "DatabaseCode": "sample string 3",
      "Id": 4,
      "CreatedDate": "2025-11-03T18:13:24.4337861-06:00",
      "CreatedBy": "sample string 6",
      "UpdateDate": "2025-11-03T18:13:24.4337861-06:00",
      "UpdatedBy": "sample string 7",
      "IsActive": true
    },
    "Id": 5,
    "CreatedDate": "2025-11-03T18:13:24.4337861-06:00",
    "CreatedBy": "sample string 7",
    "UpdateDate": "2025-11-03T18:13:24.4337861-06:00",
    "UpdatedBy": "sample string 8",
    "IsActive": true
  }
]
        application/xml, text/xml
            Sample:
        
<ArrayOfDiscountHierarchy xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CLMLTEMA.MODELS">
  <DiscountHierarchy>
    <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">sample string 7</CreatedBy>
    <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">2025-11-03T18:13:24.4337861-06:00</CreatedDate>
    <Id xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">5</Id>
    <IsActive xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">true</IsActive>
    <UpdateDate xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">2025-11-03T18:13:24.4337861-06:00</UpdateDate>
    <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">sample string 8</UpdatedBy>
    <Company>
      <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">sample string 6</CreatedBy>
      <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">2025-11-03T18:13:24.4337861-06:00</CreatedDate>
      <Id xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">4</Id>
      <IsActive xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">true</IsActive>
      <UpdateDate xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">2025-11-03T18:13:24.4337861-06:00</UpdateDate>
      <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">sample string 7</UpdatedBy>
      <DatabaseCode xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 3</DatabaseCode>
      <Name xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 2</Name>
      <Connection>
        <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">sample string 10</CreatedBy>
        <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">2025-11-03T18:13:24.4337861-06:00</CreatedDate>
        <Id xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">8</Id>
        <IsActive xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">true</IsActive>
        <UpdateDate xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">2025-11-03T18:13:24.4337861-06:00</UpdateDate>
        <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">sample string 11</UpdatedBy>
        <Name xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 1</Name>
        <Odbctype xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 2</Odbctype>
        <Pass xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 5</Pass>
        <SLUrl xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 7</SLUrl>
        <Server xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 3</Server>
        <ServerType xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 6</ServerType>
        <User xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 4</User>
      </Connection>
      <ConnectionId>1</ConnectionId>
    </Company>
    <CompanyId>4</CompanyId>
    <Description>sample string 3</Description>
    <Hierarchy>2</Hierarchy>
    <Type>1</Type>
  </DiscountHierarchy>
  <DiscountHierarchy>
    <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">sample string 7</CreatedBy>
    <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">2025-11-03T18:13:24.4337861-06:00</CreatedDate>
    <Id xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">5</Id>
    <IsActive xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">true</IsActive>
    <UpdateDate xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">2025-11-03T18:13:24.4337861-06:00</UpdateDate>
    <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">sample string 8</UpdatedBy>
    <Company>
      <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">sample string 6</CreatedBy>
      <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">2025-11-03T18:13:24.4337861-06:00</CreatedDate>
      <Id xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">4</Id>
      <IsActive xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">true</IsActive>
      <UpdateDate xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">2025-11-03T18:13:24.4337861-06:00</UpdateDate>
      <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">sample string 7</UpdatedBy>
      <DatabaseCode xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 3</DatabaseCode>
      <Name xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 2</Name>
      <Connection>
        <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">sample string 10</CreatedBy>
        <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">2025-11-03T18:13:24.4337861-06:00</CreatedDate>
        <Id xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">8</Id>
        <IsActive xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">true</IsActive>
        <UpdateDate xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">2025-11-03T18:13:24.4337861-06:00</UpdateDate>
        <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">sample string 11</UpdatedBy>
        <Name xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 1</Name>
        <Odbctype xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 2</Odbctype>
        <Pass xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 5</Pass>
        <SLUrl xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 7</SLUrl>
        <Server xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 3</Server>
        <ServerType xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 6</ServerType>
        <User xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 4</User>
      </Connection>
      <ConnectionId>1</ConnectionId>
    </Company>
    <CompanyId>4</CompanyId>
    <Description>sample string 3</Description>
    <Hierarchy>2</Hierarchy>
    <Type>1</Type>
  </DiscountHierarchy>
</ArrayOfDiscountHierarchy>
        application/x-www-form-urlencoded
            Sample:
    
        
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information | 
|---|---|---|---|
| Version | Version | 
                             None.  | 
                |
| Content | HttpContent | 
                             None.  | 
                |
| StatusCode | HttpStatusCode | 
                             None.  | 
                |
| ReasonPhrase | string | 
                             None.  | 
                |
| Headers | Collection of Object | 
                             None.  | 
                |
| RequestMessage | HttpRequestMessage | 
                             None.  | 
                |
| IsSuccessStatusCode | boolean | 
                             None.  |