Skip to main content
Billing exports send each customer’s attributed cloud spend to your billing platform every night. Use virtual tags to assign charges to customers, then bind the tag key to a meter. Your billing platform applies the price and issues invoices.

How the export works

A customer identifier connects the cost data in CostGraph to the billing record in your platform. The following example follows a Stripe customer through that path.
Cloud charges pass through customer attribution and a nightly meter export before Stripe prices and invoices them.
Billing exports invoice your customers. Your subscription to CostGraph is managed separately in Your CostGraph bill.

Choose a platform

Use the identifier your platform expects as the tag value. Each guide explains credentials, meter setup, and that platform’s billing behavior.

Autumn

Customer ID linked to a meter.

Chargebee

Subscription ID linked to a metered item price.

Lago

External subscription ID linked to a billable metric.

Metronome

Customer ID linked to an event type.

OpenMeter

Subject linked to a meter.

Orb

External customer ID linked to an event name.

Stripe

Customer ID linked to a meter.

Set up an export

Start with imported cost data, a customer identifier from your billing platform, and a meter that prices the reported unit correctly.
CostGraph reports spend in integer cents. Price the meter per cent, or divide the reported value by 100 in the billing platform. Pricing cents as dollars bills 100 times too much.
1

Connect your billing platform

Follow its guide in Choose a platform to connect the account and prepare a meter.
2

Tag spend by customer

Create a virtual tag key with your platform’s prefix, such as stripe_customer. Only prefixed keys can bind to a meter.Match the customer’s resources and set the tag value to their identifier in the billing platform. For example, match account 123456789012 and assign that account’s actual Stripe customer ID. Do not use a display name.Follow Create virtual tags to build and preview the rule.
3

Check attribution and bind the meter

Group your cost view by the tag key. Confirm the customer identifiers, matched charges, and currency. CostGraph does not export spend that the tag leaves unmatched.Bind the checked key to the platform’s meter using its integration settings.
4

Verify the first export

After the nightly run, check the reported customer, usage date, amount, and unit in your billing platform. Compare them with the same customer and date in CostGraph. Repeat this check after changing attribution rules.

Protected days

A bound tag key drives invoices, so CostGraph protects settled days. You cannot reorder its rules. A new or changed rule must start outside the settled period. To retire an existing rule, set an end date outside that period.

Nightly runs

CostGraph holds each day for two days before reporting it, then reconciles the last 35 days. If a provider changes an amount already reported, CostGraph sends a correction. An unchanged day sends nothing. CostGraph holds a day when its spend mixes currencies or a quantity meter receives an unexpected unit. It records the reason. Deactivating a meter stops reporting and retains its history. Reactivating it resumes from the recorded state.

Platform differences

Check how your platform handles unknown identifiers and corrections before changing attribution rules.
Autumn creates an unknown customer. OpenMeter creates an unknown subject. A mistyped value can therefore create a separate billing identity.Metronome accepts an unknown identifier but does not bill anyone. Chargebee, Lago, Orb, and Stripe reject unknown identifiers. Check tag values against the platform before binding a meter.
Chargebee replaces the day’s record. The other supported platforms receive the difference between the previous and revised totals.Each report includes fields that help reconcile a charge.