跳到主要内容

Statement

方法与权限​

APIGETPOSTPUTPATCHDELETE
Statement ListAdmin----
Statement DetailAdmin----

声明将自动生成,无需手动提交。

获取声明列表​

端点: /organizations/statement/list/{level}/{sid}/{serializer}/

参数: level (路径, 字符串)​

organization

参数: sid (路径, 字符串)​

organization sid

参数: serializer (路径, 字符串)​

参数: token (请求头, 字符串)​

响应: 200​

# serializer = name
{
"page_size": 10,
"page_number": 1,
"page_count": 1,
"count": 2,
"next": null,
"previous": null,
"add_permission": true,
"results": [
{
"sid": "xxx",
"name": "Statement 2020-02-10 - 2020-03-09"
},
...
]
}
# serializer = list
{
"page_size": 10,
"page_number": 1,
"page_count": 1,
"count": 2,
"next": null,
"previous": null,
"add_permission": true,
"results": [
{
"sid": "xxx",
"name": "Statement 2020-02-10 - 2020-03-09",
"date_start": "2020-02-10",
"date_end": "2020-03-09",
"subscription_cost": "$xxx.0",
"ppu_cost": "$0",
"section_widget_usage_cost": "$0.00",
"column_widget_usage_cost": "$0.00",
"record_storage_cost": "$0",
"file_storage_cost": "$0",
"backup_cost": "$xxx",
"total": "$xxx",
"change_permission": false
},
...
]
}
# serializer = detail
{
"page_size": 10,
"page_number": 1,
"page_count": 1,
"count": 2,
"next": null,
"previous": null,
"add_permission": true,
"results": [
{
"sid": "xxx",
"name": "Statement 2020-02-10 - 2020-03-09",
"date_start": "2020-02-10",
"date_end": "2020-03-09",
"subscription_price": "$xxx/seat/month",
"seats": xxx,
"subscription_cost": "$xxx",
"ppu_price": "$xxx/record",
"record_count": xxx,
"ppu_cost": "$xxx",
"section_widget_usage_cost": "$xxx",
"column_widget_usage_cost": "$xxx",
"version_count": xxx,
"record_storage_price": "$xxx/version",
"record_storage_cost": "$xxx",
"file_storage_price": "$xxx/100G/Month",
"file_size": "xxx MB",
"file_storage_cost": "$xxx",
"backup_cost": "$xxx",
"total": "$xxx",
"available_credits": "$xxx",
"is_current": true,
"is_subscription": true
},
...
]
}

获取声明详情​

端点: /organizations/statement/detail/{sid}/

参数: sid (路径, 字符串)​

参数: token (请求头, 字符串)​

响应: 200​

{
"sid": "xxx",
"name": "Statement 2020-02-10 - 2020-03-09",
"date_start": "2020-02-10",
"date_end": "2020-03-09",
"subscription_price": "$xxx/seat/month",
"seats": xxx,
"subscription_cost": "$xxx",
"ppu_price": "$xxx/record",
"record_count": xxx,
"ppu_cost": "$xxx",
"section_widget_usage_cost": "$xxx",
"column_widget_usage_cost": "$xxx",
"version_count": xxx,
"record_storage_price": "$xxx/version",
"record_storage_cost": "$xxx",
"file_storage_price": "$xxx/100G/Month",
"file_size": "xxx MB",
"file_storage_cost": "$xxx",
"backup_cost": "$xxx",
"total": "$xxx",
"available_credits": "$xxx",
"is_current": true,
"is_subscription": true
}