---
title: "Delete a plan"
method: DELETE
path: "/plans/{code}"
tags: ["plans"]
---

# Delete a plan

`DELETE /plans/{code}`

This endpoint deletes a specific plan. Note that this plan could be associated with active subscriptions.

## Response `200`

Plan deleted

- Plan
  - `plan` PlanObject, required
    - `lago_id` string, uuid, required — Unique identifier of the plan created by Lago.
    - `name` string, required — The name of the plan.
    - `invoice_display_name` string — Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the plan will be used as the default display name.
    - `created_at` string, date-time, required — The date and time when the plan was created. It is expressed in UTC format according to the ISO 8601 datetime standard. This field provides the timestamp for the exact moment when the plan was initially created.
    - `code` string, required — The code of the plan. It serves as a unique identifier associated with a particular plan. The code is typically used for internal or system-level identification purposes, like assigning a subscription, for instance.
    - `interval` 'weekly' | 'monthly' | 'quarterly' | 'semiannual' | 'yearly', required — The interval used for recurring billing. It represents the frequency at which subscription billing occurs. The interval can be one of the following values: `yearly`, `semiannual`, `quarterly`, `monthly` or `weekly`.
    - `description` string — The description on the plan.
    - `amount_cents` integer, required — The base cost of the plan, excluding any applicable taxes, that is billed on a recurring basis. This value is defined at 0 if your plan is a pay-as-you-go plan.
    - `amount_currency` 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'ISK' | 'JMD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KRW' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SEK' | 'SGD' | 'SHP' | 'SLL' | 'SOS' | 'SRD' | 'STD' | 'SZL' | 'THB' | 'TJS' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW', required
    - `trial_period` number — The duration in days during which the base cost of the plan is offered for free.
    - `pay_in_advance` boolean — This field determines the billing timing for the plan. When set to `true`, the base cost of the plan is due at the beginning of each billing period. Conversely, when set to `false`, the base cost of the plan is due at the end of each billing period.
    - `bill_charges_monthly` boolean, nullable — This field, when set to `true`, enables to invoice usage-based charges on monthly basis, even if the cadence of the plan is yearly or semiannual. This allows customers to pay charges overage on a monthly basis. This can be set to true only if the plan's interval is `yearly` or `semiannual`.
    - `bill_fixed_charges_monthly` boolean, nullable — This field, when set to `true`, enables to invoice fixed charges on monthly basis, even if the cadence of the plan is yearly or semiannual. This allows customers to pay fixed charges on a monthly basis. This can be set to true only if the plan's interval is `yearly` or `semiannual`.
    - `minimum_commitment` MinimumCommitmentObject, nullable
      - `lago_id` string, uuid, required — Unique identifier of the minimum commitment, created by Lago.
      - `plan_code` string — The unique code representing the plan to be attached to the customer.
      - `amount_cents` integer, required — The amount of the minimum commitment in cents.
      - `invoice_display_name` string — Specifies the name that will be displayed on an invoice. If no value is set for this field, the default name will be used as the display name.
      - `interval` 'weekly' | 'monthly' | 'quarterly' | 'semiannual' | 'yearly' — The interval used for recurring billing. It represents the frequency at which subscription billing occurs. The interval can be one of the following values: `yearly`, `semiannual`, `quarterly`, `monthly` or `weekly`.
      - `created_at` string, date-time, required — The date and time when the minimum commitment was created. It is expressed in UTC format according to the ISO 8601 datetime standard. This field provides the timestamp for the exact moment when the minimum commitment was initially created.
      - `updated_at` string, date-time — The date and time when the minimum commitment was updated. It is expressed in UTC format according to the ISO 8601 datetime standard. This field provides the timestamp for the exact moment when the minimum commitment was initially created.
      - `taxes` TaxObject[] — All taxes applied to the minimum commitment.
        - `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.
    - `charges` ChargeObject[] — Additional usage-based charges for this plan.
      - `lago_id` string, uuid, required — Unique identifier of charge, created by Lago.
      - `lago_billable_metric_id` string, uuid, required — Unique identifier of the billable metric created by Lago.
      - `code` string, nullable — Unique code identifying the charge within the plan.
      - `billable_metric_code` string, required — Unique code identifying a billable metric.
      - `invoice_display_name` string, nullable — 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.
      - `created_at` string, date-time, required — The date and time when the charge was created. It is expressed in UTC format according to the ISO 8601 datetime standard.
      - `charge_model` 'dynamic' | 'graduated' | 'graduated_percentage' | 'package' | 'percentage' | 'standard' | 'volume', required — Specifies the pricing model used for the calculation of the final fee. It can be any of the following values: - [`dynamic`](https://docs.getlago.com/guide/plans/charges/charge-models/dynamic) - [`graduated_percentage`](https://docs.getlago.com/guide/plans/charges/charge-models/graduated-percentage) - [`graduated`](https://docs.getlago.com/guide/plans/charges/charge-models/graduated) - [`package`](https://docs.getlago.com/guide/plans/charges/charge-models/package) - [`percentage`](https://docs.getlago.com/guide/plans/charges/charge-models/percentage) - [`standard`](https://docs.getlago.com/guide/plans/charges/charge-models/standard) - [`volume`](https://docs.getlago.com/guide/plans/charges/charge-models/volume)
      - `pay_in_advance` boolean, required — This field determines the billing timing for this specific usage-based 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.
      - `invoiceable` boolean, required — This field specifies whether the charge should be included in a proper invoice. If set to `false`, no invoice will be issued for this charge. You can only set it to `false` when `pay_in_advance` is `true`.
      - `regroup_paid_fees` 'null' | 'invoice', nullable, required — This setting can only be configured if `pay_in_advance` is `true` and `invoiceable` is `false`. This field determines whether and when the charge fee should be included in the invoice. If `null`, no invoice will be issued for this charge fee. If `invoice`, an invoice will be generated at the end of the period, consolidating all charge fees with a succeeded payment status.
      - `prorated` boolean, required — Specifies whether a 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`.
      - `min_amount_cents` integer, required — The minimum spending amount required for the charge, measured in cents and excluding any applicable taxes. It indicates the minimum amount that needs to be charged for each billing period.
      - `properties` ChargeObjectProperties, required
        - `grouped_by` string[] — **Deprecated.** Replaced by `pricing_group_keys`. The list of event properties that are used to group the events on the invoice for a `standard` charge model.
        - `pricing_group_keys` string[] — The list of event properties that are used to group the events on the invoice.
        - `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.
        - `graduated_percentage_ranges` object[] — Graduated percentage ranges, sorted from bottom to top tiers, used for a `graduated_percentage` charge model.
          - `from_value` integer, required — Specifies the lower value of a tier for a `graduated_percentage` 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_percentage` charge model. - This value must be higher than the from_value of the same tier. - This value must be null for the last tier.
          - `rate` string, ^[0-9]+.?[0-9]*$, required — The percentage rate that is applied to the amount of each transaction in the tier for a `graduated_percentage` charge model. It is expressed as a decimal value.
          - `flat_amount` string, ^[0-9]+.?[0-9]*$, required — The flat amount for a whole tier, excluding tax, for a `graduated_percentage` charge model. It is expressed as a decimal value.
        - `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.
        - `free_units` integer — The quantity of units that are provided free of charge for each billing period in a `package` charge model. This field specifies the number of units that customers can use without incurring any additional cost during each billing cycle.
        - `package_size` integer — The quantity of units included in each pack or set for a `package` charge model. It indicates the number of units that are bundled together as a single package or set within the pricing structure.
        - `rate` string — The percentage rate that is applied to the amount of each transaction for a `percentage` charge model. It is expressed as a decimal value.
        - `fixed_amount` string — The fixed fee that is applied to each transaction for a `percentage` charge model. It is expressed as a decimal value.
        - `free_units_per_events` integer, nullable — The count of transactions that are not impacted by the `percentage` rate and fixed fee in a percentage charge model. This field indicates the number of transactions that are exempt from the calculation of charges based on the specified percentage rate and fixed fee.
        - `free_units_per_total_aggregation` string, nullable — The transaction amount that is not impacted by the `percentage` rate and fixed fee in a percentage charge model. This field indicates the portion of the transaction amount that is exempt from the calculation of charges based on the specified percentage rate and fixed fee.
        - `per_transaction_max_amount` string, ^[0-9]+.?[0-9]*$, nullable — Specifies the maximum allowable spending for a single transaction. Working as a transaction cap.
        - `per_transaction_min_amount` string, ^[0-9]+.?[0-9]*$, nullable — Specifies the minimum allowable spending for a single transaction. Working as a transaction floor.
        - `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.
        - `presentation_group_keys` object[] — Groups usage into sub-items on invoices for display only, without affecting pricing or aggregation.
          - `value` string — The event property to group by.
          - `options` object
            - `display_in_invoice` boolean
      - `filters` ChargeFilterObject[], required — List of filters used to apply differentiated pricing based on additional event properties.
        - `invoice_display_name` string, nullable, required — Specifies the name that will be displayed on an invoice. If no value is set for this field, the values of the filter will be used as the default display name.
        - `properties` ChargeProperties, required
          - `grouped_by` string[] — **Deprecated.** Replaced by `pricing_group_keys`. The list of event properties that are used to group the events on the invoice for a `standard` charge model.
          - `pricing_group_keys` string[] — The list of event properties that are used to group the events on the invoice.
          - `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.
          - `graduated_percentage_ranges` object[] — Graduated percentage ranges, sorted from bottom to top tiers, used for a `graduated_percentage` charge model.
            - `from_value` integer, required — Specifies the lower value of a tier for a `graduated_percentage` 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_percentage` charge model. - This value must be higher than the from_value of the same tier. - This value must be null for the last tier.
            - `rate` string, ^[0-9]+.?[0-9]*$, required — The percentage rate that is applied to the amount of each transaction in the tier for a `graduated_percentage` charge model. It is expressed as a decimal value.
            - `flat_amount` string, ^[0-9]+.?[0-9]*$, required — The flat amount for a whole tier, excluding tax, for a `graduated_percentage` charge model. It is expressed as a decimal value.
          - `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.
          - `free_units` integer — The quantity of units that are provided free of charge for each billing period in a `package` charge model. This field specifies the number of units that customers can use without incurring any additional cost during each billing cycle.
          - `package_size` integer — The quantity of units included in each pack or set for a `package` charge model. It indicates the number of units that are bundled together as a single package or set within the pricing structure.
          - `rate` string — The percentage rate that is applied to the amount of each transaction for a `percentage` charge model. It is expressed as a decimal value.
          - `fixed_amount` string — The fixed fee that is applied to each transaction for a `percentage` charge model. It is expressed as a decimal value.
          - `free_units_per_events` integer, nullable — The count of transactions that are not impacted by the `percentage` rate and fixed fee in a percentage charge model. This field indicates the number of transactions that are exempt from the calculation of charges based on the specified percentage rate and fixed fee.
          - `free_units_per_total_aggregation` string, nullable — The transaction amount that is not impacted by the `percentage` rate and fixed fee in a percentage charge model. This field indicates the portion of the transaction amount that is exempt from the calculation of charges based on the specified percentage rate and fixed fee.
          - `per_transaction_max_amount` string, ^[0-9]+.?[0-9]*$, nullable — Specifies the maximum allowable spending for a single transaction. Working as a transaction cap.
          - `per_transaction_min_amount` string, ^[0-9]+.?[0-9]*$, nullable — Specifies the minimum allowable spending for a single transaction. Working as a transaction floor.
          - `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.
        - `values` object, required — List of possible filter values. The key and values must match one of the billable metric filters.
      - `taxes` TaxObject[] — All taxes applied to the 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.
      - `applied_pricing_unit` object, nullable — The pricing unit applied to the charge.
        - `code` string, required — The code of the pricing unit.
        - `conversion_rate` string, required — The conversion rate from pricing units to the plan's currency.
      - `accepts_target_wallet` boolean, nullable — Specifies whether the charge accepts a target wallet for prepaid credits deduction.
      - `lago_parent_id` string, uuid, nullable — Unique identifier of the parent charge (if this is an override).
    - `fixed_charges` FixedChargeObject[] — List of fixed charges for this plan.
      - `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.
    - `taxes` TaxObject[] — All taxes applied to the plan.
      - `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.
    - `usage_thresholds` UsageThresholdObject[] — List of usage thresholds applied to the plan.
      - `lago_id` string, uuid, required — Unique identifier of the usage threshold created by Lago.
      - `threshold_display_name` string, nullable, required — The display name of the usage threshold.
      - `amount_cents` integer, required — The amount to reach to trigger a `progressive_billing` invoice.
      - `recurring` boolean, required — This field when set to `true` indicates that a `progressive_billing` invoice will be created every time the lifetime usage increases by the specified amount.
      - `created_at` string, date-time, required — The date and time when the usage threshold was created. It is expressed in UTC format according to the ISO 8601 datetime standard.
      - `updated_at` string, date-time, required — The date and time when the usage threshold was last updated. It is expressed in UTC format according to the ISO 8601 datetime standard.
    - `entitlements` PlanEntitlement[] — List of all feature entitlements and their privileges available for this plan.
      - `entitlement` PlanEntitlementObject, required
        - `code` string, required — Unique code used to identify the feature. Max 255 characters.
        - `name` string, nullable, required — Name of the feature. Max 255 characters.
        - `description` string, nullable, required — Description of the feature. Max 600 characters.
        - `privileges` PlanEntitlementPrivilegeObject[], required — Privileges associated with this feature. Each privilege must have a value assigned.
          - `code` string, required — Unique code for the privilege.
          - `name` string, nullable, required — Display name for the privilege.
          - `value_type` 'integer' | 'boolean' | 'string' | 'select', required — Data type of the privilege value. Default: string
          - `config` object, required
            - `select_options` string[] — Array of string, required only when value_type is `select`.
          - `value` union, required — Value assigned to this privilege in the entitlement. Type depends on the privilege's value_type.
            - integer — Value for integer type privileges
            - boolean — Value for boolean type privileges
            - string — Value for string or select type privileges
    - `metadata` MetadataObject, nullable — Custom metadata stored as key-value pairs. Keys are strings (max 100 characters), values can be strings (max 255 characters) or null.

## 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)
