QueryCostByCostCenter - 查询财务单元费用概览结果
查询财务单元费用概览
接口说明
查询财务单元指定账期费用概览结果
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
bss:DescribeCostUnit |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| BillingMonth |
integer |
是 |
账期月份(格式:YYYYMM) |
202506 |
| GroupByCostCenterLevel |
boolean |
否 |
是否按财务单元层级汇总展示 |
false |
| OwnerAccountId |
integer |
否 |
资源归属的账号 ID |
1374729705039203 |
| Metrics |
string |
是 |
成本类型 |
REQUIRE_AMOUNT |
| DisplayZeroAmountBills |
boolean |
否 |
是否展示应付金额为 0 的数据行 |
false |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| ConsumeAmountList |
array<object> |
成本中心消费金额明细列表 |
|
|
object |
|||
| AllocatedAmount |
string |
公摊金额 |
20 |
| CostCenterCode |
string |
财务单元编码 |
15945703968# |
| CostCenterId |
integer |
财务单元 ID |
530658 |
| CostCenterName |
string |
财务单元名称 |
项目组A |
| DirectAmount |
string |
成本类型金额 |
80 |
| Level |
integer |
层级 |
1 |
| OwnerAccountId |
integer |
资源归属的账号 ID |
1857464601594004 |
| OwnerAccountName |
string |
资源归属的账号名称 |
研发团队测试账号 |
| ParentCostCenterId |
integer |
父级财务单元 ID |
637537 |
| PreCostCenterId |
integer |
前序财务单元 ID |
6375371 |
| TotalAllocatedAmount |
string |
总和(成本类型金额与公摊金额之和) |
100 |
| TotalAllocatedAmountPercent |
string |
成本类型金额占比 |
0.01 |
| Metadata |
any |
返回结构元数据 |
{} |
| RequestId |
string |
请求 ID。 |
79EE7556-0CFD-44EB-9CD6-B3B526E3A85F |
| TotalAmount |
string |
所有成本中心的 totalAllocatedAmount 总和 |
130296.64 |
示例
正常返回示例
JSON格式
{
"ConsumeAmountList": [
{
"AllocatedAmount": "20",
"CostCenterCode": "15945703968#",
"CostCenterId": 530658,
"CostCenterName": "项目组A",
"DirectAmount": "80",
"Level": 1,
"OwnerAccountId": 1857464601594004,
"OwnerAccountName": "研发团队测试账号",
"ParentCostCenterId": 637537,
"PreCostCenterId": 6375371,
"TotalAllocatedAmount": "100",
"TotalAllocatedAmountPercent": "0.01"
}
],
"Metadata": "{}",
"RequestId": "79EE7556-0CFD-44EB-9CD6-B3B526E3A85F",
"TotalAmount": "130296.64"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | AccountNoQueryPricePermission | This page cannot be accessed because you do not have discount rights query permissions. Please contact the main account to go to the cost center for authorization. The permission point that needs authorization is queryprice. | 由于您没有折扣查询权限,无法访问该页面。请联系主账号前往费用中心授权,需要授权的权限点为 queryprice |
| 400 | InvalidParameter | The specified request contains invalid parameters. | |
| 400 | MissingParameter | The specified request lacks essential parameters. | |
| 400 | CostCenter.UnitNotBelongToUser | Cost unit is not belong to this user. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。