Overview
Tresa Contafy offers flexible subscription plans for Mexican fiscal document management. All subscriptions include:- Unlimited invoice and expense uploads
- CFDI XML parsing and validation
- Automatic payment matching
- RESTful API access (PRO and above)
- Secure data storage
Available Plans
FREE Plan
- Cost: $0 MXN/month
- Profiles: 1
- Invoices/Expenses: Unlimited
- Reports: Basic
- Support: Community
- Ideal for: Individual freelancers and testing
BASIC Plan
- Cost: 2,999 MXN/year (save 17%)
- Profiles: 5
- Invoices/Expenses: Unlimited
- Reports: Complete with PDF export
- Public Reports: Up to 10 active tokens
- Support: Email
- Trial: 30 days
- Ideal for: Small businesses with multiple RFCs
PRO Plan
- Cost: 7,999 MXN/year (save 17%)
- Profiles: 20
- Invoices/Expenses: Unlimited
- Reports: Advanced with Excel export
- Public Reports: Up to 50 active tokens
- SAT Download: FIEL/e.firma bulk download
- API Access: Full RESTful API
- SAT AI Search: Unlimited
- Support: Priority email
- Trial: 30 days
- Ideal for: Medium businesses and accountants
ENTERPRISE Plan
- Cost: 14,999 MXN/year (save 17%)
- Profiles: Unlimited
- Invoices/Expenses: Unlimited
- Reports: Advanced with all exports
- Public Reports: Unlimited tokens
- SAT Download: FIEL/e.firma bulk download
- API Access: Full RESTful API
- Support: Dedicated account manager
- Ideal for: Large enterprises and accounting firms
Authentication
All subscription endpoints require authentication:Getting Current Subscription
Retrieve your active subscription details:Response
Viewing Available Plans
Public Plans (No Authentication)
View all available plans without authentication:Query Parameters
Billing cycle:
monthly or annualResponse
Creating a Subscription
Create Checkout Session
Request Body
Plan to subscribe to:
BASIC or PROBilling cycle:
monthly or annualOptional promotion/discount code (3-50 characters)
Response
Redirect users to the
url field to complete payment. After successful payment, users are redirected to your FRONTEND_URL/subscription/success page.Free Trial
First-time subscribers receive a 30-day free trial on BASIC and PRO plans:- No credit card required upfront
- Full plan features during trial
- Automatic conversion to paid after trial
- One trial per user (tracked by
trial_usedflag)
Managing Subscriptions
Customer Portal
Stripe Customer Portal allows users to:- Update payment methods
- View invoices and receipts
- Change subscription plan
- Cancel subscription
Response
Subscription States
Active
Subscription is active and all features are available:Trialing
User is in free trial period:Past Due
Payment failed, features may be restricted:Cancelled
Subscription was cancelled and downgraded to FREE:Upgrading and Downgrading
Upgrading
- Create a new checkout session with the higher plan
- Complete payment
- New plan activates immediately
- Prorated charge for remaining period
Downgrading
- Use Stripe Customer Portal to change plan
- Current plan remains active until period end
- New plan activates at next billing cycle
- Handle profile limits: Freeze excess profiles if downgrading
Cancellation
Users can cancel subscriptions through the Customer Portal:- Access Customer Portal via
/create-portal-session - Click “Cancel subscription”
- Subscription remains active until period end
- Auto-downgrade to FREE plan
Admin Operations
Administrators can assign free subscriptions for any plan:This endpoint requires admin authentication. Contact support to request admin access.
Webhooks
Stripe webhooks automatically handle subscription events:checkout.session.completed: Subscription createdcustomer.subscription.updated: Plan changedcustomer.subscription.deleted: Subscription cancelledinvoice.payment_succeeded: Renewal successfulinvoice.payment_failed: Payment failed
Promotion Codes
Apply promotion codes during checkout:- Percentage discounts
- Fixed amount discounts
- Extended trial periods
Invalid Promotion Code
Plan Comparison
| Feature | FREE | BASIC | PRO | ENTERPRISE |
|---|---|---|---|---|
| Profiles | 1 | 5 | 20 | Unlimited |
| Invoices | Unlimited | Unlimited | Unlimited | Unlimited |
| PDF Export | ❌ | ✅ | ✅ | ✅ |
| Excel Export | ❌ | ❌ | ✅ | ✅ |
| Public Reports | ❌ | 10 tokens | 50 tokens | Unlimited |
| SAT Download | ❌ | ❌ | ✅ | ✅ |
| API Access | ❌ | ❌ | ✅ | ✅ |
| SAT AI Search | 5/month | 100/month | Unlimited | Unlimited |
| Support | Community | Priority | Dedicated | |
| Price (MXN) | Free | $299/mo | $799/mo | $1,499/mo |
Best Practices
- Start with FREE: Test the platform before committing
- Use trials: Take advantage of 30-day trials on paid plans
- Choose annual billing: Save 17% with annual subscriptions
- Monitor usage: Track profile and feature usage via
/api/subscription - Handle downgrades: Implement profile freezing before plan changes
- Test webhooks: Set up webhook endpoints before going live
- Update payment methods: Keep payment methods current to avoid disruptions
Common Errors
Already Subscribed
Invalid Plan
No Active Subscription
Next Steps
- Set up webhooks to handle subscription events
- Manage profiles within your plan limits
- Review Rate Limits for your plan tier