Logo

Overview

warning

This is a guide to synchroize metered usage data to Stripe for billing. If you are looking for a guide to set up OpenMeter Billing instead of Stripe Billing, please refer to the OpenMeter Billing guide.

With OpenMeter's native Stripe Billing integration, you can quickly synchronize metered usage to Stripe Billing. Our robust synchronization ensures that each metered usage record is accurately reflected in Stripe.

By automating the data transfer and synchronization process, we ensure that your billing is as precise as your metering.

Getting Started

Start billing from metered usage in three simple steps:

Step 1: Start Metering with OpenMeter Cloud

Start metering with OpenMeter Cloud and navigate to the Usage & Sync menu. Here, you can select Stripe as your sync destination.

Create Stripe Sync

Step 2: Connect Your Stripe Account

Connect your Stripe account with OpenMeter. Once linked, choose the specific meter that's data you wish to synchronize with Stripe. You can also pick the start date and backfill historical usage.

Step 3: Map Stripe Customer IDs

Use our Subject Dashboard or one of our SDKs to map OpenMeter subjects to Stripe Customers.

const subject = await openmeter.subject.upsert([
  {
    key: 'customer-1',
    displayName: 'ACME',
    stripeCustomerId: 'cus_xxx',
  },
]);
Map Stripe Customer IDs

Step 4: Enjoy Robust Synchronization

Congratulations! You've successfully set up synchronizing aggregated usage data to Stripe hourly. Our robust workflow engine ensures exactly-once delivery and provides the flexibility to backfill historical usage data.