阿里云交易和账单管理API删除财务单元

接口名

DeleteCostUnit

描述

删除财务单元。

请求参数

名称 类型 是否必填 说明
ownerUid Long 财务单元的属主用户ID
unitId Long 财务单元ID,-1表示财务单元根

返回参数

名称 类型 说明
success boolean 请求是否成功
code String 消息码,成功:success
message String 消息文案,成功:Successful
data CostUnitOperateResponse 消息体

CostUnitOperateResponse类型:

名称 类型 说明
ownerUid Long 财务单元的属主用户ID
unitId Long 新财务单元的ID
isSucccess Boolean 是否完成

错误码

错误码 错误信息 语义
MissingParameter The specified parameter is mandatory for this request. 参数缺失。
MasterAndSubHasNoRelation Your accounts has no valid account relation yet. 主子没有关系。
UnitNotBelongToUser Financial unit is not belong to this user. 财务单元不属于此用户。
InvalidParameter NAME_IS_INVALID 财务单元名字非法或重名。
InternalError The request processing has failed due to some unknown error, exception or failure. 内部未知错误。

请求示例

  1. https://business.aliyuncs.com/?Action=DeleteCostUnit
  2. &OwnerUid=168***********77
  3. &unitId=******
  4. &RegionId=cn-hangzhou
  5. &公共参数

返回示例

原创文章,作者:网友投稿,如若转载,请注明出处:https://www.cloudads.cn/archives/33785.html

发表评论

登录后才能评论