Add or Update Cost Center

Add or Update Cost Center

POST [PlatformAddress]/api/1.0/account?action=addOrUpdateCostCenterundefined

Add or update cost center details to the account.

Path Parameters

NameTypeDescription

id

integer

The unique identifier of the cost center

\

(Leave empty to add the cost center to the account)

name

string

The name of the cost center. Required when adding a new cost center.

code

string

The code of the cost center. Required when adding a new cost center.

description

string

The complete description of the cost center

{
  "Success": true,
  "Id": 5452
}

Example Request

Example: Add a cost center to an account

{
  "name": "test cost center",
  "code": "AB12",
  "description": "The complete description of the cost center"
}

Returns

PropertyDescription

success

Whether or not the cost center was added to the account

id

The unique identifier of the cost center

Throws

CodeDescription

Specific Code: 24150

Account does not exist

Specific Code: 24150

The cost centers details are invalid

Last updated