GET V2/odata/CostCenter

Gets CostCenter entities

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of QicsUnity.Api.Areas.V2.Models.CostCenter
NameDescriptionTypeAdditional information
CostCenterId

Gets or sets the CostCenterId

integer

None.

Code

Gets or sets cost center code

string

None.

Name

Gets or sets cost center name

string

None.

CompanyId

Gets or sets CompanyId

integer

None.

CompanyName

Gets or sets Company.CompanyName

string

None.

CompanyCode

Gets or sets Company.CompanyCode

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CostCenterId": 1,
    "Code": "sample 2",
    "Name": "sample 3",
    "CompanyId": 4,
    "CompanyName": "sample 5",
    "CompanyCode": "sample 6"
  },
  {
    "CostCenterId": 1,
    "Code": "sample 2",
    "Name": "sample 3",
    "CompanyId": 4,
    "CompanyName": "sample 5",
    "CompanyCode": "sample 6"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCostCenter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V2.Models">
  <CostCenter>
    <Code>sample 2</Code>
    <CompanyCode>sample 6</CompanyCode>
    <CompanyId>4</CompanyId>
    <CompanyName>sample 5</CompanyName>
    <CostCenterId>1</CostCenterId>
    <Name>sample 3</Name>
  </CostCenter>
  <CostCenter>
    <Code>sample 2</Code>
    <CompanyCode>sample 6</CompanyCode>
    <CompanyId>4</CompanyId>
    <CompanyName>sample 5</CompanyName>
    <CostCenterId>1</CostCenterId>
    <Name>sample 3</Name>
  </CostCenter>
</ArrayOfCostCenter>