Create a plan
Changed onCreate a new plan with components and pricing. Set status to ACTIVE to publish immediately, or DRAFT to stage for review.
Request
- The document declares no server URL.
- AuthHTTP bearer
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"
}
],
"product_family_id": "pf_7n42DGM5Tflk9n8mt7Fhc7",
"trial": {
"trialing_plan_id": "plan_7n42DGM5Tflk9n8mt7Fhc7"
}
}Response
Plan created
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