Use this endpoint to list the available cost centers.
Endpoint: https://server/EventProApi/DataService.svc/setup/costcenters
Method: GET
This POST endpoint allows you to add a cost center to setup.
Endpoint: https://server/EventProApi/DataService.svc/setup/costcenter/add
Method: POST
You pass to this endpoint a Cost Center object with the information required.
Any non-Read-Only field you use will be updated on the cost center record.
The created cost center is returned as a Cost Center object.
This POST endpoint allows you to make modifications to a cost center.
Endpoint: https://server/EventProApi/DataService.svc/setup/costcenter/update
Method: POST
You pass to this endpoint a Cost Center object with the Oid set to the Oid of the cost center you want to update.
Any non-Read-Only field you use will be updated on the cost center record.
The updated cost center is returned as a Cost Center object.
This GET endpoint allows you to remove a cost center from setup.
Endpoint: https://server/EventProApi/DataService.svc/setup/costcenter/delete/{oid}
Method: GET
This endpoint contains the ID of the Cost Center object you want to remove from setup.
Cost Center Object |
|||
---|---|---|---|
Field |
Type |
Read Only |
Required |
Oid |
Guid |
Yes |
|
TimeZone |
Text |
Yes |
|
Created |
DateTime |
Yes |
|
CreatedBy |
Text |
Yes |
|
CreatedWith |
Yes |
|
|
Modified |
DateTime |
Yes |
|
ModifiedBy |
Text |
Yes |
|
ModifiedWith |
Yes |
|
|
SecurityOwner |
Yes |
|
|
ExternalID |
Text |
|
|
OptimisticLockField |
Integer |
Yes |
|
ItemCode |
Text |
|
Yes |
Description |
Text |
|
|