QueryCostCenterShareRule - 查询财务单元分摊规则
查询财务单元分摊规则。
接口说明
用于查询用户财务单元的分摊规则
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
bss:DescribeCostUnit |
list |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| OwnerAccountId |
integer |
否 |
财务单元的归属用户 ID |
1529600453335198 |
| NextToken |
string |
否 |
预留字段 |
AAAAAV3MpHK1AP0pfERHZN5pu6nYCisJwqt18pP5E9yb47iu |
| MaxResults |
integer |
否 |
预留字段 |
20 |
| EcIdAccountIds |
array<object> |
否 |
企业与账号列表,为空表示查询当前账号自身 |
|
|
object |
否 |
列表信息 |
||
| AccountIds |
array |
否 |
访问的账号列表,为空代表全选当前实体 ID 下所有账号 |
|
|
integer |
否 |
成员账号 ID |
1501603440974415 |
|
| EcId |
string |
是 |
企业实体 ID |
1004064243473974 |
| Nbid |
string |
否 |
一级售卖场 ID,如果为空,默认使用当前用户所属的场 ID 填充 |
2684201000001 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
BssApiTokenResult |
||
| Data |
array<object> |
返回数据列表 |
|
|
array<object> |
对象信息 |
||
| FromCostCenterShareRuleDetails |
array<object> |
源财务单元规则信息 |
|
|
object |
对象信息 |
||
| CostCenterCode |
string |
财务单元 CODE |
970354711219# |
| CostCenterId |
integer |
财务单元 ID |
637127 |
| CostCenterName |
string |
财务单元名称 |
成本计划 |
| GmtCreate |
string |
创建时间 |
2025-07-16 13:49:59 |
| GmtModified |
string |
修改时间 |
2025-07-16 13:49:59 |
| OwnerAccountId |
integer |
财务单元的归属用户 ID |
1529600453335198 |
| ParentCostCenterId |
integer |
父财务单元 ID |
637537 |
| PrevCostCenterId |
integer |
前序财务单元 ID |
583059 |
| RootCostCenterId |
integer |
根财务单元 ID |
583050 |
| GmtModified |
string |
最近修改时间 |
2026-01-01 00:00:00 |
| OwnerAccountId |
integer |
财务单元的归属用户 ID |
1529600453335198 |
| ShareRuleId |
integer |
分摊规则 ID |
1826 |
| ShareRuleName |
string |
分摊规则名称 |
test |
| ShareRuleType |
string |
分摊规则类型 枚举值:
|
AVERAGE |
| ToCostCenterShareRuleDetails |
array<object> |
目标财务单元规则信息 |
|
|
object |
对象信息 |
||
| CostCenterCode |
string |
财务单元 CODE |
970354711215# |
| CostCenterId |
integer |
财务单元 ID |
637127 |
| CostCenterName |
string |
财务单元名称 |
成本分摊 |
| GmtCreate |
string |
创建时间 |
2025-07-16 13:49:59 |
| GmtModified |
string |
修改时间 |
2025-07-16 13:49:59 |
| OwnerAccountId |
integer |
财务单元的归属用户 ID |
1529600453335198 |
| ParentCostCenterId |
integer |
父财务单元 ID |
637537 |
| PrevCostCenterId |
integer |
前序财务单元 ID |
583055 |
| RootCostCenterId |
integer |
根财务单元 ID |
583050 |
| ShareRatio |
number |
分摊比例 |
0.2 |
| MaxResults |
integer |
预留字段 |
20 |
| Metadata |
any |
返回结构元数据 |
{} |
| NextToken |
string |
预留字段 |
eyJwYWdlTnVtIjoyLCJwYWdlU2l6ZSI6NH0= |
| RequestId |
string |
请求 id |
79EE7556-0CFD-44EB-9CD6-B3B526E3A85F |
| TotalCount |
integer |
总记录数 |
20 |
示例
正常返回示例
JSON格式
{
"Data": [
{
"FromCostCenterShareRuleDetails": [
{
"CostCenterCode": "970354711219#",
"CostCenterId": 637127,
"CostCenterName": "成本计划",
"GmtCreate": "2025-07-16 13:49:59",
"GmtModified": "2025-07-16 13:49:59",
"OwnerAccountId": 1529600453335198,
"ParentCostCenterId": 637537,
"PrevCostCenterId": 583059,
"RootCostCenterId": 583050
}
],
"GmtModified": "2026-01-01 00:00:00",
"OwnerAccountId": 1529600453335198,
"ShareRuleId": 1826,
"ShareRuleName": "test",
"ShareRuleType": "AVERAGE",
"ToCostCenterShareRuleDetails": [
{
"CostCenterCode": "970354711215#",
"CostCenterId": 637127,
"CostCenterName": "成本分摊",
"GmtCreate": "2025-07-16 13:49:59",
"GmtModified": "2025-07-16 13:49:59",
"OwnerAccountId": 1529600453335198,
"ParentCostCenterId": 637537,
"PrevCostCenterId": 583055,
"RootCostCenterId": 583050,
"ShareRatio": 0.2
}
]
}
],
"MaxResults": 20,
"Metadata": "{}",
"NextToken": "eyJwYWdlTnVtIjoyLCJwYWdlU2l6ZSI6NH0=",
"RequestId": "79EE7556-0CFD-44EB-9CD6-B3B526E3A85F",
"TotalCount": 20
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | CostCenter.MasterAndSubHasNoRelation | Your account has no valid account relation yet. | |
| 400 | CostCenter.ResourceAuthFailed | The instance does not belong to the current user. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。