Skip to main content
After transmitting events to Flexprice, it’s crucial to verify that they’re being processed correctly. This guide shows you how to check event ingestion, debug issues, and ensure your billing calculations are accurate.

Prerequisites

  • Events have been transmitted to Flexprice
  • Access to the Flexprice Admin Dashboard
  • Knowledge of your feature configuration

Checking Event Ingestion

1. Navigate to the Events Debugger

  1. Log into your Flexprice dashboard
  2. In the left sidebar, click Developers
  3. Click Events debugger
You’ll see a list of all ingested events with key information:
  • Timestamp: When the event occurred
  • Event: The event name
  • Customer ID: The external_customer_id the event was sent for
  • Properties: The properties sent with the event
  • Source: Origin of the event (if provided)
  • Event ID: Unique identifier for each event
Type your event name in Search by event name to see only those events.
Events debugger searched for the api_call event name

2. View Event Details

Click any event in the list to open its details:
Event details panel with the processing checks for an api_call event
The panel shows what Flexprice received:
  • The event ID, source, and idempotency key
  • The customer ID and the Flexprice customer it matched
  • All properties transmitted with the event
What happened to this event shows whether the event was ingested, matched a customer and a meter, found a price on a live contract, and was counted towards usage. If the event wasn’t counted, the first failed check shows why. Important: Verify that the properties contain the feature’s event field with the expected value.

Using the Event Debugger

The Event Debugger provides real-time insights into event processing:
  1. Go to Developers → Events debugger
  2. Click an event to see:
    • Whether it was ingested, matched to a customer and a meter, and counted
    • The first failed check, if any
    • When it was ingested
This is especially useful for debugging issues with event ingestion.

Validating Aggregation

Check Feature Configuration

  1. Go to Product catalog → Features
  2. Open your metered feature
  3. Verify the configuration:
    • Event name matches what you’re transmitting
    • Aggregation is set correctly
    • Event field exists in your event properties

Verify Event Properties

In the Events dashboard, check that:
  1. Event Name matches your feature exactly
  2. Properties contain the event field
  3. Property values are the correct data type
Example: If your feature aggregates credits, ensure every event has:

Common Validation Issues

1. Events Not Appearing

Possible Causes:
  • Invalid Event Name
  • Missing required fields
  • Customer doesn’t exist
  • API key issues
Solutions:
  • Check Event Name spelling and case
  • Verify all required fields are present
  • Ensure customer exists in Flexprice
  • Validate API key permissions

2. Wrong Aggregation Values

Possible Causes:
  • Event field name mismatch
  • Incorrect data types
  • Missing properties
Solutions:
  • Verify field name matches exactly (case-sensitive)
  • Use numbers for Sum/Max, strings for Unique Count
  • Ensure every event includes the required property

3. Events Appearing but No Billing

Possible Causes:
  • Feature not added to a plan
  • Customer not subscribed to the plan
  • Usage reset configuration
Solutions:
  • Add feature to a pricing plan
  • Subscribe customer to the plan
  • Check Usage Reset setting (Periodic vs Cumulative)

Testing Your Setup

Step-by-Step Validation

  1. Transmit a Test Event
  2. Check Event Ingestion
    • Go to Events dashboard
    • Locate your test event
    • Verify the payload is correct
  3. Verify Aggregation
    • Check that the event appears in the correct billing period
    • Verify the aggregation value is as expected
  4. Test Billing Impact
    • Ensure feature is in a plan
    • Subscribe customer to the plan
    • Check upcoming invoices

Debugging Checklist

Use this checklist to systematically debug event ingestion issues:

✅ Event Configuration

  • Feature exists and is active
  • Event Name matches exactly
  • Aggregation is correct
  • Event field is set (if required)

✅ Event Payload

  • All required fields present
  • Event Name matches feature
  • External Customer ID exists
  • Properties contain the event field
  • Property values are correct data type

✅ Customer Setup

  • Customer exists in Flexprice
  • External Customer ID matches
  • Customer has active subscription
  • Subscription includes the feature

✅ Billing Configuration

  • Feature is added to a plan
  • Plan has pricing for the feature
  • Customer is subscribed to the plan
  • Usage Reset setting is correct

Advanced Validation

Query Events by Customer

You can filter events by customer to see all usage for a specific account:
  1. In the Events dashboard, use the filter options
  2. Filter by External Customer ID
  3. Review all events for that customer

Check Aggregated Usage

  1. Go to Customers and open the customer
  2. Open the Analytics tab
  3. Pick the feature (or keep All features) and the date range
  4. View the aggregated usage for each feature, and the Usage breakdown table
This displays the usage Flexprice aggregated from the customer’s events, with the revenue and cost for each feature.
Customer Analytics tab with usage per feature, a usage chart, and the usage breakdown

Validate Billing Periods

For Periodic usage reset:
  • Usage should reset at the start of each billing cycle
  • Check that usage accumulates correctly within the period
For Cumulative usage reset:
  • Usage should keep growing across billing cycles
  • Verify no unexpected resets

Troubleshooting Common Scenarios

Scenario 1: Events Transmitted but Not Counted

Symptoms: Events appear in dashboard but don’t affect billing Check:
  1. Feature configuration (event name, event field)
  2. Event properties (correct field name and data type)
  3. Customer subscription status
  4. Plan configuration

Scenario 2: Wrong Aggregation Values

Symptoms: Billing shows incorrect quantities Check:
  1. Event field name matches exactly
  2. Property values are correct data type
  3. No duplicate or conflicting events
  4. Usage Reset configuration

Scenario 3: Events Missing from Dashboard

Symptoms: Events not visible in Events list Check:
  1. API response status (should be 202 Accepted)
  2. Event Name validity
  3. Customer existence
  4. API key permissions

Scenario 4: Unexpected Usage Resets

Symptoms: Usage resets when it shouldn’t Check:
  1. Usage Reset setting (Periodic vs Cumulative)
  2. Billing cycle configuration
  3. Subscription changes
  4. Feature configuration changes

Best Practices for Validation

1. Test Before Production

Always test your event ingestion setup with a small number of events before going live.

2. Monitor Regularly

Check the Events dashboard regularly to ensure events are being processed correctly.

3. Use Consistent Identifiers

Use consistent Event Names and External Customer IDs across your system.

4. Include Debugging Information

Add useful properties to your events for debugging:

5. Set Up Alerts

Consider setting up alerts for:
  • Failed event ingestion
  • Unusual usage patterns
  • Missing events

Next Steps

After validating your events: Connect to Billing - Set up pricing and subscriptions

Getting Help

If you’re still experiencing issues after following this validation guide:
  1. Check the Event Debugger for detailed error messages
  2. Review your feature configuration carefully
  3. Test with a simple event payload
  4. Contact support with specific error messages and event examples