Adding paused subscriptions
How to record paused and resumed subscriptions using subscription events in the ChartMogul API.
When a customer pauses their subscription, send ChartMogul a subscription_paused event. When they resume it, send a subscription_resumed event. ChartMogul then shows the subscription as Paused for the length of the pause, and handles its MRR (Monthly Recurring Revenue) and churn according to your paused subscription setting.
This tutorial covers sources you send data to through the Import API. For Recurly and Chargebee, ChartMogul imports pauses automatically.
Before you begin
Choose how ChartMogul should treat paused subscriptions in Settings > Data & Integrations > Reporting Settings, under When a subscription is paused. The setting applies to every supported source:
| Option | Subscription status | MRR while paused | Churn |
|---|---|---|---|
| Set status to Paused and keep MRR unchanged (default) | Paused | Unchanged | None |
| Set status to Paused and MRR to $0 | Paused | $0, restored when the subscription resumes | MRR churn at the pause, recovered when it resumes |
| Set status to Cancelled and record churn | Cancelled | $0 | Churn on the pause date |
Learn more about handling paused subscriptions.
1. Pause a subscription
Use the Create a Subscription Event endpoint with event_type set to subscription_paused:
curl -X POST "https://api.chartmogul.com/v1/subscription_events" \
-u YOUR_API_KEY: \
-H "Content-Type: application/json" \
-d '{
"subscription_event":
{
"external_id": "evnt_pause_001",
"customer_external_id": "cus_0001",
"data_source_uuid": "ds_1fm3eaac-62d0-31ec-clf4-4bf0mbe81aba",
"subscription_external_id": "sub_0001",
"event_type": "subscription_paused",
"event_date": "2026-11-01",
"effective_date": "2026-11-01"
}
}'
Keep in mind the following:
- Pause and resume events need
customer_external_id,data_source_uuid,subscription_external_id,event_date, andeffective_date. - Don’t send
plan_external_id,amount_in_cents,currency, orquantity. ChartMogul keeps the subscription’s current plan and amount. event_datemust be on or beforeeffective_date, or ChartMogul rejects the event. To record a pause scheduled for a future date, seteffective_dateto that date.
2. Resume the subscription
When the customer resumes, send a subscription_resumed event for the same subscription:
curl -X POST "https://api.chartmogul.com/v1/subscription_events" \
-u YOUR_API_KEY: \
-H "Content-Type: application/json" \
-d '{
"subscription_event":
{
"external_id": "evnt_resume_001",
"customer_external_id": "cus_0001",
"data_source_uuid": "ds_1fm3eaac-62d0-31ec-clf4-4bf0mbe81aba",
"subscription_external_id": "sub_0001",
"event_type": "subscription_resumed",
"event_date": "2026-12-01",
"effective_date": "2026-12-01"
}
}'
The pause also ends if you import a new paid invoice for the subscription first. ChartMogul treats the payment as the resume, even without a subscription_resumed event.
If the customer cancels instead of resuming, send a subscription_cancelled event. ChartMogul records churn as usual.
A subscription can be paused and resumed any number of times. ChartMogul records each pause separately.
Alternative: pausing with a $0 plan
If ChartMogul rejects your subscription_paused events because paused subscriptions aren’t enabled for your account, you can approximate a pause by moving the subscription to a $0 plan. The customer stays Active, and ChartMogul reports the switch as Contraction.
1. Create a paused plan
Create a plan for paused subscriptions using the Create a Plan endpoint:
# Example paused plan
curl -X POST "https://api.chartmogul.com/v1/plans" \
-u YOUR_API_KEY: \
-H "Content-Type: application/json" \
-d '{
"data_source_uuid": "ds_fef05d54-47b4-431b-aed2-eb6b9e545430",
"name": "Paused",
"interval_count": 1,
"interval_unit": "month",
"external_id": "plan_0001"
}'
2. Add a $0 invoice
Use the Import Invoices endpoint to add a $0 invoice with the paused plan created in Step 1. Keep in mind the following:
- Set
amount_in_centsto 0 or thediscount_amount_in_centsto be equal to theamount_in_cents, resulting in a 100% discount. - Use the
UUIDof the plan created in Step 1. - Use the
subscription_external_IDof the subscription you are pausing. This allows ChartMogul to track the subscription moving to a free plan.
# Example paused plan
curl -X POST "https://api.chartmogul.com/v1/import/customers/cus_f466e33d-ff2b-4a11-8f85-417eb02157a7/invoices" \
-u YOUR_API_KEY: \
-H "Content-Type: application/json" \
-d '{
"invoices":
[
{
"external_id": "INV123",
"date": "2022-11-01 00:00:00",
"currency": "USD",
"due_date": "2022-11-15 00:00:00",
"customer_external_id": "cus_0001",
"data_source_uuid": "ds_fef05d54-47b4-431b-aed2-eb6b9e545430",
"line_items": [
{
"type": "subscription",
"subscription_external_id": "sub_0001",
"plan_uuid":"pl_eed05d54-75b4-431b-adb2-eb6b9e543206",
"service_period_start": "2022-11-01 00:00:00",
"service_period_end": "2022-12-01 00:00:00",
"amount_in_cents": 0
}
]
}
]
}'
ChartMogul reports the switch as Contraction and continues to classify the customer as Active.
A $0 invoice only needs to be sent once. When a customer unpauses their subscription, issue a new invoice updating the plan UUID and amount_in_cents so they contribute to MRR. If a customer cancels their subscription, send a cancellation event to classify the subscription as Cancelled.
Review your data settings. With the $0 plan method, review your Handling Past-due Subscriptions and Free Customer Handling data settings, as these may unintentionally churn customers with paused subscriptions.