capabilities.work

Launch Usage Based Product

A 4-step recipe with Amberflo. We can help you get access.

Recipe · 4 steps

Launch Usage Based Product

Define a meter, onboard a customer, assign a plan, and ingest first usage.

  1. Define the meter that will track the product's consumption.
  2. Create the customer that will be billed for metered usage.
  3. Assign the pricing plan product to the new customer.
  4. Ingest the first usage event against the meter for the customer.
What you'll need to have ready
  • apiKey: Amberflo API key supplied in the X-API-KEY header.
  • meterApiName: Unique API name for the meter that tracks consumption.
  • displayName: Human-readable display name for the meter.
  • type: Aggregation type (SUM_OF_ALL_USAGE, MAX_IN_PERIOD, UNIQUE_CUSTOMERS_COUNT).
  • customerId: Unique customer identifier from your system.
  • customerName: Customer display name.
  • customerEmail: Optional customer contact email.
  • productId: Product or pricing plan identifier to assign.
  • meterValue: The usage amount for the first ingested event.
  • meterTimeInMillis: Event timestamp in Unix milliseconds.
For your developer

Arazzo workflow amberflo:launch-usage-based-product, 4 operations: createMeterDefinition → createCustomer → assignPricingPlan → ingestMeterEvents. Specs on APIs.io.