**版本：202201**

# 创建用量收费

**POST** `/openapi/2022-01/recurring_application_charges/:recurring_charge_id/usage_charge`

使用提供的详情创建新用量收费记录。

## 请求

**Path参数**

- `recurring_charge_id` string (required)

**application/json**

**请求体 | 示例**

**请求体**

- `usage_charge` object

  - `description` string (required)

    The description of the usage charge.
  - `price` string (required)

    Usage fee price

```json
{
  "usage_charge": {
    "description": "string",
    "price": "string"
  }
}
```

## 响应

**200 | 404**

200

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `balance_remaining` string

  **示例：** `7.00`
- `balance_used` string

  **示例：** `3.00`
- `created_at` string

  **示例：** `2024-04-23T06:53:17Z`
- `description` string

  **示例：** `Desc`
- `id` string

  **示例：** `372276344521766903`
- `price` string

  **示例：** `3.00`

```json
{
  "balance_remaining": "7.00",
  "balance_used": "3.00",
  "created_at": "2024-04-23T06:53:17Z",
  "description": "Desc",
  "id": "372276344521766903",
  "price": "3.00"
}
```

```json
{
    "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**

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "Record not found"
  ]
}
```

```json
{
  "errors": [
    "Record not found"
  ]
}
```
