Subscriptions
Cancel Subscription
Cancel subscription at the end of the current billing period
POST
Documentation Index
Fetch the complete documentation index at: https://gtmapis.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
Your API key (format:
gtm_test_... or gtm_live_...)Behavior
- Immediate Effect: Sets
cancel_at_period_end=trueimmediately - Service Continuity: You can still validate emails until period ends
- Credit Access: Full credit balance remains available until period end
- Billing: No future charges after current period
Response
Stripe subscription ID
Subscription status (still
active until period ends)Set to
true after successful cancellationWhen the subscription will actually end (ISO 8601 timestamp)
What Happens After Cancellation
Immediate (after API call)
- ✅
cancel_at_period_endflag set totrue - ✅ Stripe webhook
customer.subscription.updatedtriggered - ✅ You receive confirmation message
Until Period End (e.g., Jan 7 - Feb 7)
- ✅ Subscription remains
active - ✅ All credits still available
- ✅ Email validation works normally
- ✅ No additional charges
At Period End (e.g., Feb 7 00:00 UTC)
- ❌ Subscription status changes to
canceled - ❌ Credits set to 0
- ❌ Email validation blocked (402 Payment Required)
- ❌ No future billing
Changed Your Mind?
You can reactivate before the period ends:Error Responses
404 Not Found
No active subscription to cancel:409 Conflict
Subscription already set to cancel:Best Practices
Before Canceling
- Download Validation History: Export your validation results
- Check Credits Remaining: Use up remaining credits before period ends
- Note Period End Date: Plan accordingly if you need to reactivate
For Temporary Pauses
If you just need a break, consider:- Using up remaining credits
- Canceling a few days before period end
- Reactivating when needed (instant credit restoration)
Related Endpoints
Reactivate Subscription
Undo cancellation before period ends
Get Current Subscription
Check cancellation status