Update a PricingPlan object.
Learn more about calling API v2 endpoints.Parameters
- idstringRequired
The ID of the PricingPlan to update.
- activeboolean
Whether the PricingPlan is active.
- descriptionstring
Description of pricing plan subscription.
- display_
namestring Display name of the PricingPlan. Maximum 250 characters.
- live_
versionstring The ID of the live version of the PricingPlan.
- lookup_
keystring An internal key you can use to search for a particular PricingPlan. Maximum length of 200 characters.
- metadatamap
Set of key-value pairs that you can attach to an object.
Returns
Response attributes
- idstring
Unique identifier for the PricingPlan.
- objectstring, value is "v2.billing.pricing_plan"
String representing the object’s type. Objects of the same type share the same value of the object field.
- activeboolean
Whether the PricingPlan is active.
- createdtimestamp
Time at which the object was created.
- currencystring
The currency of the PricingPlan.
- descriptionnullable string
A description for pricing plan subscription. Maximum length of 250 characters.
- display_
namestring Display name of the PricingPlan.
- latest_
versionstring The ID of the latest version of the PricingPlan.
- live_
versionnullable string The ID of the live version of the PricingPlan.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - lookup_
keynullable string An internal key you can use to search for a particular PricingPlan. Maximum length of 200 characters.
- metadatanullable map
Set of key-value pairs that you can attach to an object.
- tax_
behaviorenum The Stripe Tax tax behavior - whether the PricingPlan is inclusive or exclusive of tax.
Possible enum valuesexclusive
Price excludes tax.
inclusive
Price includes tax.
Returned when the provided description is longer than the maximum length of 250 characters.
Returned when another object of the same type already has the given lookup key.
Returned when the provided pricing_plan ID cannot be found.
Returned when the provided pricing_plan_version ID cannot be found.
{ "active": true, "created": "2025-01-01T00:00:00.000Z", "currency": "usd", "display_name": "Updated Pro Pricing Plan", "id": "bpp_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "latest_version": "bppv_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "live_version": "bppv_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "lookup_key": "updated-pro-pricing-plan", "metadata": { "existing_key": "updated_value", "new_key": "new_value" }, "object": "v2.billing.pricing_plan", "tax_behavior": "exclusive", "livemode": true}
Update a PricingPlanComponent object.
Learn more about calling API v2 endpoints.Parameters
- idstringRequired
The ID of the PricingPlanComponent to update.
- pricing_
plan_ idstringRequired The ID of the PricingPlan the component belongs to.
- lookup_
keystring An identifier that can be used to find this component. Maximum length of 200 characters.
- metadatamap
Set of key-value pairs that you can attach to an object.
Returns
Response attributes
- idstring
Unique identifier for the PricingPlanComponent.
- objectstring, value is "v2.billing.pricing_plan_component"
String representing the object’s type. Objects of the same type share the same value of the object field.
- createdtimestamp
Time at which the object was created.
- license_
feenullable object Details if this component is a LicenseFee.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - lookup_
keynullable string An internal key you can use to search for a particular PricingPlanComponent.
- metadatanullable map
Set of key-value pairs that you can attach to an object.
- pricing_
planstring The ID of the PricingPlan this component belongs to.
- pricing_
plan_ versionstring The ID of the PricingPlanVersion this component belongs to.
- rate_
cardnullable object Details if this component is a RateCard.
- service_
actionnullable objectPreview feature Details if this component is a ServiceAction.
- typeenum
The type of the PricingPlanComponent.
Possible enum valueslicense_
fee A LicenseFee component of a PricingPlan.
rate_
card A RateCard component of a PricingPlan.
service_
action A ServiceAction component of a PricingPlan.
Returned when another object of the same type already has the given lookup key.
Returned when trying to update a pricing plan component that is not available in the latest pricing plan version.
Returned when trying to create or modify a subscription for an inactive pricing plan.
Returned when the provided pricing_plan_component ID cannot be found.
Returned when the provided pricing_plan ID cannot be found.
{ "created": "2025-01-01T00:00:00.000Z", "id": "bppc_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "lookup_key": "updated-monthly-fee-component", "metadata": { "existing_key": "updated_value", "new_key": "new_value" }, "object": "v2.billing.pricing_plan_component", "pricing_plan": "bpp_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "pricing_plan_version": "bppv_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "type": "license_fee", "livemode": true, "license_fee": { "id": "licf_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "version": "licfv_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy" }}
Retrieve a PricingPlan object.
Learn more about calling API v2 endpoints.Parameters
- idstringRequired
The ID of the PricingPlan to retrieve.
Returns
Response attributes
- idstring
Unique identifier for the PricingPlan.
- objectstring, value is "v2.billing.pricing_plan"
String representing the object’s type. Objects of the same type share the same value of the object field.
- activeboolean
Whether the PricingPlan is active.
- createdtimestamp
Time at which the object was created.
- currencystring
The currency of the PricingPlan.
- descriptionnullable string
A description for pricing plan subscription. Maximum length of 250 characters.
- display_
namestring Display name of the PricingPlan.
- latest_
versionstring The ID of the latest version of the PricingPlan.
- live_
versionnullable string The ID of the live version of the PricingPlan.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - lookup_
keynullable string An internal key you can use to search for a particular PricingPlan. Maximum length of 200 characters.
- metadatanullable map
Set of key-value pairs that you can attach to an object.
- tax_
behaviorenum The Stripe Tax tax behavior - whether the PricingPlan is inclusive or exclusive of tax.
Possible enum valuesexclusive
Price excludes tax.
inclusive
Price includes tax.
Returned when the provided pricing_plan ID cannot be found.
{ "active": true, "created": "2025-01-01T00:00:00.000Z", "currency": "usd", "display_name": "Pro Pricing Plan", "id": "bpp_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "latest_version": "bppv_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "live_version": "bppv_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "lookup_key": "pro-pricing-plan", "metadata": { "key": "value" }, "object": "v2.billing.pricing_plan", "tax_behavior": "exclusive", "livemode": true}
Retrieve a PricingPlanComponent object.
Learn more about calling API v2 endpoints.Parameters
- idstringRequired
The ID of the PricingPlanComponent to retrieve.
- pricing_
plan_ idstringRequired The ID of the PricingPlan the component belongs to.
Returns
Response attributes
- idstring
Unique identifier for the PricingPlanComponent.
- objectstring, value is "v2.billing.pricing_plan_component"
String representing the object’s type. Objects of the same type share the same value of the object field.
- createdtimestamp
Time at which the object was created.
- license_
feenullable object Details if this component is a LicenseFee.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - lookup_
keynullable string An internal key you can use to search for a particular PricingPlanComponent.
- metadatanullable map
Set of key-value pairs that you can attach to an object.
- pricing_
planstring The ID of the PricingPlan this component belongs to.
- pricing_
plan_ versionstring The ID of the PricingPlanVersion this component belongs to.
- rate_
cardnullable object Details if this component is a RateCard.
- service_
actionnullable objectPreview feature Details if this component is a ServiceAction.
- typeenum
The type of the PricingPlanComponent.
Possible enum valueslicense_
fee A LicenseFee component of a PricingPlan.
rate_
card A RateCard component of a PricingPlan.
service_
action A ServiceAction component of a PricingPlan.
Returned when the provided pricing_plan_component ID cannot be found.
Returned when the provided pricing_plan ID cannot be found.
{ "created": "2025-01-01T00:00:00.000Z", "id": "bppc_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "lookup_key": "monthly-fee-component", "metadata": { "key": "value" }, "object": "v2.billing.pricing_plan_component", "pricing_plan": "bpp_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "pricing_plan_version": "bppv_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "type": "license_fee", "livemode": true, "license_fee": { "id": "licf_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "version": "licfv_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy" }}
Retrieve a specific version of a PricingPlan.
Learn more about calling API v2 endpoints.Parameters
- idstringRequired
The ID of the PricingPlanVersion to retrieve.
- pricing_
plan_ idstringRequired The ID of the PricingPlan the version belongs to.
Returns
Response attributes
- idstring
Unique identifier for the PricingPlanVersion.
- objectstring, value is "v2.billing.pricing_plan_version"
String representing the object’s type. Objects of the same type share the same value of the object field.
- createdtimestamp
Time at which the object was created.
- end_
datetimestamp The timestamp when this version became inactive.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - pricing_
planstring The ID of the PricingPlan this version belongs to.
- start_
datetimestamp The timestamp when this version became active.
Returned when the provided pricing_plan ID cannot be found.
Returned when the provided pricing_plan_version ID cannot be found.
{ "created": "2025-01-01T00:00:00.000Z", "end_date": "2025-12-31T23:59:59.000Z", "id": "bppv_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "object": "v2.billing.pricing_plan_version", "pricing_plan": "bpp_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "start_date": "2025-01-01T00:00:00.000Z", "livemode": true}