Queries all financial unit nodes under the current node of the financial unit tree. If ParentUnitId is set to -1, all financial units are queried.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bss:QueryCostUnit |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| OwnerUid |
integer |
Yes |
The owner of the financial unit. |
28394563429587 |
| ParentUnitId |
integer |
Yes |
The ID of the parent financial unit. A value of -1 indicates the root of the financial unit tree. |
-1 |
| PageNum |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Maximum value: 300. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The status code. |
Success |
| Data |
object |
The returned data. |
|
| CostUnitDtoList |
array<object> |
The list of financial units. |
|
|
object |
|||
| OwnerUid |
integer |
The owner of the financial unit. |
2343464 |
| ParentUnitId |
integer |
The ID of the parent financial unit. A value of -1 indicates the root of the financial unit tree. |
-1 |
| UnitId |
integer |
The ID of the financial unit. |
23534 |
| UnitName |
string |
The name of the financial unit. |
test |
| PageNum |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
20 |
| TotalCount |
integer |
The total number of records. |
1 |
| Message |
string |
The error message. |
Successful! |
| RequestId |
string |
The request ID. |
6000EE23-274B-4E07-A697-FF2E999520A4 |
| Success |
boolean |
Indicates whether the request was successful. |
true |
Examples
Success response
JSON format
{
"Code": "Success",
"Data": {
"CostUnitDtoList": [
{
"OwnerUid": 2343464,
"ParentUnitId": -1,
"UnitId": 23534,
"UnitName": "test"
}
],
"PageNum": 1,
"PageSize": 20,
"TotalCount": 1
},
"Message": "Successful!",
"RequestId": "6000EE23-274B-4E07-A697-FF2E999520A4",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.