POST api/costcenters/AddCostCenter

Request Information

URI Parameters

None.

Body Parameters

CostCenter
NameDescriptionTypeAdditional information
CostCenterId

string

None.

ParentCostCenterId

string

None.

CostCenterDescription

string

None.

Active

boolean

None.

CostCenterNote

string

None.

EANCustomerCode

string

None.

InsUpdDate

date

None.

ExternalID

string

None.

Request Formats

application/xml, text/xml

Sample:
<CostCenter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <CostCenterId>sample string 1</CostCenterId>
  <ParentCostCenterId>sample string 2</ParentCostCenterId>
  <CostCenterDescription>sample string 3</CostCenterDescription>
  <Active>true</Active>
  <CostCenterNote>sample string 5</CostCenterNote>
  <EANCustomerCode>sample string 6</EANCustomerCode>
  <InsUpdDate>2024-04-14T18:21:46.8638794+02:00</InsUpdDate>
  <ExternalID>sample string 7</ExternalID>
</CostCenter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CreateResult
NameDescriptionTypeAdditional information
Keys

Collection of EntityKeyField

None.

ResultCode

ExternalResultCode

None.

Errors

Collection of Error

None.

Response Formats

application/xml, text/xml

Sample:
<CreateResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Keys>
    <Key>
      <Name>sample string 1</Name>
      <Value>sample string 2</Value>
    </Key>
    <Key>
      <Name>sample string 1</Name>
      <Value>sample string 2</Value>
    </Key>
  </Keys>
  <ResultCode>None</ResultCode>
  <Errors>
    <Error>
      <Level>Warning</Level>
      <Message>sample string 1</Message>
    </Error>
    <Error>
      <Level>Warning</Level>
      <Message>sample string 1</Message>
    </Error>
  </Errors>
</CreateResult>