Search
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 | Message | Description |
|---|
| 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
https://business.ap-southeast-1.aliyuncs.com/?Action=DeleteCostUnit&OwnerUid=168***********77&unitId=******&RegionId=cn-hangzhou&Public parameters
Response sample
Thank you! We've received your feedback.