# Business Intelligence & Reports Source: https://docs.journey.club/analytics/reports Generate actionable insights from subscription, payment, and delivery data with Journey's flexible reporting system. ## Overview Journey's reporting system transforms raw transactional data into actionable business insights. The platform includes 8 pre-built reports covering critical business metrics, with the ability to create custom reports using simple SQL queries. All reports are multi-tenant aware and automatically filtered to your merchant's data. Export any report to Excel for further analysis. ## Why Reports Matter Reports provide the data-driven insights needed to: * **Optimize revenue**: Identify high-value customer segments and products * **Reduce churn**: Track dunning subscriptions and payment failures before they become cancellations * **Improve operations**: Monitor delivery performance and fulfillment efficiency * **Recover revenue**: Reach out to abandoned cart customers with targeted campaigns * **Forecast growth**: Analyze subscription signup trends and customer lifetime value ```mermaid theme={null} graph LR A[Raw Data] --> B[Reports System] B --> C[Business Insights] C --> D[Strategic Decisions] D --> E[Revenue Growth] style B fill:#4F46E5 style E fill:#10B981 ``` ## Pre-Built Reports Journey includes 8 production-ready reports that cover the most common business intelligence needs. Track potential customers who started but didn't complete their subscription signup. **Use Cases:** * Email marketing campaigns to recover lost sales * Identify friction points in checkout flow * A/B test recovery messaging strategies **Includes:** * Customer name and email * Product they were interested in * Date of abandonment (configurable date range) **Business Impact:** Typical abandoned cart recovery campaigns achieve 10-15% conversion rates, directly recovering lost revenue. Monitor when customers reschedule their deliveries and understand demand patterns. **Use Cases:** * Identify delivery timing preferences * Optimize delivery route planning * Detect seasonal demand shifts **Includes:** * Original vs. new delivery date * Customer details * Date when change was made (configurable date range) **Business Impact:** Understanding delivery date change patterns helps optimize inventory management and reduce fulfillment costs. Real-time view of subscriptions with payment failures, sorted by retry attempts. **Use Cases:** * Proactive customer outreach before cancellation * Payment method update campaigns * Revenue recovery prioritization **Includes:** * Subscription status (past\_due or error) * Number of settling attempts * Customer contact information * Subscription ID for quick lookup **Business Impact:** Early intervention on dunning subscriptions can recover 60-70% of at-risk revenue. This report is always live (no date filtering) to show current at-risk subscriptions. Sort by "Settling attempts" to prioritize customers closest to expiration. Find valuable customers who paused their subscriptions after making successful payments. **Use Cases:** * Win-back campaigns targeting engaged customers * Identify pause reasons through customer interviews * Re-engagement email sequences **Includes:** * Customer details * Count of successful payments before pause * Current subscription status (on\_hold or cancelled) **Business Impact:** Customers with payment history are 3x more likely to reactivate than new signups, making them high-value targets. Complete transaction history with product-level detail. **Use Cases:** * Revenue reporting and reconciliation * Product performance analysis * Customer purchase behavior tracking **Includes:** * Customer information * Product variations purchased * Order date and item count * Configurable date range filtering **Business Impact:** Essential for financial reporting, tax compliance, and understanding which products drive revenue. Detailed payment data with line items, VAT breakdown, and customer information. **Use Cases:** * Accounting system integration * Tax reporting and compliance * Revenue recognition * Financial audits **Includes:** * Payment ID and status * Customer details including SSN (for tax reporting) * Line item details with quantities and amounts * VAT totals by rate * Created and last attempt timestamps **Business Impact:** Streamlines financial operations and ensures tax compliance with detailed VAT breakdowns. Complete customer subscription overview with product details. **Use Cases:** * Customer success outreach prioritization * Product mix analysis per customer * Subscription health monitoring **Includes:** * Customer contact details * All subscription order items * Current subscription status * Subscription ID for quick access **Business Impact:** Helps customer success teams prioritize high-value customers and identify upsell opportunities. Product-level subscription health metrics. **Use Cases:** * Product performance benchmarking * Inventory planning by subscription status * Identify products with high churn rates **Includes:** * Product and product variation names * Subscription counts by status (active, past\_due, expired, on\_hold, error, cancelled) * Grouped by product for easy comparison **Business Impact:** Identifies which products retain customers best and which need improvement. ## Report Interface The reporting dashboard provides an intuitive interface for exploring your business data. ### Interactive Features Click any report from the accordion list on the left sidebar. The report automatically loads with live data from your database. For time-based reports, use the date range picker to filter results: * **Last 7 days**: Quick view of recent activity * **Last 30 days**: Monthly performance * **Last 90 days**: Quarterly trends * **Custom range**: Any date range for specific analysis Results display in a sortable table showing the first 5 rows. The total row count appears at the bottom. Click the "Download Excel" button to export the complete dataset (not just the preview rows) for deeper analysis in Excel, Google Sheets, or your BI tool. ### Data Visualization ```mermaid theme={null} graph TB A[Select Report] --> B{Date Range
Required?} B -->|Yes| C[Configure Dates] B -->|No| D[Load Live Data] C --> D D --> E[View Results Table] E --> F[Export to Excel] style A fill:#4F46E5 style F fill:#10B981 ``` All reports show a live preview of your data. The table displays the first 5 rows, but Excel exports include all matching records. ## Dashboard Analytics Beyond custom reports, Journey provides real-time analytics on the dashboard overview page: ### Key Metrics **Active Subscriptions Count** * Total number of subscriptions with `status='active'` * Real-time count from your subscription table **Average Deliveries per Subscription** * Calculated across all subscription-based orders * Indicates customer retention and lifetime value **Average Lifetime Value (LTV)** * Total settled payment value divided by active subscriptions * Critical metric for customer acquisition cost (CAC) optimization **Successful Deliveries by Product** * Breakdown of subscription vs. one-off deliveries * Filterable by date range * Grouped by product and variation **Deliveries per Day/Week** * Time-series visualization of delivery volume * Helps identify operational capacity needs * Supports route planning optimization **New Subscription Signups** * Daily/weekly/monthly signup counts (auto-adjusts based on date range) * Product-level breakdown showing which products drive growth * Excludes incomplete subscriptions **Daily Signup Chart** * Visual trend line of subscription growth * Automatically switches between daily, weekly, or monthly buckets based on date range selected **Recent Customer Activity** * New customer signups * Delivery date changes * Subscription status changes (pause, resume, cancel) * Subscription frequency modifications **Production Events** (for relevant merchants) * Filling events for tracked products * Tank changes and capacity monitoring * Weight tracking per filling Dashboard metrics are calculated in real-time from your database. For large date ranges (90+ days), some queries may take a few seconds to load. ## Creating Custom Reports Adding a new report to Journey requires minimal code and can be done in minutes. ### How Easy It Is Journey's reporting system is built on a simple, declarative architecture. Each report is defined by: 1. **Title** - Display name for the report 2. **Date Range Toggle** - Whether to show date picker (true/false) 3. **SQL Query** - A single SQL query that returns the data Add a new object to the `reports` array in `apps/me/app/dashboard/(main)/overview/actions.ts`: ```typescript theme={null} { title: "Your Report Name" as const, dateRangePicker: true, // or false sql: (fromDate: Date, toDate: Date) => sql` SELECT column1, column2, COUNT(*) as count FROM your_table WHERE created_at >= ${fromDate} AND created_at < (${toDate}::date + INTERVAL '1 day') GROUP BY column1, column2 ORDER BY count DESC ` } ``` Add display names and descriptions in the translation files: ```typescript theme={null} // In Reports.tsx const titleI18nLut = { // ... existing reports "Your Report Name": t("your-report-name"), } const descriptionI18nLut = { // ... existing reports "Your Report Name": t("your-report-description"), } ``` The report automatically appears in the reports sidebar. Click it to test: * Verify SQL query returns expected columns * Test date range filtering (if enabled) * Export to Excel to confirm data export works ### Best Practices for Custom Reports **Use Indexes:** * Ensure frequently queried columns have database indexes * Pay special attention to date columns used in WHERE clauses **Limit Results:** * Consider adding `LIMIT` clauses for very large datasets * The UI shows first 5 rows, but Excel exports all rows **Aggregate When Possible:** * Use `GROUP BY` and aggregation functions (COUNT, SUM, AVG) * Reduces result set size and improves readability All reports automatically execute within the merchant's tenant context. You don't need to manually filter by `merchant_id`. **Automatic Tenant Isolation:** ```typescript theme={null} // Journey automatically handles this // You write: SELECT * FROM order_subscription WHERE subscription_status = 'active' // Behind the scenes, queries execute within tenant schema // Result: Only your merchant's data is returned ``` **Cross-Schema Queries:** If you need to query across tenants (superuser reports only), use the statistics endpoint instead of the reports system. **Customer PII:** * Be mindful of including sensitive data (SSN, payment details) * Consider access controls for reports containing PII * Use reports for internal business analysis only **Export Security:** * Excel exports contain full datasets * Educate users about secure file handling * Consider implementing audit logs for report access ### Example: Custom Report Let's create a report showing "High-Value Customers" (customers with 5+ successful payments): ```typescript theme={null} { title: "High-Value Customers" as const, dateRangePicker: false, sql: (fromDate: Date, toDate: Date) => sql` SELECT c.full_name AS "Customer Name", c.email AS "Email", COUNT(DISTINCT p.id) AS "Successful Payments", SUM( (line_items->>'amount')::numeric ) AS "Total Revenue", MAX(p.created) AS "Last Payment Date" FROM order_customer c JOIN order_order o ON o.customer_id_id = c.id JOIN order_payment p ON p.order_id_id = o.id WHERE p.payment_status = 'settled' GROUP BY c.id, c.full_name, c.email HAVING COUNT(DISTINCT p.id) >= 5 ORDER BY "Total Revenue" DESC ` } ``` This report: * ✅ Uses clear column aliases with proper casing * ✅ Aggregates data to reduce result size * ✅ Sorts by most important metric (revenue) * ✅ Filters for business-relevant threshold (5+ payments) * ✅ Doesn't need date range (analyzing all-time data) ## Technical Architecture Temporarily removed for debugging. ## Analytics Snapshots Journey includes a scheduled job that captures daily snapshots of key metrics for historical trend analysis. **Automated Tracking:** The `take_analytics_snapshot` command runs daily via cron to record: * Subscription status distribution (active, past\_due, on\_hold) * Total customer count * Stored in `statistic_timestampevent` table ### Snapshot Data **Subscription Status Snapshots:** ```json theme={null} { "title": "subscription_status_snapshot", "data": [ {"subscription_status": "active", "count": 1247}, {"subscription_status": "past_due", "count": 89}, {"subscription_status": "on_hold", "count": 45} ] } ``` **Customer Count Snapshots:** ```json theme={null} { "title": "customer_count", "data": 3542 } ``` ### Using Snapshots in Reports Snapshots enable trend analysis over time. Example query: ```sql theme={null} SELECT s.timestamp as date, s.entry->>'subscription_status' as status, s.entry->>'count' as count FROM ( SELECT t.timestamp, jsonb_array_elements(t.data) as entry FROM statistic_timestampevent t WHERE t.title = 'subscription_status_snapshot' ) as s WHERE s.entry->>'subscription_status' IN ('active', 'past_due', 'on_hold') AND s.timestamp >= '2024-01-01' ORDER BY s.timestamp ``` ## Multi-Tenant Statistics For superusers managing multiple merchants, Journey provides a cross-tenant statistics view. **Superuser Access Required:** This view is restricted to superusers and shows aggregated metrics across all tenants. ### Statistics Dashboard Access at `/admin/stats/` to view: **Per-Tenant Metrics:** * Active subscriptions count * Total subscriptions (all statuses) * Total deliveries (all time) * Deliveries this week vs. last week * Deliveries this month vs. last month * Deliveries this year vs. last year * Percentage change calculations **Aggregate Metrics:** * "Total" row showing sum across all tenants * Delta calculations for growth tracking ### Implementation ```python theme={null} # apps/statistic/views.py def stats_per_tenant(tenant): with tenant_context(tenant): active_subscriptions = subscription.objects.filter( subscription_status='active' ).count() # Weekly deliveries start_this_week, end_this_week = get_start_end_of_week(today) deliveries_this_week = delivery.objects.filter( delivery_date__date__range=[start_this_week, end_this_week] ).count() # ... more metrics return { 'active_subscriptions': active_subscriptions, 'deliveries_this_week': deliveries_this_week, # ... more data } ``` ## Best Practices **For Merchants:** * Review dunning report weekly to recover at-risk revenue * Export payment data monthly for accounting reconciliation * Track abandoned carts weekly for marketing campaigns * Monitor delivery changes to optimize fulfillment **For Developers:** * Keep SQL queries focused and performant * Use meaningful column aliases for exported Excel files * Test reports with large date ranges before deploying * Document business logic in SQL comments **Query Construction:** * Always use parameterized queries (SQL template tags) * Handle NULL values explicitly in aggregations * Use proper date truncation for time-series data * Test edge cases (empty results, single row, millions of rows) **Date Handling:** * Use `(toDate::date + INTERVAL '1 day')` for inclusive date ranges * Always filter on indexed timestamp columns * Consider timezone implications for global merchants **Report Design:** * Limit columns to essential information (10-15 max) * Sort results by most actionable metric (revenue, attempt count, etc.) * Use clear column names that make sense in Excel exports * Provide descriptions explaining report purpose and use cases * **Performance:** * Target \<2 second query execution time * Show loading states for long-running queries * Consider pagination for reports with 10,000+ rows * Cache results when data doesn't change frequently ## Troubleshooting **Symptoms:** Report shows loading state indefinitely **Solutions:** 1. Check browser console for JavaScript errors 2. Verify SQL query syntax is correct 3. Test query directly in database with tenant context 4. Check for missing indexes on filtered columns 5. Verify date range parameters are valid **Symptoms:** Report loads but shows "No data found" **Solutions:** 1. Verify data exists in database for selected date range 2. Check tenant context is correct (not querying wrong merchant) 3. Review WHERE clause conditions (too restrictive?) 4. Test query without date filters to isolate issue 5. Confirm report is configured for correct dateRangePicker setting **Symptoms:** Excel download button doesn't work or file is corrupted **Solutions:** 1. Check browser console for download errors 2. Verify report data contains no invalid characters 3. Test with smaller date range (large datasets may timeout) 4. Ensure `downloadExcel` utility handles all data types in results 5. Check for NULL values or special characters in string columns **Symptoms:** Report takes >10 seconds to load **Solutions:** 1. Add database indexes on filtered/joined columns 2. Review query execution plan (`EXPLAIN ANALYZE`) 3. Consider pre-aggregating data in materialized view 4. Reduce date range to smaller time windows 5. Add LIMIT clause if full dataset isn't needed ## Related Concepts Learn how reports integrate with automated customer notifications Understand the payment data that powers financial reports Deep dive into the dunning report and payment recovery strategies Explore subscription statuses and lifecycle management # Customer Communications Source: https://docs.journey.club/customer-engagement/communication Build automated, event-driven email and SMS workflows with intelligent dunning and multi-channel delivery ## What are Communications? **Communications** in Journey are event-driven messages automatically sent to customers at key moments in their journey. Journey's system supports multi-channel delivery (email, SMS), dynamic template rendering, and intelligent dunning sequences, all managed through a simple event-based API. **Key Innovation:** Journey's communication system automatically enriches messages with contextual data (customer, order, subscription) and supports separate messaging for gift recipients, making complex notification flows simple to implement. ## The Event-Driven Model Journey's communications work through a trigger-based system: Moments in the customer journey (payment succeeds, delivery scheduled, payment fails) Define what gets sent using Django template syntax with access to customer and order data Email (Postmark) and SMS (Twilio/Nova) handle actual message delivery Complete history of every communication with provider responses ### Communication Flow ```mermaid theme={null} graph LR A[Business Event] -->|Triggers| B[Event Handler] B -->|Loads| C[Message Templates] C -->|Renders with| D[Customer Data] D -->|Sends via| E[Email/SMS Provider] E -->|Logs| F[Message Log] ``` ## Built-in Events Journey includes pre-configured events for common scenarios: | Event | Trigger Point | Channel | Purpose | | --------------------------------- | ---------------------- | --------- | ------------------------- | | `subscription_payment_authorized` | Payment succeeds | Email | Welcome new subscribers | | `oneoff_payment_authorized` | One-time purchase | Email | Order confirmation | | `delivery_complete` | Driver marks delivered | Email/SMS | Delivery confirmation | | `driver_starts_route` | Driver begins route | SMS | Pre-delivery notification | | `inform_future_event` | Scheduled (cron) | Email/SMS | Delivery reminders | | `past_due_first_time` | First payment failure | Email | Friendly dunning notice | | `still_on_error_every_fourth` | Every 4 retry attempts | Email | Urgent payment reminder | | `subscription_expired` | Max retries reached | Email | Cancellation notice | | `invoice_sent_automatically` | Payment settles | Email | PDF invoice delivery | Events can be triggered programmatically via the `event_handler()` function or run automatically on a schedule via cron jobs. ## Message Templates ### Template Structure Messages define the content sent when an event triggers: ```typescript theme={null} { id: string; event_id: string; provider: 'email' | 'sms'; subject?: string; // Email only content: string; // HTML (email) or plain text (SMS) content_text: string; // Plain text version (email) receiver: 'customer' | 'customer_receiver'; } ``` ### Template Variables Templates have access to contextual data using Django template syntax: ```django theme={null} {{ customer_object.full_name }} {{ customer_object.email }} {{ customer_object.phone_number }} {{ customer_object.address }} {{ customer_object.postal_code }} {{ customer_object.city }} ``` ```django theme={null} {{ order_object.id }} {{ product_variation_object.name }} {{ delivery_object.delivery_date|date:"F j, Y" }} {{ delivery_option_object.name }} ``` ```django theme={null} {{ subscription_object.id }} {{ subscription_object.subscription_status }} ``` ```django theme={null} {{ merchant_object.name }} {{ merchant_object.from_email }} {{ merchant_object.reply_to_email }} ``` ```django theme={null} {{ login_code }} // 6-digit auth code {{ magic_url }} // One-click login link {{ delivery_window_start }} // Estimated time window {{ delivery_window_end }} {{ greeting_card_text }} // Gift message ``` ### Example: Order Confirmation Email ```django theme={null} Subject: Your {{ product_variation_object.name }} is on the way! Hi {{ customer_object.full_name }}, Great news! Your order #{{ order_object.id }} is confirmed and will be delivered on {{ delivery_object.delivery_date|date:"l, F j" }}. Delivery address: {{ customer_receiver_object.address }} {{ customer_receiver_object.postal_code }} {{ customer_receiver_object.city }} Track your order: https://{{ merchant_object.name }}.getjourney.io/orders/{{ order_object.id }} Questions? Reply to this email or contact {{ merchant_object.reply_to_email }}. Best, The {{ merchant_object.name }} Team ``` ### Example: Delivery Reminder SMS ```django theme={null} Hi {{ customer_object.full_name }}! Your {{ merchant_object.name }} delivery arrives {{ delivery_object.delivery_date|date:"M j" }}. Track: {{ merchant_object.name }}.getjourney.io/me ``` **SMS Best Practices:** Keep messages under 160 characters, include merchant name, add tracking link if relevant, and use concise language. ## Dunning (Payment Failures) Journey includes intelligent dunning that automatically manages payment failure communications. ### Dunning Flow ```mermaid theme={null} graph TD A[Day 1: Payment Fails] -->|Friendly reminder| B[Days 2-19: Payment Retries] B -->|Every 4th attempt| C[Day 4, 8, 12, 16: Urgent Reminders] C --> D[Day 20: Final Notice] D --> E[Day 21: Subscription Cancelled] B -.->|Payment succeeds| F[Back to Active] C -.->|Customer updates card| F ``` ### Dunning Events **Trigger:** First payment failure (Day 1) **Tone:** Friendly and informative **Message:** ``` Subject: Quick heads up about your subscription We tried to process your payment but it didn't go through. No worries - this happens sometimes! We'll automatically retry tomorrow. If your card needs updating, you can do that here: [link] ``` **Trigger:** Every 4th retry attempt (Days 4, 8, 12, 16) **Tone:** More urgent with each iteration **Message (Day 8):** ``` Subject: Action needed: Payment still pending We've tried several times to process your subscription payment. Please update your payment method to avoid service interruption: [link] Questions? Reply to this email. ``` **Trigger:** Max retries reached (Day 20) **Tone:** Final warning, clear consequences **Message:** ``` Subject: Final notice: Subscription will be cancelled After 20 attempts, we haven't been able to process your payment. Your subscription will be cancelled in 24 hours unless you update your payment details: [link] We'd love to keep you as a customer! ``` **Trigger:** Subscription cancelled (Day 21) **Tone:** Professional, offer to reactivate **Message:** ``` Subject: Subscription cancelled Your subscription has been cancelled due to payment failure. To reactivate, simply update your payment method and restart your subscription: [link] We hope to see you again soon! ``` ### Dunning Configuration Configure per merchant: ```json theme={null} { "dunning_settling_attempts": 20, // Max retries "failed_payment_cancelled_days": 20 // Days until cancel } ``` Customers can update payment methods during the dunning period. The next retry automatically uses the new card, recovering the subscription. See the [Delivery & Fulfillment](/subscriptions/delivery-fulfillment) page for more details on how dunning is managed end-to-end. ## Gift Orders When customers send gifts, Journey can notify both the buyer and recipient separately. ### How It Works ```mermaid theme={null} graph LR A[Gift Order Created] --> B{Receiver Type} B -->|customer| C[Buyer Notification] B -->|customer_receiver| D[Recipient Notification] C --> E[Email: Order Confirmed] D --> F[Email/SMS: You Received a Gift!] ``` ### Receiver Types Specify who receives each message: * **Receiver: customer** - The person who placed the order * **Reveiver: customer\_receiver** - The delivery recipient ### Example: Gift Notifications ```django theme={null} Subject: Your gift order is confirmed Hi {{ customer_object.full_name }}, Your gift order for {{ customer_receiver_object.full_name }} is confirmed! Delivery date: {{ delivery_object.delivery_date|date:"F j, Y" }} Delivery to: {{ customer_receiver_object.address }} We'll notify them on the delivery day. ``` ```django theme={null} Subject: You received a gift! Hi {{ customer_receiver_object.full_name }}, Someone special sent you a gift! {{ product_variation_object.name }} will be delivered on {{ delivery_object.delivery_date|date:"F j, Y" }}. {% if greeting_card_text %} Message from sender: "{{ greeting_card_text }}" {% endif %} Enjoy! ``` When `customer_receiver_object` equals `customer_object` (self-gift), Journey automatically sends only one message to avoid duplicate notifications. ## Invoice Delivery Customers can choose to receive automatic PDF invoices via email after each payment settles. ### How It Works **Enabling Automatic Invoices:** * Customers go to their **My Pages** settings * Check the option to "Send me invoices automatically" * After each payment processes, they receive an email with the invoice PDF attached **Accessing Invoice History:** * All previous invoices are available in the **Order History** section of My Pages * Customers can view, download, and print invoices anytime without needing to search their email This gives customers flexibility: they can choose email delivery for immediate access, or access all invoices later through their account history on My Pages. ## Message Logs Every email and SMS sent to customers is logged so you can track delivery and troubleshoot issues. ### What Gets Logged For each message sent, the system records: * **Recipient** - Customer email or phone number * **Content** - What was sent * **Status** - Whether it was successfully delivered or failed * **Timestamp** - When it was sent * **Reason for message** - Which event triggered it (e.g., payment received, delivery arriving tomorrow) ### Viewing Delivery Status You can check whether a message was successfully delivered or if there was an issue: * **Sent** - Message delivered to the provider (email/SMS carrier) * **Failed** - Message couldn't be delivered (e.g., invalid email address, carrier rejected SMS) If a message fails, you can investigate why and take action—like requesting an updated email address from the customer or checking if their phone number is correct. Message logs help you ensure customers are receiving important notifications about their orders, payments, and deliveries. Use them to troubleshoot communication issues and improve delivery rates. ## White-Label Support Journey's communication system supports complete white-labeling for each merchant. ### Your Brand, Your Communications Each merchant can customize their communications completely: * **Send from your email address** - Customers see your brand, not Journey's * **Use your support email** - Replies go directly to your support team * **Choose your email provider** - Use your preferred email service provider (e.g., Postmark, SendGrid) * **Choose your SMS provider** - Use your preferred SMS provider (e.g., Twilio, Plivo) * **Private message logs** - All communications are kept separate and private to your account ### Example **Store A** sends emails from `hello@storea.com` and uses their own email service. **Store B** sends emails from `hi@storeb.com` and uses a different email service. Both operate independently in Journey—each managing their own communications, templates, and customer data without any overlap. White-label communications mean your customers see only your brand in every message they receive. They never know Journey is powering the platform behind the scenes. ## Common Use Cases ### Passwordless Authentication When a customer logs into My Pages, they receive an SMS or email with a one-time code. They enter the code to verify their identity—no password needed. **Example Message:** ``` Your Fresh Market login code: 847293 This code expires in 10 minutes. Don't share it with anyone. ``` ### Subscription Welcome Email After a customer's first payment processes successfully, they receive a welcome email with their subscription details, next delivery date, and how to manage their account on My Pages. **Example Message:** ``` Subject: Welcome to Your Fresh Market Subscription! Hi Sarah, Your subscription is active! Here's what to expect: 📦 First Delivery: Thursday, December 12 at 6-8 PM Items: Organic Milk, Farmer's Eggs, Fresh Bread Manage your subscription anytime: https://yoursite.getjourney.io/me You can change frequencies, swap products, or pause anytime. Questions? Reply to this email or check our FAQ. Thanks for subscribing! The Fresh Market Team ``` ### Delivery Tracking Updates As a delivery gets closer, customers receive notifications with their delivery window. If the driver is nearby, they get a final update. **Example Messages:** ``` Your Fresh Market delivery arrives tomorrow, Dec 12, between 6-8 PM You can change your delivery before midnight on My PAges: https://yoursite.getjourney.io/me ``` Later that day: ``` Your package has been delivered! See your order on https://yoursite.getjourney.io/me ``` ### Payment Failure Recovery If a payment fails, the customer automatically receives a message asking them to update their payment method on My Pages. This helps recover the failed subscription without losing the customer. **Example Message:** ``` Your Fresh Market payment didn't go through. Your subscription is on hold. Update your payment method: https://yoursite.getjourney.io/me Once updated, your next delivery will proceed normally. Questions? Contact us: support@freshmarket.com ``` ## Related Concepts Understand subscription lifecycle and automated billing that triggers communications Learn about payment retry logic and dunning communication sequences Monitor business performance with built-in reports Understand payment processing and billing cycles # My Pages - Customer Portal Source: https://docs.journey.club/customer-engagement/my-pages A comprehensive customer self-service portal for managing subscriptions, viewing order history, and updating account information ## Overview The **My Pages** customer portal is Journey's self-service interface that empowers your customers to manage their subscriptions, track deliveries, and update account information without requiring support intervention. This feature is critical for reducing operational costs while improving customer satisfaction and retention. ## Why My Pages Matters ### For Merchants By enabling customers to self-manage their subscriptions, delivery dates, and account information, you can significantly reduce support ticket volume. Common tasks like pausing subscriptions or rescheduling deliveries no longer require staff intervention. Customers who have control over their subscriptions are more likely to pause rather than cancel when they need a break. The portal makes it easy for customers to modify their plans, leading to higher lifetime value. The portal enables customers to easily add products to existing subscriptions or create one-off orders, creating upsell opportunities without sales team involvement. Real-time updates to subscriptions, delivery schedules, and customer information flow directly into your fulfillment systems, eliminating manual data entry and reducing errors. ### For Customers The customer portal provides a transparent, always-available interface for your customers to manage their relationship with your business. It's designed to be intuitive and mobile-friendly, supporting your customers wherever they are. ## Core Features ### 1. Subscription Overview **What customers can do:** * View all active and inactive subscriptions * See subscription status (active, paused, on hold, cancelled) * Review product details including quantities and frequencies * Access subscription-specific actions (modify, pause, resume) * View applied discount coupons and their validity **Business benefits:** * Customers can self-diagnose subscription issues * Transparent pricing and delivery information reduces confusion * Easy access to modify subscriptions increases flexibility * Visibility into coupon usage helps customers understand their savings **Technical features:** * Real-time data synchronization with backend * Support for multiple active subscriptions per customer * Conditional display based on subscription status * Filter toggle to show only active subscriptions when customers have multiple ### 2. Order History & Tracking **What customers can do:** * View complete order history with delivery dates * Track upcoming deliveries with countdown information * See delivery status (scheduled, delivered, cancelled) * Download invoice PDFs for completed orders * View order details including products, quantities, and pricing * Review delivery notes and special instructions **Business benefits:** * Reduces "Where is my order?" support inquiries * Provides proof of delivery for dispute resolution * Transparent pricing breakdown builds trust * Historical data helps customers plan future orders **Technical features:** * Filters orders by payment status and delivery status * Shows only relevant upcoming deliveries (future and last 7 days) * Supports both subscription-based and one-off orders * Real-time delivery tracking integration ### 3. Subscription Management Actions Customers can perform comprehensive subscription modifications: #### Modify Cart Contents * Add new products to existing subscriptions * Change quantities of subscribed products * Remove products from subscriptions * View updated pricing in real-time #### Change Delivery Frequency * Switch between available frequency options (weekly, bi-weekly, monthly) * See next delivery date adjust automatically * Understand pricing implications of frequency changes #### Reschedule Deliveries * Select new delivery dates from available windows * Respect postal code delivery schedules * View minimum notice periods for changes * Update delivery locations for supported carriers #### Pause & Resume * Pause subscriptions temporarily with reason selection * Set automatic resume dates (optional) * Resume paused subscriptions immediately * View pause history and reasons #### Cancel Subscriptions * Initiate cancellation with reason capture * Understand cancellation policies * Option to pause instead of cancel ### 4. Account Information Management **What customers can do:** * Update contact information (name, email, phone) * Change delivery address and postal code * Set delivery instructions for drivers * Configure delivery location preferences for supported carriers (e.g., Dropp pickup points) * Manage email notification preferences **Business benefits:** * Accurate customer data reduces delivery failures * Postal code changes automatically update delivery schedules * Delivery instructions reduce failed delivery attempts * Current contact information improves communication effectiveness **Technical features:** * Postal code validation against delivery schedules * Automatic delivery date adjustment when postal code changes * Integration with carrier location services ### 5. Payment Information **What customers can do:** * View payment method on file (masked for security) * Update credit card information * See payment history and status * Download invoices for accounting purposes **Business benefits:** * Customers can update expired cards proactively * Transparent payment history reduces disputes * Self-service payment updates reduce dunning failures * Invoice access reduces accounting support requests **Technical features:** * Secure payment tokenization * Integration with multiple payment processors * Automatic invoice generation ### 6. Product Exchange Tracking (Returnable Items) For businesses with returnable products (e.g., bottle deposits, reusable containers): **What customers can do:** * View exchange balance (items owed by customer or business) * See detailed transaction history of delivered and returned items * Track cumulative balance over time * Understand charges and reimbursements for containers **Business benefits:** * Transparent deposit accounting reduces disputes * Customers understand their obligations * Automated tracking eliminates manual reconciliation * Historical record for compliance and auditing ## User Experience Design ### Multi-Tab Navigation The portal uses a clean, tabbed interface optimized for both desktop and mobile: 1. **Overview Tab** - Primary landing page showing active subscriptions and upcoming deliveries 2. **Order History Tab** - Complete order and delivery history with timeline view 3. **Your Info Tab** - Account and delivery information management 4. **Exchanges Tab** - Container/bottle exchange tracking (merchant-specific) ### Mobile Optimization * Responsive design adapts to all screen sizes * Touch-friendly controls and buttons * Simplified layouts on mobile devices * Progressive enhancement for desktop features ### Real-Time Updates * Changes reflect immediately without page refresh * Visual feedback for successful actions * Error handling with clear user messages * Loading states during data operations ## White-Label Customization Journey's portal can be fully customized to match each merchant's brand and identity: ### Branding * Custom color schemes matching merchant brand * Logo and cover image customization * Merchant-specific terminology and messaging ### Feature Toggles * Show/hide specific features based on business model * Merchant-specific tabs and functionality * Conditional features (e.g., exchanges only for applicable businesses) ### Integration Options * Custom delivery carrier integrations * Payment processor specific features * Merchant-specific product attributes ## Support & Resources Set up notifications, emails, and SMS messages to keep customers informed Understand how recurring payments are collected and managed Learn how subscriptions work in Journey Understand delivery scheduling and fulfillment ## Common Questions Yes, customers can initiate cancellation through their My Pages. You can configure whether cancellations are immediate or require support approval, and capture cancellation reasons for analysis. When a customer changes a delivery date, Journey automatically updates the delivery schedule and notifies your fulfillment team. The system respects minimum notice periods you configure to avoid same-day changes. Payment method updates are sent directly to your payment processor and tokenized securely. Future subscription charges will use the new payment method automatically. Yes, all subscription modifications show updated pricing in real-time before the customer confirms changes. This includes prorated amounts for frequency changes and delivery fee adjustments. Absolutely. The portal is fully responsive and optimized for mobile devices, which is where most customers will access it from delivery confirmation emails and SMS messages. Yes, Journey's allows extensive customization including branding, feature toggles, custom workflows, and integration with your specific carriers and payment processors. # Introduction Source: https://docs.journey.club/introduction Welcome to Journey - A subscription billing and fulfillment platform for recurring businesses ## What is Journey? **Journey** is a comprehensive subscription billing and delivery management platform designed for businesses that need recurring revenue management and fulfillment capabilities. ### Built For Flower subscriptions, meal kits, and recurring deliveries Membership subscriptions and donation management for clubs and nonprofits Subscription management and usage tracking ## Key Features Full subscription lifecycle management including pause, resume, frequency changes, and cart modifications. Support for trial periods, proration, and flexible billing schedules. Comprehensive delivery scheduling with postal code-based routing, carrier integrations, and fulfillment tracking. Support for delivery windows, packing notes, and route optimization. Configurable retry logic for failed payments with automatic status transitions. Merchant-specific settings for retry attempts and cancellation timelines. Built-in customer portal capabilities for subscription management, payment method updates, and delivery scheduling. Real-time stock tracking with movement history and low-stock alerts. Support for product variations and SKU management. Flexible discount codes with percentage or fixed amount discounts. Time-based validity and product-specific restrictions. ## Understanding the System Learn how multi-frequency subscriptions, delivery scheduling, and customer management work Understand how payments are collected, retried, and recovered from failed transactions Empower customers to manage subscriptions, update payments, and track orders Explore delivery scheduling, cost optimization, and logistics coordination # Claims & Invoice Management Source: https://docs.journey.club/payments/claims Issue invoices to customers through Icelandic banks with automated payment collection, status tracking, and delivery synchronization. ## Overview Journey's claims system integrates with Icelandic banking infrastructure (via **Klar API**) to issue formal invoices (claims) to customers. Instead of charging credit cards directly, merchants can send invoices through the banking system that customers pay via their online banking portal or automatic bill pay. **What is a Claim?** In Icelandic banking, a "claim" (kröfugagnaskilaboð) is a formal invoice sent through the banking system. Customers see these claims in their online banking and can pay them like any other bill. ## Why Use Claims? Claims provide an alternative payment method that's particularly useful for: **B2B Customers:** * Companies often prefer invoice payments over credit cards * Easier accounting and reconciliation * Better cash flow management (pay later) **High-Value Orders:** * Customers may not want to use credit cards for large amounts * Bank invoices feel more official and trustworthy * Lower risk of card declines **Recurring Subscriptions:** * Some customers prefer monthly invoices over automatic charges * Provides transparency into what they're paying for * Easier to pause or adjust payments **Payment Flexibility:** * Customers get due dates (typically 10-30 days) * Can pay via any bank account * No need for credit card on file ```mermaid theme={null} graph TB A[Subscription Created] --> B{Payment Method?} B -->|Credit Card| C[Standard Payment] B -->|Claim| D[Create Claim] D --> E[Send to Bank via Klar API] E --> F[Customer Sees Invoice in Banking] F --> G{Customer Pays?} G -->|Yes| H[Payment Collected] G -->|No| I[Reschedule Delivery] H --> J[Mark as Settled] I --> K{Past Due Date?} K -->|Yes| L[Cancel Claim] K -->|No| E style H fill:#10B981 style L fill:#EF4444 style D fill:#4F46E5 ``` ## Key Concepts **Definition:** A formal invoice created in the banking system that appears in the customer's online banking portal. **Unique Identifier:** * **Claim Number:** Format `{bank_number}{ledger}{auto_number}` * Example: `0515660000123` (Islandsbanki + Ledger 66 + Claim 123) * **Due Date:** When the claim must be paid * **Claimant:** Your company's SSN (kennitala) **Key Fields:** * **Amount:** Total to be charged (includes other costs) * **PayorID:** Customer's SSN (kennitala) * **DueDate:** Initial payment deadline (typically +10 days) * **FinalDueDate:** Extended deadline before penalties (typically +30 days) * **CancellationDate:** When claim is automatically cancelled (typically +100 days) * **OtherCosts:** Processing fees added to the invoice **Lifecycle:** ``` NEW → UNPAID → PAID (or CANCELLED) ``` **Definition:** A reusable configuration that defines how claims are created and managed. **Purpose:** Different customer segments may need different claim configurations: * **Standard customers:** 10 day due, 30 day final due * **B2B customers:** 30 day due, 60 day final due * **Pre-paid:** Claims created before delivery, auto-deliver after due date **Key Settings:** * `cron_spec`: When to create claims (e.g., "0 0 \* \* \*" = daily) * `claim_zone_days`: How many days before delivery to create claim (default: 5) * `due_days`: Days until initial due date (default: 10) * `final_due_days`: Days until final due date (default: 30) * `cancellation_days`: Days until auto-cancellation (default: 100) * `other_cost_prc`: Processing fee percentage (default: 2.7%) * `auto_delivery_after_due_date`: Deliver even if unpaid (for pre-payment models) **Multiple Specs:** You can create multiple ClaimSpecs and assign them to different payment methods/customers. **What is Klar?** Klar (now part of Open Banking Iceland) provides APIs to interact with Icelandic banking infrastructure. **Supported Banks:** * Íslandsbanki * Landsbankinn * Arion banki **Authentication:** * OAuth 2.0 via Auth0 * Access tokens valid for 15 minutes (cached) * Company-specific credentials per merchant **API Operations:** ```typescript theme={null} // Create a new claim POST /claims // Get claim status GET /claims/single?claimant={id}&account={claim_no}&dueDate={date} // Update claim details PUT /claims // Cancel claim POST /claims/delete // Get payment information GET /claims/payments?fromDate={date}&toDate={date} ``` **Rate Limiting:** * Fetch claims day-by-day to avoid overload * Use date ranges strategically * Cache tokens for 15 minutes Journey tracks claim payments through specific payment statuses: **CLAIM\_CREATED:** Claim sent to bank, awaiting payment ```python theme={null} payment.payment_status = PaymentStatus.CLAIM_CREATED ``` **SETTLED:** Customer paid the claim ```python theme={null} payment.payment_status = PaymentStatus.SETTLED claim.is_collected = True ``` **FAILED:** Claim cancelled or expired ```python theme={null} payment.payment_status = PaymentStatus.FAILED claim.is_cancelled = True ``` **Integration with Subscription Status:** * CLAIM\_CREATED → Subscription stays ACTIVE * SETTLED → Delivery proceeds normally * FAILED → Subscription may move to ERROR or ON\_HOLD ## How Claims Work ### The Claim Payment Flow To use claims, the customer must: * Be an Icelandic resident with a valid Icelandic ID number (kennitala) * Have an account with an Icelandic bank that supports claims * Set claims as their preferred payment method in their account The first time a customer uses claims, they authorize Journey to send payment requests to their bank on their behalf. About 5 days before the scheduled delivery date, Journey automatically creates a claim and sends it to the customer's bank. **What happens:** * Journey creates an invoice with the delivery items, amounts, and due date * This information is sent to the customer's bank via secure banking channels * The bank receives and validates the claim The customer logs into their online banking and sees the claim appear in their "Bills to Pay" section: **Customer sees:** * Invoice amount and due date * Merchant name (your store) * Items being delivered * Option to pay now or schedule payment for later * Option to set up automatic payments for future claims **Payment options:** * Pay immediately online * Schedule payment for a specific date * Set up recurring automatic payments Every day, Journey checks with the bank to see if the claim has been paid: * If paid: Marks as collected and proceeds with delivery * If unpaid but still within the due date window: Continues checking daily * If cancelled or overdue: Handles as a failed payment When the bank confirms payment: **Journey automatically:** * Marks the payment as settled * Confirms the subscription is active * Releases the order for packing and delivery * Updates inventory to reflect the fulfilled order * May send a confirmation notification to the customer **From the customer's perspective:** * They paid via their bank * Their delivery proceeds normally * No additional action needed ### Daily Claim Processing Journey automatically manages claims throughout their lifecycle without any manual intervention: **Every day, Journey:** 1. **Creates new claims** for deliveries scheduled within 5 days (or your configured window) * Claims are sent to customers' banks automatically * Customer receives notification in their banking portal 2. **Checks claim status** with all banks to see which claims have been paid or cancelled * **Paid claims:** Immediately marked as collected, delivery proceeds * **Unpaid claims:** Continue checking daily until payment arrives * **Cancelled claims:** Marked as failed, delivery gets rescheduled 3. **Records payment details** from the bank for accounting and reconciliation * Captures exact payment date and time * Stores bank reference information * Creates audit trail for financial records You don't need to do anything, this all happens automatically every night. ## Claim Configuration Options Journey comes with a default claim configuration optimized for most businesses. However, you can customize how claims work to match your specific business model. ### Default Configuration By default, Journey is set up for a standard B2C subscription model: * Claims created 5 days before delivery date * Customers have 10 days to pay * Delivery won't happen until payment is confirmed * If unpaid after 100 days, claim is cancelled This works well for most retail subscription services. ### Custom Configurations You can create different claim configurations for different customer types. Common scenarios: **For corporate customers who need longer to pay:** **Settings:** * Claims created earlier (3 days before delivery) * Payment due date: 30 days (Net 30) * Extended grace period: 60 days * Lower processing fees for volume **How it works:** * Corporate customer receives claim at the beginning of the month * They have up to 30 days to pay * If unpaid, a final reminder is sent at day 60 * Delivery is held until payment clears This is ideal for B2B relationships where longer payment terms are expected. **For established or high-value customers who receive first, pay after:** **Settings:** * Delivery happens immediately (even before payment) * Payment claim created 2 days before delivery * Customers have 7 days after delivery to pay * Claims cancelled after 60 days if unpaid **How it works:** * Customer receives their delivery * Claim is automatically sent to their bank (pay later) * They have a week to pay after receiving goods * Works similar to an invoice-based system **Important:** Only use this for trusted customers or low-value items. You're delivering before payment is guaranteed. **For merchants with unique business needs:** You can customize: * When claims are created (days before delivery) * Payment due date window * Escalation timelines for overdue claims * Processing fees * Whether delivery happens before or after payment Contact your Journey support team to set up a custom configuration. ## Monitoring & Admin Interface ### Managing Claims You can view and manage all claims through your Journey admin dashboard. **Viewing Claims:** From the claims list, you can see: * **Claim number** - Reference number sent to the bank * **Associated order** - Which customer order this claim is for * **Payment status** - Whether the claim has been paid or cancelled * **How many times checked** - How many days Journey has been checking for payment * **Delivery status** - How many times the delivery date was moved due to unpaid claim **Finding a Specific Claim:** Search by: * Claim number * Order ID * Customer name or email **Managing a Claim:** For individual claims, you can: * View payment details and timestamps * See when the claim was created * See when the customer paid (if paid) * Link directly to the customer's account **Cancelling Claims:** You can cancel one or more claims at once: * Select the claims you want to cancel * Choose "Cancel selected claims" * Optionally put the customer's subscription on hold * Confirm the action—the claim cancellation is sent to the bank ## Related Concepts Understanding Journey's payment processing and alternatives to claims How claims integrate with subscription payment retry logic Consider adding claim notification events for customer updates Track claim collection rates and payment timing in reports # Recurring Payments & Dunning Source: https://docs.journey.club/payments/recurring-payments Automated subscription billing with intelligent retry logic, multi-frequency support, and seamless payment processor integration ## What are Recurring Payments? **Recurring Payments** in Journey are automated billing transactions that execute on defined schedules without manual intervention. Journey's system handles everything from payment method storage to retry logic, enabling businesses to run subscription models with minimal operational overhead. **Key Innovation:** Journey's recurring payment engine supports multi-frequency billing within a single subscription, automatic dunning management, and seamless switching between payment processors (Straumur, Reepay, Rapyd) without code changes. ## How Recurring Payments Work Journey's billing system operates on a delivery-centric model where payments are tied to delivery or charge dates: Customer signs up with payment method verification System creates orders from subscription recipe based on item frequencies Each order gets a delivery or billing date (depending on whether the merchant is uses physical products or not) On the delivery/billing date, system automatically charges the customer's payment method Payment status updates subscription state (active, past\_due, error, expired) Failed payments trigger automatic retry sequences with customer notifications ### Payment Flow Diagram ```mermaid theme={null} graph TD A[Delivery/Billing Date Arrives] -->|Midnight Cron| B[Create Payment Object] B --> C{Payment Method Valid?} C -->|Yes| D[Charge Payment Processor] C -->|No| E[Mark as Failed] D --> F{Charge Successful?} F -->|Yes| G[Status: Settled] F -->|No - Retryable| H[Status: Past Due] F -->|No - Error| I[Status: Error] G --> J[Subscription: Active] H --> K[Start Dunning] I --> L[Requires Intervention] K --> M{Retry Succeeds?} M -->|Yes| J M -->|No - Day 20| N[Status: Expired] ``` ## Payment States Payments progress through clearly defined states: ```mermaid theme={null} graph LR A[New Charge] --> B[Authorized] B --> C[Settled] A --> D[Failed] D --> E{Retryable?} E -->|Yes| F[Retry Tomorrow] E -->|No| G[Cancelled] F -.->|Succeeds| C F -.->|Max Retries| G C --> H[Refunded] ``` ### Status Definitions Payment object created but not yet attempted. Occurs when delivery/billing date arrives and system creates initial payment record. **Next Step:** Immediate charge attempt via payment processor The payment method has been verified and funds are **reserved**, but no money has actually been transferred yet. **What's happening:** The payment processor confirms the customer has enough funds available, and those funds are temporarily set aside and unavailable to the customer for other purchases. **Next Step:** Funds will be captured (actually transferred) when the delivery ships or billing date arrives. Most payments move from Authorized to Settled within a few days. Money has been **actually transferred** from the customer's account to yours. This is the final successful state. **What happened:** The authorized funds were captured, processed through the banking system, and are now in your merchant account. You have the revenue. **Effect:** Subscription remains/returns to active status, and you can rely on having received the payment Payment attempt was declined by payment processor or bank. **Triggers:** * Insufficient funds (past\_due) * Expired card (error) * Invalid card (error) * Technical issues (error) **Next Step:** Automatic retry based on error classification Payment was cancelled due to: * Max retry attempts exceeded (20 days default) * Delivery cancelled before charge * Merchant manually cancelled **Final State:** No further processing Previously settled payment has been refunded to customer. **Triggers:** * Customer return * Merchant error * Service cancellation **Process:** Full or partial refund via payment processor API Authorization has expired before capture (typically 7 days for card authorizations). **Resolution:** New authorization required ## Multi-Frequency Billing Journey uniquely supports different billing frequencies for items within a single subscription. ### How It Works **Traditional Systems:** ``` All items share one frequency ❌ Customer must create separate subscriptions for different schedules ❌ Higher operational complexity ❌ More payment transactions = more fees ``` **Journey's Approach:** ``` Each item has its own frequency ✅ Single subscription for all items ✅ Intelligent delivery synchronization ✅ Fewer transactions through batching ``` ### Example: Grocery Subscription ```json theme={null} { "subscription_id": 789, "order_items": [ { "product": "Fresh Milk", "frequency": "every_7_days", "next_charge": "2025-11-01" }, { "product": "Eggs", "frequency": "every_14_days", "next_charge": "2025-11-08" }, { "product": "Coffee Beans", "frequency": "every_30_days", "next_charge": "2025-11-15" } ] } ``` **Billing Schedule:** * **Nov 1:** Charge for Milk only * **Nov 8:** Charge for Milk + Eggs (synchronized) * **Nov 15:** Charge for Milk + Coffee (synchronized) * **Nov 22:** Charge for Milk + Eggs (synchronized) Journey's 5-day synchronization window automatically batches items, reducing payment processing fees by up to 60% compared to separate charges. ## Payment Processors Journey supports multiple payment processors with unified API: | Processor | Region | Features | Use Case | | ------------ | ------- | -------------------------- | --------------------- | | **Straumur** | Iceland | Local cards, low fees | Icelandic merchants | | **Reepay** | Europe | SEPA, cards, subscriptions | European expansion | | **Rapyd** | Global | 900+ payment methods | International markets | ### Processor Selection Journey **doesn't automatically select the payment processor**. Instead, it provides flexibility for merchants to configure which processor to use based on their business needs. **Configuration Options:** 1. **Per-Subscription Level** - Assign specific processor when creating subscription 2. **Per-Customer Level** - Set preferred processor for customer's payment methods 3. **Multiple Processors** - Journey supports running multiple payment processors simultaneously, allowing you to: * Test new processors without migrating existing customers * Offer region-specific payment options * Segment customers by processor (e.g., B2B vs B2C) * Gradually migrate between processors **Selection Priority:** The system checks for a processor in this order: 1. Processor explicitly assigned to the subscription 2. Customer's preferred processor (from their payment method) 3. Merchant's default payment processor You can have multiple payment processors active at the same time. For example, use Straumur for Icelandic customers and Reepay for international customers within the same merchant account. ## Automated Billing Process Journey runs daily billing automation to handle recurring payment processing automatically. ### Daily Billing Workflow The system performs several key operations each day: The system identifies deliveries scheduled for today that haven't been charged yet. For each eligible delivery: * Creates a payment record * Charges the customer's payment method * Updates subscription status based on payment result **Result:** New charges processed for today's deliveries For payment processors that use two-step authorization (authorize → capture), the system finds payments that were pre-authorized and are now ready to be captured when their delivery date arrives. **Result:** Pre-authorized payments captured and funds transferred The system identifies subscriptions with failed payments that are eligible for retry (within the configured retry window and daily retry limit). Each payment is attempted once per day. **Result:** Daily retry attempts for recoverable payment failures Payments that have exceeded the maximum retry period (typically 20 days) are automatically cancelled. The associated subscriptions are expired and future deliveries are cancelled. **Result:** Expired subscriptions and cancelled deliveries for unrecoverable payments Customer notifications are triggered based on payment attempt counts: * First failure: Friendly reminder * Every 4th attempt: Urgent reminder with days remaining * Final attempt: Last chance notice * After expiration: Subscription cancelled notice **Result:** Automated customer communication throughout the dunning process ### Monitoring Journey provides comprehensive monitoring of the automated billing process: **Logging:** * All cron job executions are logged with timestamps and results * Errors are captured with full context for debugging * Processing summaries show counts of payments processed, retries attempted, and subscriptions updated **Alerts:** * Payment processor failures trigger immediate alerts * Unusually high retry rates indicate potential issues * Authorization decline spikes warrant investigation * Processing time exceeding thresholds ## Payment Retry Logic & Dunning **Dunning** is the process of automatically recovering failed payments through intelligent retries and customer communication. When a payment fails, Journey doesn't give up—it classifies the failure and retries using the most effective strategy for that error type. **Why it matters:** * Without dunning, 20-30% of subscriptions would churn unnecessarily from temporary payment issues * With intelligent dunning, 70-80% of failed payments successfully recover * Automated retries and customer notifications make it seamless for customers to fix issues Journey implements intelligent retry logic based on error classification: ### Error Classification | Error Type | Example Codes | Classification | Retry Strategy | | ------------------ | --------------------------- | -------------- | -------------------------------- | | Insufficient Funds | `51`, `insufficient_funds` | PAST\_DUE | Daily retry × 20 | | Card Declined | `05`, `card_declined` | PAST\_DUE | Daily retry × 20 | | Do Not Honor | `04`, `do_not_honor` | PAST\_DUE | Daily retry × 20 | | Expired Card | `54`, `expired_card` | ERROR | No retry (update required) | | Invalid Card | `14`, `invalid_card_number` | ERROR | No retry (update required) | | Fraud Suspected | `fraud_detected` | ERROR | No retry (verification required) | | Gateway Error | `500`, `timeout` | ERROR | No retry (technical issue) | ### Retry Schedule ``` Day 1: Attempt 1 → Failed Status: past_due Action: Send friendly reminder Day 2: Attempt 2 → Failed Action: Silent retry Day 3: Attempt 3 → Failed Action: Silent retry Day 4: Attempt 4 → Failed Action: Send urgent reminder (4th attempt) Days 5-7: Silent retries Day 8: Attempt 8 → Failed Action: Send urgent reminder (8th attempt) Days 9-11: Silent retries Day 12: Attempt 12 → Failed Action: Send urgent reminder (12th attempt) Days 13-15: Silent retries Day 16: Attempt 16 → Failed Action: Send urgent reminder (16th attempt) Days 17-19: Silent retries Day 20: Attempt 20 → Failed (FINAL) Status: error Action: Send final notice Day 21: No retry Status: expired Action: Cancel subscription ``` ``` Day 1: Attempt 1 → Failed (expired card) Status: error Action: Send immediate notification "Please update payment method" Day 2+: No automatic retries Status: remains error Action: Customer must update card When customer updates: System: Automatically use new card Next scheduled: Normal billing resumes ``` Customers can update payment methods at any time during the retry period. The next retry automatically uses the new card without manual intervention. ### Retry Prevention Journey implements safeguards to prevent excessive retry attempts: **Daily Limit:** Only one retry attempt per payment per day * Prevents rapid-fire retry attempts that could trigger fraud detection * Reduces payment processor fees from multiple failed attempts * Gives customers time to resolve underlying issues (add funds, update card, etc.) **Already Attempted Check:** System tracks the last attempt timestamp * Skips retry if already attempted today * Prevents duplicate charges if cron job runs multiple times * Ensures predictable billing behavior for customers ## Payment Method Management ### Adding Payment Methods Customers can easily add and manage their payment methods on their My Pages account. **How It Works:** 1. **Go to My Pages** - Customer logs into My Pages and goes to the Payment Methods section 2. **Add New Card** - Click "Add Payment Method" and securely enter their card details 3. **Verification** - The system verifies the card 4. **Set as Primary** - Customer can choose which card to use for their subscription 5. **Auto-Billing** - On the next billing date, the selected card is automatically charged **Multiple Cards:** Customers can add multiple payment methods and switch between them at any time. This is especially useful if they want to use different cards for different subscriptions, or if their primary card expires. Customers can update their payment method anytime on My Pages—even during a failed payment recovery period. The next automatic retry will use their updated card. ### Updating During Dunning **Scenario:** Payment fails, customer updates card while in retry period. **Journey's Seamless Recovery:** 1. Customer adds new payment method through the customer portal 2. New card is automatically set as their primary payment method 3. The very next retry attempt (could be within hours) uses the new card 4. If the new card charges successfully, subscription immediately returns to active status 5. Customer experiences no service interruption or missed deliveries **Behind the Scenes:** * System always uses the customer's current primary payment method for retry attempts * No manual intervention needed from support or merchant * Subscription status updates automatically based on payment success * Delivery schedules remain intact if payment recovered within retry window This seamless recovery is a key feature - customers can fix payment issues without contacting support or missing deliveries. The system is designed to "just work" when customers update their payment information. ## Refunds and Adjustments **Process:** * Merchant initiates refund for the entire payment amount * System calls the payment processor's refund API * If successful, payment status updates to `REFUNDED` * Customer receives credit to their original payment method Refunds cannot be reversed once processed. Always confirm amount and reason before executing. ## Invoice Generation Journey automatically generates invoices for every successful payment. ### What's Included on Invoices Each invoice includes: * **Order Details** - Items ordered, quantities, and prices * **Delivery Fee** - If applicable * **Subtotal & Tax** - Clear cost breakdown * **Payment Method** - Last 4 digits of the card used * **Payment Date** - When the charge was processed * **Next Billing Date** - When the next charge will occur ### Auto-Send Invoices Customers can enable automatic invoice delivery through their My Pages settings. When enabled: **Trigger:** After every successful payment settles **How It Works:** * Customers check "Send me invoices automatically" on My Pages * After each payment, they receive an email with the invoice PDF attached * They can also print or forward invoices as needed **Configuration:** * Each customer controls this setting individually * Can be toggled on/off at any time * Takes effect on the next payment ### Invoice History All invoices are always available in the **Order History** section of My Pages: * **View Anytime** - Customers can access any past invoice without relying on email * **Download** - Invoices can be downloaded as PDF for record-keeping or accounting * **Print** - Print directly from My Pages for records or receipts Customers have two ways to access invoices: via email (if auto-send is enabled) or anytime through their Order History on My Pages. ## Stock Management Integration Journey integrates payment status with stock management: ### Stock Lifecycle **Stock Availability Check:** * System verifies all items are in stock before creating order * If any item is unavailable, order creation fails * Prevents overselling and customer disappointment **Stock Reservation:** * When payment is pre-authorized, stock is reserved for this order * Reserved stock is temporarily unavailable to other customers * Ensures items will be available when payment captures **Stock Fulfillment:** * Once payment fully settles, stock is permanently reduced * Reservation is removed (no longer needed) * Order moves to fulfillment queue **Stock Unreservation:** * If payment fails or is cancelled, reserved stock is released * Items become available again for other customers * Prevents stock being locked indefinitely for failed orders This integration ensures inventory accuracy and prevents overselling during payment processing delays. ## Security & Compliance ### PCI DSS Compliance Journey never stores raw card data: **Secure Flow:** ``` Customer enters card ↓ Directly to processor ↓ Processor returns token ↓ Journey stores token only ↓ Token used for charges ``` **Journey stores:** * ✅ Payment method tokens * ✅ Last 4 digits * ✅ Card type (Visa, Mastercard) * ✅ Expiry date **Journey never stores:** * ❌ Full card numbers * ❌ CVV codes * ❌ PIN numbers ### 3D Secure Support All processors support 3D Secure authentication: ```json theme={null} { "requires_3ds": true, "redirect_url": "https://secure.bank.com/verify", "challenge_required": true } ``` **Flow:** 1. Customer initiates payment 2. Bank requires 3DS challenge 3. Customer redirected to bank verification 4. After verification, return to Journey 5. Payment completes ### Data Protection **Encryption:** * All API calls use TLS 1.3 * Database fields encrypted at rest * Payment tokens encrypted with AES-256 **Access Control:** * Multi-tenant data isolation * Role-based permissions * Audit logging for all payment actions ## Related Concepts Understand subscription lifecycle and how payments integrate with recurring orders Understand Icelandic invoice claims as an alternative payment method Learn how payment events trigger automated customer notifications Track payment performance, revenue metrics, and failure analysis # Delivery & Fulfillment Source: https://docs.journey.club/subscriptions/delivery-fulfillment This applies to merchants with physical products. If you only offer digital services, skip to Payments. ## Overview If you sell physical products and use subscriptions, this section covers how Journey coordinates the complex logistics of getting items to customers on time, managing inventory, and optimizing delivery costs. **What You'll Learn:** 1. **Delivery Synchronization** - How Journey intelligently groups multi-frequency items into efficient shipments 2. **Packing Zones** - How the system protects your fulfillment team by locking in orders before packing begins 3. **Frequency Management** - How customers can adjust delivery schedules without disrupting billing 4. **Automated Processing** - How daily billing, payment recovery, and fulfillment work together seamlessly 5. **Payment & Inventory Integration** - How payment status controls stock management and delivery timing **Key Business Benefits:** * **Reduced Shipping Costs** - Automatic consolidation of multi-frequency items saves on per-delivery fees * **Operational Efficiency** - Packing zones prevent chaos and ensure teams have time to fulfill orders properly * **Customer Satisfaction** - Predictable delivery schedules with flexibility to pause, resume, or adjust frequency * **Revenue Protection** - Automatic dunning (payment recovery) means failed payments don't block fulfillment Let's explore how it all works together: ## Delivery Synchronization Algorithm ### The Problem With multi-frequency subscriptions, you could end up with many small, inefficient deliveries: * **Monday:** Milk only (weekly) * **Tuesday:** Eggs only (bi-weekly) * **Friday:** Coffee only (monthly) **Result:** High shipping costs, poor customer experience, increased carbon footprint. If this is something that the merchant wants to avoid, they can turn on the join-by-week feature. ### The Join-by-Week Algorithm Journey automatically merges deliveries that are **within 5 days** of each other into a single shipment. This intelligent consolidation reduces shipping costs for both you and your customers, customers benefit from fewer shipments and lower delivery fees, while you reduce per-unit shipping expenses through bulk consolidation. #### How It Works For each product in the subscription, Journey calculates when it's next due based on its frequency: ``` Milk (weekly): Last delivered Oct 1 → Next: Oct 8 Eggs (bi-weekly): Last delivered Oct 1 → Next: Oct 15 Coffee (monthly): Last delivered Sep 1 → Next: Oct 1 ``` Which item is due first is identified: ``` Earliest: Oct 1 (Coffee) ``` We check which other items are due within 5 days of the earliest date: ``` Coffee: 0 days away → Include ✅ Milk: 7 days away → Don't include (outside window) Eggs: 14 days away → Don't include ``` **Result:** Ship only Coffee on Oct 1 On Oct 8, the process is repeated: ``` Milk: 0 days away → Include ✅ Eggs: 7 days away → Don't include (but getting close!) Coffee: Already fulfilled ``` **Result:** Only milk is shipped on Oct 8 On Oct 15: ``` Eggs: 0 days away → Include ✅ Milk: Already fulfilled (next due Oct 15) ``` Wait! Milk is also due Oct 15. Both within window: ``` Eggs: 0 days away → Include ✅ Milk: 0 days away → Include ✅ ``` **Result:** Milk + Eggs are shipped together on Oct 15 #### Business Benefits of Consolidation By intelligently grouping deliveries within a 5-day window: | Benefit | Impact | | ------------------------------ | -------------------------------------------------------------------------------------- | | **Reduced Shipments** | Customers receive fewer packages (fewer shipping fees pass to them) | | **Lower Per-Unit Costs** | Consolidating multiple items onto one truck reduces your cost per delivery | | **Improved Margins** | Fewer shipments = better profitability on subscriptions | | **Better Customer Experience** | Customers prefer consolidated deliveries (less packaging waste, fewer doorstep visits) | | **Logistics Efficiency** | More items per shipment = better truck utilization and lower carbon footprint | This is why multi-frequency subscriptions (milk weekly, eggs bi-weekly, coffee monthly) don't result in three separate shipments—the algorithm intelligently batches items that are due around the same time. ### Packing Zones & Weekday Alignment If you're shipping physical deliveries, the system protects your fulfillment operations by: 1. **Locking down packing time** before each delivery day 2. **Aligning deliveries to allowed weekdays** for each postal code This prevents the chaos of scheduling deliveries during weeks when your team is still packing previous orders. #### Packing Zone Configuration You configure for each delivery day: * **When packing starts:** typically 1 day before delivery (Wednesday for a Thursday delivery) * **When new orders are locked in:** typically 8 AM on delivery day (by Thursday 8 AM, Thursday's packing is frozen) **Visual Timeline:** ``` Wednesday Thursday Friday 00:00 ────────────── 08:00 ──────────────── ↓ ↓ ↓ Packing CUTOFF - Customer Starts No more orders receives (prev orders) for Thursday (if paid on time) packing locked in ``` **Key Rule:** If a delivery date falls within this packing window, it's automatically pushed to the **next allowed weekday** for that postal code. **Why This Matters:** * **Prevents overwhelming packing teams** - Can't add rush orders once packing starts * **Guarantees fulfillment time** - Cutoff ensures orders are finalized before hand-packing * **Improves accuracy** - No mid-packing changes causing errors * **Customer benefit** - More predictable delivery schedules ### Adjust Delivery Frequency Customers can change how often they receive deliveries (e.g., switching from weekly to bi-weekly). **What Happens:** The system uses a simple rule: **next delivery date = last delivery date + new frequency interval** This means the next delivery is always calculated from when they last received (and paid for) the item, not from today. **Example:** ``` Scenario: Customer has been receiving milk weekly. Today is Oct 20. They want to switch to bi-weekly. Last delivery: Oct 15 (successfully charged) Old frequency: Weekly (7 days) New frequency: Bi-weekly (14 days) Today: Oct 20 Calculation: ├─ Start point: Last successful charge = Oct 15 ├─ Add new frequency: Oct 15 + 14 days └─ Next delivery: Oct 29 Timeline: Oct 15 (charged) Oct 20 (change frequency) Oct 29 (next charge) ✓ ↓ Last charge Customer switches New delivery (4 days in) (14 days after Oct 15) ``` **Why This Approach:** * **Fair to customers** - They don't get charged earlier just because they made the change late in the week * **Predictable** - Changes don't create confusing gaps or sudden charges * **Simple logic** - Easy for customers to understand when their next charge will be **Business Impact:** Frequency changes are a powerful retention tool—customers who find a subscription too frequent often stick around when they can adjust the cadence. ## Automated Processing ### Daily Billing Process The system runs a completely automated billing process every day to handle subscription payments. This ensures that recurring revenue is processed consistently without manual intervention, giving your team more time to focus on customer relationships and growth. The system identifies all subscriptions with deliveries scheduled for today and automatically charges the customer's payment method. If a payment fails, the system automatically retries the charge. This recovery process (called dunning) helps maximize revenue by giving customers multiple opportunities to update their payment information before their subscription is interrupted. Subscriptions that encounter payment issues are flagged as "at-risk" so your team can proactively reach out to customers before their service is disrupted. Automatic messages (email and SMS) can be configured that get sent to these customers. These messages can e.g. navigate customers to their my pages where they can update their payment information. After a configurable grace period (default: 20 days), unpaid subscriptions are automatically cancelled. This protects your business from unlimited payment failures while giving customers a fair window to resolve billing issues. For digital products and automated fulfillment integrations, deliveries are automatically marked as complete when no manual action is required. ### Key Business Outcomes When a payment is processed, the system automatically updates the subscription status based on the result. Successful charges keep the subscription active and the customer's service flowing uninterrupted. Failed charges transition the subscription to a "past due" state, triggering your retention workflows and giving you time to recover the revenue. This automated cycle ensures predictable recurring revenue while minimizing churn from payment failures. ## Dunning Management Journey automatically handles failed payments through a configurable two-layer system that balances recovery opportunities with business protection. ### How It Works: Two Key Controls The dunning system uses **two distinct levers** to manage failed payments: **Retry Attempts:** How many times the system tries to collect payment (typically one attempt per day) **Cancellation Days:** After how many calendar days the system gives up and cancels the delivery These work independently, giving you flexibility to match your business strategy. **Example Configuration:** * **Dunning Settling Attempts:** 25 (retry up to 25 times to maximize recovery) * **Failed Payment Cancelled Days:** 18 (but free up inventory after 18 days for other orders) Both are fully configurable per your business needs. ### Understanding the Dunning Timeline Here's what happens with the example configuration (25 attempts, 18 days): | Timeline | What Happens | Subscription Status | Customer Experience | | -------------- | ------------------------------------------------------ | ----------------------------- | ---------------------------------------------------------- | | **Day 1** | Payment attempt fails | Changes to PAST\_DUE or ERROR | Receives notification with next steps | | **Days 2-17** | System retries once per day | Stays PAST\_DUE/ERROR | Receives reminders every 4 attempts | | **Day 18** | Delivery cancelled and stock freed | Still PAST\_DUE/ERROR | Inventory is reallocated; no more delivery attempt | | **Days 19-25** | System continues retrying (attempting to collect debt) | Still PAST\_DUE/ERROR | Receives continued reminders every 4 attempts | | **Day 25** | Reaches max retry attempts | Changes to EXPIRED | Receives final cancellation notice; subscription suspended | **Key Insight:** The delivery gets cancelled on Day 18 (freeing inventory), but the subscription keeps trying to collect payment until Day 25 (maximizing revenue recovery). This separation lets you balance operational concerns (inventory) with financial goals (payment recovery). ### Configurable Strategy You can adjust these settings independently to match your business needs: | Scenario | Dunning Attempts | Cancelled Days | Why Different? | | ---------------------- | ---------------- | -------------- | ---------------------------------------------------------------------------------------- | | **Inventory-Focused** | 25 | 18 | Keep retrying payment longer, but free up stock faster for other orders | | **Balanced (Default)** | 20 | 20 | Attempts expire at roughly the same time as delivery cleanup | | **B2B/High-Value** | 15 | 25 | Stop automated retries sooner, but keep longer for manual intervention or reconciliation | | **Fulfillment-Driven** | 20 | 10 | Keep retrying, but notify warehouse 10 days in to reallocate resources | **Key Principle:** These two settings let you optimize for different business constraints: * **Dunning attempts** = How aggressive you want to be about recovering revenue * **Cancelled days** = How long you can hold inventory or keep delivery records in limbo **During this entire period, customers can update their payment method at any time.** The next automatic retry will use their new card. ### Error Code Classification Journey categorizes payment failures as either **retryable** (past\_due) or **requires intervention** (error): | Error Type | Error Codes | State | Retry? | | ------------------ | ------------------------------------------ | --------- | ------ | | Insufficient Funds | `insufficient_funds`, `51`, `do_not_honor` | PAST\_DUE | Yes ✅ | | Card Declined | `card_declined`, `05`, `04` | PAST\_DUE | Yes ✅ | | Expired Card | `expired_card`, `54` | ERROR | No ❌ | | Invalid Card | `invalid_card_number`, `14` | ERROR | No ❌ | | Fraud Detected | `fraud_detected`, `fraud` | ERROR | No ❌ | | Technical Error | `gateway_timeout`, `500` | ERROR | No ❌ | ## Edge Cases & Special Scenarios ### Customer Updates Payment Method During Dunning **Scenario:** A payment fails, but the customer quickly updates their payment information. **What Happens:** * The customer adds and verifies a new payment method * The system automatically uses this updated method on the next retry * If the charge succeeds, the subscription returns to active status immediately * No deliveries are missed and the system continues seamlessly **Business Impact:** Self-service payment recovery removes friction and significantly improves retention. Many customers just need an easy way to update their card, and the system handles it automatically from there. ### Changing Frequency Mid-Subscription **Scenario:** A customer decides to change how often they receive an item mid-cycle. **What Happens:** * All previously scheduled deliveries continue unchanged (whether paid or unpaid) * The new frequency takes effect starting from the **latest scheduled delivery date**, not the last paid delivery * The system recalculates future delivery dates based on the **maximum delivery date already in the system** (paid or unpaid) **Example:** ``` Scenario: Customer has weekly milk deliveries. Today is Nov 8. They switch to bi-weekly. Scheduled but unpaid: Nov 12 (automatically created by system) Old frequency: Weekly (7 days) New frequency: Bi-weekly (14 days) Today: Nov 8 Timeline: Nov 5 (charged) Nov 8 (change) Nov 12 (scheduled) Nov 26 (new next) ✓ ↓ ✓ ✓ Last delivery Customer switches This still happens New delivery to bi-weekly (already in system) (14 days after Nov 12) Result: ├─ Nov 5 delivery: Occurred as normal ├─ Nov 12 delivery: Proceeds as scheduled (already exists in system) ├─ Nov 19 delivery: Cancelled/removed because new frequency starts from Nov 12 └─ Nov 26 becomes the new delivery date (Nov 12 + 14 days) ``` **Why This Works:** * The system doesn't track "paid vs unpaid" when calculating the next delivery — it tracks **all scheduled deliveries** * When frequency changes, it uses the **latest scheduled delivery date** as the baseline * This prevents overlapping or skipped deliveries * Existing orders stay in place to maintain consistency with the fulfillment pipeline **Business Impact:** Future deliveries adapt to the new frequency based on the latest scheduled date, ensuring a smooth transition without gaps or overlaps. Existing scheduled orders are preserved regardless of payment status to maintain fulfillment consistency. ### Managing Out-of-Stock Situations **Current Behavior:** Users can track the stock count and can review when products become low in stock and out of stock and handle the situation accordingly. For example: * Skip the item for this cycle only * Reschedule it for a future delivery * Substitute with an alternative product **Business Impact:** Proactive inventory management prevents service interruptions and maintains customer satisfaction without requiring complex automation. ## Related Concepts Understand subscription setup, customer management, and how delivery integrates with the subscription lifecycle Understand how payments are processed and how payment status drives delivery fulfillment Explore how delivery notifications, delays, and updates are communicated to customers Learn about Icelandic invoice claims as an alternative payment method for deliveries # Subscriptions Source: https://docs.journey.club/subscriptions/subscriptions Understanding Journey's recipe-based subscription engine with multi-frequency billing ## What is a Subscription? A **subscription** in Journey is a recipe-based recurring billing container that automatically generates orders and processes payments based on defined frequencies. Unlike traditional subscription systems, Journey supports different billing frequencies for each item within a single subscription. **Key Innovation:** Journey's multi-frequency system allows items like "milk weekly, eggs bi-weekly, and coffee monthly" to coexist in one subscription, with intelligent delivery synchronization to minimize shipping costs. ## The Recipe Model Journey's subscription system works like a recipe: Holds customer information, delivery preferences, and payment processor configuration Defines what products to deliver and how often (the "ingredients") Created automatically from the recipe on each billing cycle Represent when the order will be delivered AND charged (dual purpose) Track the transaction status for each order ### Example: Multi-Frequency Subscription ```json theme={null} { "subscription_id": 789, "customer_id": 42, "subscription_status": "active", "order_items": [ { "product_variation_id": 5, // Milk "quantity": 2, "subscription_frequency_id": 1 // Every 7 days (weekly) }, { "product_variation_id": 8, // Eggs "quantity": 1, "subscription_frequency_id": 2 // Every 14 days (bi-weekly) }, { "product_variation_id": 12, // Coffee "quantity": 1, "subscription_frequency_id": 3 // Every 30 days (monthly) } ] } ``` ## Subscription States ### Status Definitions Customer information and subscription created but missing payment information. This typically occurs when customers start the signup process but don't complete it—they enter their details but never add a payment method (known as an "abandoned cart"). No charges are attempted until a payment method is added. This represents a recovery opportunity to re-engage these customers. The subscription is processing normally. Orders are created and payments are charged according to each item's billing frequency. This is the healthy state. A recent payment failed with a retryable error (insufficient funds, card declined). The dunning process has started and will retry daily. **Trigger:** Payment declined with error codes like `insufficient_funds`, `card_declined` Payment failed with a card-related error (expired card, invalid card, fraud detection). Journey retries daily to settle payment but the error requires manual intervention or customer action, such as update payment method. **Trigger:** Technical payment errors or card issues The subscription is paused by customer or merchant. No new orders or charges occur. Can be resumed (on my pages and/or Journey admin) at any time without losing configuration. We encourage merchants to use on hold if the customer requests to stop subcription. **Use Cases:** Vacation, temporary or permanent financial hardship, seasonal or permanent pause. The subscription has been automatically put to status expired after extended payment failure (exceeding `failed_payment_cancelled_days`, default 20 days). All pending deliveries are cancelled and the past due process has finished. **Final State:** Cannot be reactivated except with manual intervention by admin Subscriptions progress through clearly defined states with automatic or manually triggered (on my pages) transitions: ```mermaid theme={null} graph TD A[Incomplete] -->|First payment succeeds| B[Active] B -->|Payment fails, insufficient funds| C[Past Due] B -->|Payment fails, card expired, reported stolen| D[Error] D -->|Max retries exceeded, dunning process finished| E[Expired] C -->|Max retries exceeded, dunning process finished| E[Expired] B -->|Customer or admin pauses| F[On Hold] F -->|Customer or admin resumes| B C -->|Payment succeeds| B D -->|Payment succeeds| B ``` ## Creating a Subscription Setting up a new subscription follows a straightforward four-step process. Each step ensures the customer is verified, their payment method is secured, and their recurring order preferences are captured. Collect the customer's basic information including name, email, phone number, and delivery address. This information is used for billing, customer communication, and order fulfillment. The customer adds and verifies a payment method (typically a credit or debit card). This is handled through a secure payment interface that keeps sensitive payment data protected while confirming the card is valid and active. Once customer details and payment are confirmed, the subscription is activated. You can specify the start date and choose which delivery schedule option the customer prefers (e.g., weekly, bi-weekly, monthly). The customer selects which products they want to receive and how frequently. For example, they might want item A delivered weekly and item B delivered bi-weekly. The system tracks these preferences and uses them during each automated billing cycle. ### System Auto-Generates Orders Once the subscription is live, the system automatically handles the rest: 1. Calculates when each item needs to be delivered based on the customer's chosen frequency 2. Optimizes delivery dates to consolidate multiple items when possible 3. Coordinates with regional delivery schedules for efficiency 4. Creates orders and schedules deliveries 5. Charges the customer on their delivery date ## Managing Subscriptions Your team has full flexibility to manage active subscriptions, making it easy to retain customers through life changes and evolving needs. ### Pause a Subscription Allow customers to temporarily stop their subscriptions without canceling. This is useful for vacations, budget constraints, or seasonal needs. **Control the Customer Experience:** You decide whether customers can pause on their own or must contact your support team. This gives you options: * **Self-service pause** - Customers pause immediately through their [My Pages](/customer-engagement/my-pages) (reduces support burden) * **Manual pause** - Customers email support to pause (gives you a chance to intervene and offer alternatives) **Capture Why They're Pausing:** You can define custom pause reasons for customers to choose from. Examples: * "Going on vacation" * "Budget constraints" * "Seasonal - will resume in spring" * "Product quality concerns" * "Too frequent deliveries" * "Switching to competitor" **Suggest Alternatives Before Pause:** When a customer selects certain reasons, you can automatically suggest alternatives: * **For "Too frequent"** → "Would you prefer bi-weekly instead of weekly?" * **For "Budget constraints"** → "Would you like to delay your next delivery by 2 weeks?" * **For "Seasonal"** → "Would you like to resume automatically on \[date]?" This data helps you understand churn reasons and gives you opportunities to retain customers with adjusted terms rather than lost revenue. **What Happens:** * The subscription is placed on hold * No new charges occur * Customers can resume at any time without signing up again * Optionally, any pending deliveries can be cancelled if the customer prefers **Business Impact:** Pause functionality significantly reduces churn because customers can easily come back without friction. ### Resume a Subscription When customers are ready to restart, they can resume their subscription instantly. **What Happens:** * The subscription becomes active again * The system recalculates delivery dates based on the resumed date * New orders begin generating immediately * You can optionally apply a "welcome back" discount to encourage re-engagement **Business Impact:** Reactivating paused subscriptions is pure revenue recovery with minimal effort. ### Update Product Selections Customers can change which products they want to receive or adjust quantities at any time. **What Happens:** * New product preferences take effect immediately for future deliveries * Any orders already paid continue as-is (no disruption) * Changes only apply to upcoming deliveries, protecting your revenue pipeline **Business Impact:** Flexibility here reduces churn from customers with changing preferences. ## Subscription Frequencies Each subscription item can have its own billing frequency: | Frequency | Description | Interval | Common Use Cases | | ----------- | -------------- | --------- | -------------------------- | | Weekly | Every 7 days | 7 days | Fresh groceries, meal kits | | Bi-weekly | Every 14 days | 14 days | Household supplies | | Monthly | Every 30 days | 1 month | Insurance premiums, SaaS | | Bi-monthly | Every 60 days | 60 days | Quarterly-lite products | | Quarterly | Every 90 days | 3 months | Seasonal items, insurance | | Semi-Annual | Every 180 days | 6 months | Long-term services | | Annual | Every 365 days | 12 months | Annual memberships | Each business can customize which frequency options are available for their subscriptions. This allows you to offer only the delivery schedules that make sense for your business model. ### How Delivery Dates Are Calculated The system automatically calculates when each item should be delivered next, based on its frequency. This calculation is more sophisticated than it might seem, especially for monthly deliveries. **Examples:** | Frequency | How It Works | | ------------- | ---------------------------------------------------------------------------------------------------------------------- | | **Weekly** | Each delivery is exactly 7 days after the previous one | | **Monthly** | Delivered on the same date each month (e.g., always on the 15th), accounting for months with different numbers of days | | **Quarterly** | Delivered every 3 months on the same day of the month | For instance, if a customer's monthly delivery is on the 31st and one month only has 30 days, the system intelligently handles this edge case. This accuracy is critical for building customer trust and ensuring consistent, predictable billing. This ensures that subscriptions created on Jan. 31 will be billed on Feb. 28 (not March 3). ## Common Use Cases ### Insurance Premium Subscriptions Perfect for recurring fees or premium charges with no physical product involved. | Aspect | Details | | ------------- | --------------------------------------------- | | **Items** | 1 monthly premium charge | | **Frequency** | Monthly | | **Example** | Car insurance premium auto-renewed each month | ### SaaS Subscriptions Ideal for SaaS platforms offering tiered access or service levels. | Aspect | Details | | ------------- | --------------------------------------------- | | **Items** | 1 software plan/tier | | **Frequency** | Monthly or annually | | **Example** | Pro Plan subscription renewed every 12 months | ### E-commerce Box Subscriptions Curated collections delivered as a complete package each month. | Aspect | Details | | ------------- | ------------------------------------------------------------- | | **Items** | Multiple curated products (e.g., 2 full-size + 1 sample item) | | **Delivery** | Monthly shipment | | **Frequency** | All items ship together monthly | | **Example** | Beauty box with 3 items arriving together each month | ### Mixed-Frequency Grocery Subscription The most powerful example: a single subscription with items delivered at different frequencies, all intelligently synchronized. **Subscription Contents:** | Item | Quantity | Delivery Frequency | | ---------- | --------- | ------------------ | | Fresh Milk | 2 bottles | Every week | | Eggs | 1 dozen | Every 2 weeks | | Coffee | 1 bag | Every month | **How it Works:** The system automatically orchestrates these different schedules. Some weeks the customer receives just milk. Other weeks, milk arrives with eggs. Once a month, all three items come together. The customer never has to think about it and the system coordinates everything automatically. **Timeline Example:** * **Week 1:** Milk arrives (charged) + Coffee arrives (charged) * **Week 2:** Milk arrives (charged) + Eggs arrive (charged) * **Week 3:** Milk arrives (charged) * **Week 4:** Milk arrives (charged) + Eggs arrive (charged) * **Week 5:** Milk arrives (charged) + Coffee arrives (charged) * *(pattern repeats)* This is where Journey's intelligence shines, managing complex recurring orders that would otherwise frustrate customers or require manual coordination. ## Related Concepts Learn about deliveries of physical products are handled Understand payment processing and billing cycles