All Products
Search
Document Center

DeleteCostUnit

Last Updated: Oct 25, 2019

API Name

DeleteCostUnit

Overview

Delete cost unit.

Request parameters

Name Type Required Description
ownerUid Long Yes Owner user ID of the new cost unit
unitId Long Yes Cost unit ID, -1 indicates the cost unit root

Response parameters

Name Type Description
success boolean Is success or not
code String Error code
message String Detail information
data CostUnitOperateResponse Message body

CostUnitOperateResponse:

Name Type Description
ownerUid Long Owner user ID of the cost unit
unitId Long ID of the new cost unit
isSucccess Boolean Is success or not

Error codes

Error code MessageDescription
MissingParameter The specified parameter is mandatory for this request. Missing Parameter
UnitNotBelongToUser Financial unit is not belong to this user. Cost unit is not belong to this user.
InvalidParameter NAME_IS_INVALID Cost unit name is illegal or duplicate.
MasterAndSubHasNoRelation Your accounts has no valid account relation yet. The master has no relationship.
InternalError The request processing has failed due to some unknown error, exception or failure. Internal Error.

Request sample

  1. https://business.ap-southeast-1.aliyuncs.com/?Action=DeleteCostUnit
  2. &OwnerUid=168***********77
  3. &unitId=******
  4. &RegionId=cn-hangzhou
  5. &Public parameters

Response sample