Replace a plan
Changed onFull replacement of a plan's version. On a draft plan, updates in-place. On a published plan, creates a new version. Set status to DRAFT to stage as a new draft without publishing.
Request
- The document declares no server URL.
- AuthHTTP bearer
Path parameters
Plan ID
Request body
Example request
{
"add_ons": [
{
"add_on_id": "add_7n42DGM5Tflk9n8mt7Fhc7",
"price_id": "pri_7n42DGM5Tflk9n8mt7Fhc7"
}
],
"components": [
{
"fee": {
"metric_id": "bm_7n42DGM5Tflk9n8mt7Fhc7"
},
"product_id": "prd_7n42DGM5Tflk9n8mt7Fhc7"
}
],
"trial": {
"trialing_plan_id": "plan_7n42DGM5Tflk9n8mt7Fhc7"
}
}Response
Plan updated
Example response
{
"entitlements": [
{
"feature_id": "feat_7n42DGM5Tflk9n8mt7Fhc7",
"id": "ent_7n42DGM5Tflk9n8mt7Fhc7"
}
],
"id": "plan_7n42DGM5Tflk9n8mt7Fhc7",
"price_components": [
{
"fee": {
"metric_id": "bm_7n42DGM5Tflk9n8mt7Fhc7"
},
"id": "price_7n42DGM5Tflk9n8mt7Fhc7",
"product_id": "prd_7n42DGM5Tflk9n8mt7Fhc7"
}
],
"product_family": {
"id": "pf_7n42DGM5Tflk9n8mt7Fhc7"
},
"trial": {
"trialing_plan_id": "plan_7n42DGM5Tflk9n8mt7Fhc7"
},
"version_id": "plv_7n42DGM5Tflk9n8mt7Fhc7"
}Changes
- breaking
the
/////////request property format changed from no format todecimal - breaking
the
/////////request property format changed from no format todecimal - breaking
the
///////request property format changed from no format todecimal - breaking
the
///////request property format changed from no format todecimal - breaking
the
/////////request property format changed from no format todecimal - breaking
the
/////////request property format changed from no format todecimal - breaking
the
////////////request property format changed from no format todecimal - breaking
the
////////////request property format changed from no format todecimal - breaking
the response property
//////////////////became nullable for the status - breaking
the response property
//////////////////became nullable for the status - breaking
the response property
//////////////////became nullable for the status - breaking
the response property
//////////////////became nullable for the status - breaking
the response property
//////////////////became optional for the status - breaking
the response property
//////////////////became optional for the status - breaking
the response property
//////////////////became optional for the status - breaking
the response property
//////////////////became optional for the status - info
the request property
//////////////became nullable - info
the request property
//////////////became nullable - info
the request property
//////////////became nullable - info
the request property
//////////////became nullable - info
the request property
//////////////became optional - info
the request property
//////////////became optional - info
the request property
//////////////became optional - info
the request property
//////////////became optional
- breaking
- breaking
removed the required property
///////from the response with the status - warning
removed the optional property
///////from the response with the status
- breaking