capabilities.work

Onboard Customer and Meter Usage

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

Recipe · 3 steps

Onboard Customer and Meter Usage

Create a customer, ingest usage for them, then read back their usage.

  1. Create the customer account that usage will be attributed to.
  2. Ingest a meter event attributed to the newly created customer.
  3. Query aggregated usage for the meter filtered to the new customer.
What you'll need to have ready
  • apiKey: Amberflo API key supplied in the X-API-KEY header.
  • customerId: Unique customer identifier from your system.
  • customerName: Customer display name.
  • customerEmail: Optional customer contact email.
  • meterApiName: The meter to ingest to and query.
  • meterValue: The usage amount for the ingested event.
  • meterTimeInMillis: Event timestamp in Unix milliseconds.
  • uniqueId: Optional idempotency identifier for the event.
  • startTimeInSeconds: Usage query start time in Unix seconds.
  • endTimeInSeconds: Usage query end time in Unix seconds.
For your developer

Arazzo workflow amberflo:onboard-customer-and-meter-usage, 3 operations: createCustomer → ingestMeterEvents → queryUsage. Specs on APIs.io.