younifyd
Menu

Remove Plan Add On

Remove an add-on

DELETE/plans/{plan_id}/add_ons/{add_on_id}

Use it in a workflow

  1. Add a step and choose the Recurly connector.
  2. Pick the Remove Plan Add On action (under add-on).
  3. Fill in the fields below, then reference the result from later steps as {{removePlanAddOn.response.data}}.

Request

Path parameters

plan_idstringrequired

Plan ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-gold`.

add_on_idstringrequired

Add-on ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-gold`.

Response

Returns 200 with an object. Read it in later steps with {{removePlanAddOn.response.data.<field>}}.

idstring
objectstring
plan_idstring
codestring

The unique identifier for the add-on within its plan.

statestring

Add-ons can be either active or inactive.

One ofactiveinactive

namestring

Describes your add-on and will appear in subscribers' invoices.

add_on_typestring

Whether the add-on type is fixed, or usage-based.

One offixedusage

usage_typestring

Type of usage, returns usage type if `add_on_type` is `usage`.

One ofpricepercentage

usage_calculation_typestring

The type of calculation to be employed for an add-on. Cumulative billing will sum all usage records created in the current billing cycle. Last-in-period billing will apply only the most recent usage record in the billing period. If no value is specified, cumulative billing will be used.

One ofcumulativelast_in_period

usage_percentagenumber (float)

The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places. A value between 0.0 and 100.0.

measured_unit_idstring

System-generated unique identifier for an measured unit associated with the add-on.

liability_gl_account_idstring

The ID of a general ledger account. General ledger accounts are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.

revenue_gl_account_idstring

The ID of a general ledger account. General ledger accounts are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.

performance_obligation_idstring

The ID of a performance obligation. Performance obligations are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.

accounting_codestring

Accounting code for invoice line items for this add-on. If no value is provided, it defaults to add-on's code.

revenue_schedule_typestring

When this add-on is invoiced, the line item will use this revenue schedule. If `item_code`/`item_id` is part of the request then `revenue_schedule_type` must be absent in the request as the value will be set from the item.

One ofat_range_endat_range_startevenlynever

avalara_transaction_typeinteger

Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the add-on is taxed. Refer to [the documentation](https://help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types) for more available t/s types.

avalara_service_typeinteger

Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the add-on is taxed. Refer to [the documentation](https://help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types) for more available t/s types.

tax_codestring

Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. If `item_code`/`item_id` is part of the request then `tax_code` must be absent.

harmonized_system_codestring

The Harmonized System (HS) code is an internationally standardized system of names and numbers to classify traded products. The HS code, sometimes called Commodity Code, is used by customs authorities around the world to identify products when assessing duties and taxes. The HS code may also be referred to as the tariff code or customs code. Values should contain only digits and decimals.

display_quantityboolean

Determines if the quantity field is displayed on the hosted pages for the add-on.

Default false

default_quantityinteger

Default quantity for the hosted pages.

Default 1

optionalboolean

Whether the add-on is optional for the customer to include in their purchase on the hosted payment page. If false, the add-on will be included when a subscription is created through the Recurly UI. However, the add-on will not be included when a subscription is created through the API.

currenciesarray<object>
currencystringrequired

3-letter ISO 4217 currency code.

unit_amountnumber (float)

Allows up to 2 decimal places. Required unless `unit_amount_decimal` is provided.

unit_amount_decimalstring

Allows up to 9 decimal places. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.

tax_inclusiveboolean

This field is deprecated. Please do not use it.

Default false

itemobject

Just the important parts.

idstring
objectstring
codestring

Unique code to identify the item.

statestring

The current state of the item.

One ofactiveinactive

namestring

This name describes your item and will appear on the invoice when it's purchased on a one time basis.

descriptionstring

Optional, description.

tier_typestring

The pricing model for the add-on. For more information, [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](https://recurly.com/developers/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.

One offlattieredstairstepvolumeDefault "flat"

usage_timeframestring

The time at which usage totals are reset for billing purposes.

One ofbilling_periodsubscription_termDefault "billing_period"

tiersarray<object>
ending_quantityinteger

Ending quantity for the tier. This represents a unit amount for unit-priced add ons. Must be left empty if it is the final tier.

usage_percentagestring

(deprecated) -- Use the percentage_tiers object instead.

currenciesarray<object>3 fields
percentage_tiersarray<object>

This feature is currently in development and requires approval and enablement, please contact support.

currencystring

3-letter ISO 4217 currency code.

tiersarray<object>2 fields
external_skustring

Optional, stock keeping unit to link the item to other inventory systems.

created_atstring (date-time)
updated_atstring (date-time)
deleted_atstring (date-time)
json
{
  "code": "string",
  "name": "string",
  "id": "string",
  "object": "string",
  "plan_id": "string",
  "state": "active",
  "add_on_type": "fixed",
  "usage_type": "price",
  "usage_calculation_type": "cumulative",
  "usage_percentage": 0,
  "measured_unit_id": "string",
  "liability_gl_account_id": "string"
}

Need more? See the Recurly guide for connection setup and behaviour shared by every action.

Remove Plan Add On — Recurly — Documentation