Subscriptions
Create Subscription
Create a new Stripe subscription for email validation credits
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_...)Request Body
Stripe price ID for the plan (Starter or Agency)
- Starter Plan: 20,000 credits/month
- Agency Plan: 50,000 credits/month
Stripe payment method ID from client-side Stripe.jsExample:
pm_card_visa (test mode) or pm_1ABC... (live mode)Optional existing Stripe customer ID. If not provided, a new customer will be created.
Response
Stripe subscription ID (format:
sub_...)Subscription status:
active, trialing, past_due, canceledNumber of credits included in the plan (20,000 or 50,000)
ISO 8601 timestamp of current billing period start
ISO 8601 timestamp of current billing period end
Whether the subscription will cancel at the end of the current period
How It Works
-
Customer Creation: If
customer_idis not provided, a new Stripe customer is created using the user’s email from the API key. -
Payment Method Attachment: The provided
payment_method_idis attached to the customer. -
Subscription Creation: A new Stripe subscription is created with the specified
price_id. -
Credit Allocation: Credits are allocated to the user’s account based on the plan:
- Starter: 20,000 credits
- Agency: 50,000 credits
- Usage Tracking: As emails are validated, credits are consumed and usage is reported to Stripe for metered billing.
Credit Charging Logic
Only high-value emails are charged (our B2B outbound differentiator): ✅ Charged (1 credit):- Valid personal email (e.g., john@company.com)
b2b_outbound_quality: high- Not role-based, not catch-all, not invalid
- Role-based emails (info@, support@) → Low B2B value
- Catch-all domains → Unverifiable mailboxes
- Invalid emails → Don’t exist
- Admin users (matt@closedwonleads.com) → Unlimited credits
Plans
Starter Plan
- Price: $99/month
- Credits: 20,000 high-value validations/month
- Best for: Teams sending 50k-200k emails/month
- Price ID:
price_1SlRyVHb8IrVorYVk6Hn17s7(test mode)
Agency Plan
- Price: $199/month
- Credits: 50,000 high-value validations/month
- Best for: Agencies sending 200k-1M+ emails/month
- Price ID: Contact support for Agency plan ID
Error Responses
400 Bad Request
Missing required fields or invalid input:402 Payment Required
Payment method declined or insufficient funds:409 Conflict
User already has an active subscription:Related Endpoints
Get Current Subscription
Check subscription status and credit balance
Cancel Subscription
Cancel subscription at period end
Notes
- Test Mode: Use Stripe test cards for testing (e.g.,
4242 4242 4242 4242) - Webhook Events: Subscription creation triggers
customer.subscription.createdwebhook - Credits Rollover: Credits do NOT roll over - they reset each billing period
- Prorated Upgrades: Upgrading mid-period is prorated automatically by Stripe