User Journey
This guide demonstrates a complete user journey through the Cariqa Connect API, showing how all the endpoints work together to deliver a seamless charging experience.Flow Overview
- User Registration - Create user account
- Payment Setup - Add and configure payment method via Stripe
- Station Discovery - Find nearby charging stations
- Start Charging - Initiate a charging session
- Monitor Session - Track charging progress
- Stop Charging - End session and get receipt
1. User Registration
First, create a user account in the system:2. Payment Method Setup
2.1 Create Setup Intent
Get a Stripe setup intent to securely collect payment information:2.2 Frontend Stripe Integration
Follow the Payment Frontend Setup guide to confirm the Setup Intent on the client side (iOS, Android, Web).2.3 Verify Payment Method Added
3. Station Discovery
Find nearby charging stations:4. Start Charging Session
Initiate charging with the selected EVSE and payment method:5. Monitor Charging Session
Poll the session status to track progress:6. Stop Charging Session
When charging is complete, stop the session:7. Get completed charging session
Retrieve the complete session details with final costs:Error Handling Best Practices
Throughout this flow, implement proper error handling:Example Error Handling
Summary
This complete flow demonstrates how to:- ✅ Create user accounts with proper authentication
- ✅ Securely collect payment methods via Stripe integration
- ✅ Discover charging stations with location-based search
- ✅ Initiate charging sessions with payment authorization
- ✅ Monitor session progress with real-time status updates
- ✅ Complete sessions and generate detailed receipts
