**Version: 202201**

# Update The Capped Amount Of Recurring Application Charge

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

Update the capped amount for a recurring application charge.

## Request

**Path Parameters**

- `recurring_charge_id` string (required)

**application/json**

**Body | Example**

**Body**

- `capped_amount` float (required)

  The maximum usage fee must be greater than the original maximum

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

## Responses

**200 | 404 | 422**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `recurring_application_charge` object

  - `id` string

    **Example:** `372269669345671159`
  - `name` string

    **Example:** `test`
  - `price` string

    **Example:** `100`
  - `activated_on` string

    **Example:** `2024-04-23T00:00:00Z`
  - `billing_on` string

    **Example:** `2024-05-23T00:00:00Z`
  - `cancelled_on`
  - `capped_amount` string

    **Example:** `10`
  - `return_url` string

    **Example:** `https://shoplazza.com`
  - `status` string

    **Example:** `active`
  - `terms` string

    **Example:** `terms`
  - `test` boolean

    **Default value:** `true`

    **Example:** `false`
  - `trial_days` integer

    **Default value:** `0`

    **Example:** `0`
  - `trial_ends_on`
  - `update_capped_amount_url` string

    **Example:** `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

    **Example:** `2024-04-23T06:26:46Z`
  - `updated_at` string

    **Example:** `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**

**Schema | Example | Result**

**Schema**

- `errors` string[]

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

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

422

**text/plain**

**Schema | Example | Result**

**Schema**

- `errors` string[]

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

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