---
title: "Delete a fixed charge"
method: DELETE
path: "/plans/{code}/fixed_charges/{fixed_charge_code}"
tags: ["plans"]
---

# Delete a fixed charge

`DELETE /plans/{code}/fixed_charges/{fixed_charge_code}`

This endpoint deletes a specific fixed charge from a plan.

## Request body

- FixedChargeDeleteInput
  - `fixed_charge` object
    - `cascade_updates` boolean — When set to `true`, the deletion will be cascaded to the children plans.

## Response `200`

Fixed charge deleted

- FixedCharge
  - `fixed_charge` FixedChargeObject, required
    - `lago_id` string, uuid, required — Unique identifier of the fixed charge, created by Lago.
    - `lago_add_on_id` string, uuid, required — Unique identifier of the add-on associated with this fixed charge.
    - `invoice_display_name` string, required — Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name.
    - `add_on_code` string, required — Unique code used to identify the add-on.
    - `created_at` string, date-time, required — The date and time when the fixed charge was created. It is expressed in UTC format according to the ISO 8601 datetime standard.
    - `code` string, required — Unique code for the fixed charge.
    - `charge_model` 'standard' | 'graduated' | 'volume', required — The charge model for the fixed charge. Only `standard`, `graduated`, and `volume` models are supported for fixed charges.
    - `pay_in_advance` boolean, required — This field determines the billing timing for this fixed charge. When set to `true`, the charge is due and invoiced immediately. Conversely, when set to false, the charge is due and invoiced at the end of each billing period.
    - `prorated` boolean, required — Specifies whether a fixed charge is prorated based on the remaining number of days in the billing period or billed fully. - If set to `true`, the charge is prorated based on the remaining days in the current billing period. - If set to `false`, the charge is billed in full. - If not defined in the request, default value is `false`.
    - `properties` FixedChargeProperties, required
      - `amount` string — - The unit price, excluding tax, for a `standard` charge model. It is expressed as a decimal value. - The amount, excluding tax, for a complete set of units in a `package` charge model. It is expressed as a decimal value.
      - `graduated_ranges` object[] — Graduated ranges, sorted from bottom to top tiers, used for a `graduated` charge model.
        - `from_value` integer, required — Specifies the lower value of a tier for a `graduated` charge model. It must be either 0 or the previous range's `to_value + 1` to maintain the proper sequence of values.
        - `to_value` integer, nullable, required — Specifies the highest value of a tier for a `graduated` charge model. - This value must be higher than the from_value of the same tier. - This value must be null for the last tier.
        - `flat_amount` string, required — The flat amount for a whole tier, excluding tax, for a `graduated` charge model. It is expressed as a decimal value.
        - `per_unit_amount` string, required — The unit price, excluding tax, for a specific tier of a `graduated` charge model. It is expressed as a decimal value.
      - `volume_ranges` object[] — Volume ranges, sorted from bottom to top tiers, used for a `volume` charge model.
        - `from_value` integer, required — Specifies the lower value of a tier for a `volume` charge model. It must be either 0 or the previous range's `to_value + 1` to maintain the proper sequence of values.
        - `to_value` integer, nullable, required — Specifies the highest value of a tier for a `volume` charge model. - This value must be higher than the `from_value` of the same tier. - This value must be `null` for the last tier.
        - `flat_amount` string, required — The flat amount for a whole tier, excluding tax, for a `volume` charge model. It is expressed as a decimal value.
        - `per_unit_amount` string, required — The unit price, excluding tax, for a specific tier of a `volume` charge model. It is expressed as a decimal value.
    - `units` number, required — The number of units for the fixed charge. When retrieved through a subscription-scoped endpoint (e.g. `GET /subscriptions/{external_id}/fixed_charges`), this reflects the per-subscription unit override when one exists, and falls back to the plan-level units otherwise. Plan-scoped endpoints always return the plan-level units.
    - `lago_parent_id` string, uuid, nullable — Unique identifier of the parent fixed charge (for plan versions).
    - `taxes` TaxObject[] — List of taxes applied to the fixed charge.
      - `lago_id` string, uuid, required — Unique identifier of the tax, created by Lago.
      - `name` string, required — Name of the tax.
      - `code` string, required — Unique code used to identify the tax associated with the API request.
      - `description` string, nullable — Internal description of the tax
      - `rate` number, required — The percentage rate of the tax
      - `applied_to_organization` boolean, required — **Deprecated.** This field will be removed in a future version. When set to true, it applies the tax to the organization's default billing entity. To apply or remove a tax from any billing entity (including the default one), please use the `PUT /billing_entities/:code` endpoint instead.
      - `created_at` string, date-time, required — Creation date of the tax.

## Other responses

- `401` — Unauthorized error
- `404` — Not Found error

---

[API](https://skmtc.dev/getlago/apis/lago-api-documentation.md) · [All operations](https://skmtc.dev/getlago/apis/lago-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getlago/lago-api-documentation/revisions/6e969ef3bb45/schema)
