**版本：202201**

# 更新周期性应用收费

**PUT** `/openapi/2022-01/recurring_application_charges/:recurring_charge_id/customize`

更新指定周期性应用收费的用量计费封顶金额。

## 请求

**Path参数**

- `recurring_charge_id` string (required)

**application/json**

**请求体 | 示例**

**请求体**

- `capped_amount` float (required)

  The maximum usage fee must be greater than the original maximum

```json
{
  "capped_amount": 0
}
```

## 响应

**200 | 404 | 422**

200

**application/json**

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

**数据结构**

- `recurring_application_charge` object

  - `id` string

    **示例：** `372269669345671159`
  - `name` string

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

    **示例：** `100`
  - `activated_on` string

    **示例：** `2024-04-23T00:00:00Z`
  - `billing_on` string

    **示例：** `2024-05-23T00:00:00Z`
  - `cancelled_on`
  - `capped_amount` string

    **示例：** `10`
  - `return_url` string

    **示例：** `https://shoplazza.com`
  - `status` string

    **示例：** `active`
  - `terms` string

    **示例：** `terms`
  - `test` boolean

    **默认值：** `true`

    **示例：** `false`
  - `trial_days` integer

    **默认值：** `0`

    **示例：** `0`
  - `trial_ends_on`
  - `update_capped_amount_url` string

    **示例：** `https://test-shoplazza.stg.myshoplaza.com/admin/smart_apps/angora/app_store/charges/s1deCNrkHePwO3HDDZb_zfWJAge07nzNckPyfM_Hvp0/372269669345671159/recurring_usage_charge/confirm?signature=1543b02176c185b4bfe70303b7f2b300&adjust_id=372273239407212535`
  - `created_at` string

    **示例：** `2024-04-23T06:26:46Z`
  - `updated_at` string

    **示例：** `2024-04-23T06:40:51Z`

```json
{
  "recurring_application_charge": {
    "id": "372269669345671159",
    "name": "test",
    "price": "100",
    "activated_on": "2024-04-23T00:00:00Z",
    "billing_on": "2024-05-23T00:00:00Z",
    "cancelled_on": {},
    "capped_amount": "10",
    "return_url": "https://shoplazza.com",
    "status": "active",
    "terms": "terms",
    "test": false,
    "trial_days": 0,
    "trial_ends_on": {},
    "update_capped_amount_url": "https://test-shoplazza.stg.myshoplaza.com/admin/smart_apps/angora/app_store/charges/s1deCNrkHePwO3HDDZb_zfWJAge07nzNckPyfM_Hvp0/372269669345671159/recurring_usage_charge/confirm?signature=1543b02176c185b4bfe70303b7f2b300&adjust_id=372273239407212535",
    "created_at": "2024-04-23T06:26:46Z",
    "updated_at": "2024-04-23T06:40:51Z"
  }
}
```

```json
{
    "recurring_application_charge": {
        "id": "372269669345671159",
        "name": "test",
        "price": "100",
        "activated_on": "2024-04-23T00:00:00Z",
        "billing_on": "2024-05-23T00:00:00Z",
        "cancelled_on": null,
        "capped_amount": "10",
        "return_url": "https://shoplazza.com",
        "status": "active",
        "terms": "terms",
        "test": false,
        "trial_days": 0,
        "trial_ends_on": null,
        "update_capped_amount_url": "https://test-shoplazza.stg.myshoplaza.com/admin/smart_apps/angora/app_store/charges/s1deCNrkHePwO3HDDZb_zfWJAge07nzNckPyfM_Hvp0/372269669345671159/recurring_usage_charge/confirm?signature=1543b02176c185b4bfe70303b7f2b300&adjust_id=372273239407212535",
        "created_at": "2024-04-23T06:26:46Z",
        "updated_at": "2024-04-23T06:40:51Z"
    }
}
```

404

**application/json**

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

**数据结构**

- `errors` string[]

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

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

422

**text/plain**

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

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "RecurringChargeId is required"
  ]
}
```

```shell
{
  "errors": [
    "RecurringChargeId is required"
  ]
}
```
