版本:202201
创建用量收费
POST/openapi/2022-01/recurring_application_charges/:recurring_charge_id/usage_charge
使用提供的详情创建新用量收费记录。
请求
Path参数
recurring_charge_id string必填
- application/json
- 请求体
- 示例
请求体
usage_charge object
descriptionstring必填
The description of the usage charge.
pricestring必填
Usage fee price
{
"usage_charge": {
"description": "string",
"price": "string"
}
}
响应
- 200
- 404
200
- application/json
- 数据结构
- 示例
- Result
数据结构
balance_remainingstring
示例:
7.00balance_usedstring
示例:
3.00created_atstring
示例:
2024-04-23T06:53:17Zdescriptionstring
示例:
Descidstring
示例:
372276344521766903pricestring
示例:
3.00{
"balance_remaining": "7.00",
"balance_used": "3.00",
"created_at": "2024-04-23T06:53:17Z",
"description": "Desc",
"id": "372276344521766903",
"price": "3.00"
}
{
"balance_remaining": "7.00",
"balance_used": "3.00",
"created_at": "2024-04-23T06:53:17Z",
"description": "Desc",
"id": "372276344521766903",
"price": "3.00"
}
404
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"Record not found"
]
}
{
"errors": [
"Record not found"
]
}