Usage & Metering
Use the API to record metered usage for usage-based billing.
For metered billing:
- Create a meter.
- Attach that meter to a recurring price with
billable_metric_id. - Create the subscription through an order.
- Send usage events to
POST /api/usage/ingest.
Always send external_id with each event. It is the idempotency key used to
avoid double-counting retries.
API pages used
Implementation notes
- Use
external_customer_idwhen the emitting service does not know the GetPaidHQ customer id. - Use
subscription_idwhen you need direct subscription attribution. - Omit
subscription_idonly when the customer's earliest active metered subscription should receive unattributed usage. - Use async ingestion only when NATS JetStream is deployed.
For the system behavior, see Usage & Metering.