v1
latestOpenAPI 3.1.0AGPL-3.0-only2026-07-1773264353.7 KBSubscriptions
Create subscription
Create a new subscription for a customer with a specific plan.
post/api/v1/subscriptions
Request body
Example request
{
"add_ons": [
{
"add_on_id": "add_7n42DGM5Tflk9n8mt7Fhc7",
"customization": {
"price_entry": {
"id": "pri_7n42DGM5Tflk9n8mt7Fhc7"
}
}
}
],
"end_date": "2025-11-01",
"payment_methods_config": {
"account_id": "ba_7n42DGM5Tflk9n8mt7Fhc7"
},
"plan_id": "plan_7n42DGM5Tflk9n8mt7Fhc7",
"price_components": {
"extra_components": [
{
"price_entry": {
"id": "pri_7n42DGM5Tflk9n8mt7Fhc7"
},
"product_ref": {
"id": "prd_7n42DGM5Tflk9n8mt7Fhc7"
}
}
],
"overridden_components": [
{
"component_id": "price_7n42DGM5Tflk9n8mt7Fhc7",
"price_entry": {
"id": "pri_7n42DGM5Tflk9n8mt7Fhc7"
}
}
],
"parameterized_components": [
{
"component_id": "price_7n42DGM5Tflk9n8mt7Fhc7"
}
],
"remove_components": [
"price_7n42DGM5Tflk9n8mt7Fhc7"
]
},
"start_date": "2024-11-01"
}Response
Subscription successfully created
Example response
{
"add_ons": [
{
"add_on_id": "add_7n42DGM5Tflk9n8mt7Fhc7",
"fee": {
"metric_id": "bm_7n42DGM5Tflk9n8mt7Fhc7"
},
"id": "sub_add_7n42DGM5Tflk9n8mt7Fhc7"
}
],
"applied_coupons": [
{
"applied_coupon": {
"coupon_id": "cou_7n42DGM5Tflk9n8mt7Fhc7",
"id": "sub_cou_7n42DGM5Tflk9n8mt7Fhc7"
},
"coupon": {
"id": "cou_7n42DGM5Tflk9n8mt7Fhc7"
}
}
],
"components": [
{
"fee": {
"metric_id": "bm_7n42DGM5Tflk9n8mt7Fhc7"
},
"price_component_id": "price_7n42DGM5Tflk9n8mt7Fhc7",
"product_id": "prd_7n42DGM5Tflk9n8mt7Fhc7"
}
],
"currency": "EUR",
"customer_id": "cus_7n42DGM5Tflk9n8mt7Fhc7",
"entitlements": [
{
"feature_id": "feat_7n42DGM5Tflk9n8mt7Fhc7",
"id": "ent_7n42DGM5Tflk9n8mt7Fhc7"
}
],
"id": "sub_7n42DGM5Tflk9n8mt7Fhc7",
"payment_methods_config": {
"account_id": "ba_7n42DGM5Tflk9n8mt7Fhc7"
},
"plan_id": "plan_7n42DGM5Tflk9n8mt7Fhc7",
"plan_version_id": "plv_7n42DGM5Tflk9n8mt7Fhc7"
}