Skip to main content

💰 Billing Processing

📖 Overview

The Billing module handles billing-specific operations including contact imports and new authentication setup.

Environment Flags:

  • QM_BILLING_NEW_AUTH=true - New billing authentication
  • QM_BILLING_CONTACTS=true - Billing contact import

Source Location: queue-manager/crons/billing/

🗄️ Collections Used

billing-customer

  • Operations: Create/Update
  • Model: shared/models/billing-customer.js
  • Usage: Customer billing information

billing-contact

  • Operations: Create/Update
  • Model: shared/models/billing-contact.js
  • Usage: Billing contact records

🔧 Jobs in This Module

New Authentication

Key Features:

  • Auth Setup: Sets up billing authentication
  • Payment Method: Links payment methods
  • Customer Creation: Creates Stripe customers
  • Token Management: Manages authentication tokens

Contact Import

Key Features:

  • Bulk Import: Imports billing contacts
  • Stripe Sync: Syncs with Stripe customers
  • Validation: Validates billing information
  • Deduplication: Prevents duplicate contacts

Module Status: Active
Execution Pattern: Polling + Event-driven
Last Updated: 2025-10-10

💬

Documentation Assistant

Ask me anything about the docs

Hi! I'm your documentation assistant. Ask me anything about the docs!

I can help you with:
- Code examples
- Configuration details
- Troubleshooting
- Best practices

Try asking: How do I configure the API?
09:31 AM