GET V2/odata/CostCenter({key})
Gets CostCenter entity by key
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
key |
CostCenterId from CostCenter entity |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
QicsUnity.Api.Areas.V2.Models.CostCenterName | Description | Type | Additional information |
---|---|---|---|
CostCenterId |
Gets or sets the CostCenterId |
integer |
Required 64-bit signed integer |
Code |
Gets or sets cost center code |
string |
Required |
Name |
Gets or sets cost center name |
string |
Required |
CompanyId |
Gets or sets CompanyId |
integer |
Required 64-bit signed integer |
CompanyName |
Gets or sets Company.CompanyName |
string | |
CompanyCode |
Gets or sets Company.CompanyCode |
string |
Response Formats
application/json, text/json
Sample:
{ "CostCenterId": "1", "Code": "sample 2", "Name": "sample 3", "CompanyId": "4", "CompanyName": "sample 5", "CompanyCode": "sample 6" }
application/xml, text/xml
Sample:
<CostCenter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V2.Models"> <Code>sample 2</Code> <CompanyCode>sample 6</CompanyCode> <CompanyId>4</CompanyId> <CompanyName>sample 5</CompanyName> <CostCenterId>1</CostCenterId> <Name>sample 3</Name> </CostCenter>