Amberflo · Arazzo Workflow

Amberflo Meter Usage and Top Up Prepaid

Version 1.0.0

Ingest a usage event for a customer then fund a prepaid credit top-up.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Usage-Based BillingMeteringFinOpsAI Cost ManagementBillingMonetizationArazzoWorkflows

Provider

amberflo

Workflows

meter-usage-and-topup-prepaid
Record usage then replenish the customer's prepaid balance.
Ingests a meter event for the customer and then creates a prepaid credit order to top up their balance.
2 steps inputs: amount, apiKey, currency, customerId, expirationTime, meterApiName, meterTimeInMillis, meterValue, uniqueId outputs: ingestResult, orderId
1
ingestEvent
Ingest a meter event recording the customer's consumption.
2
topUpPrepaid
Create a prepaid credit order to replenish the customer's balance.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amberflo Meter Usage and Top Up Prepaid
  summary: Ingest a usage event for a customer then fund a prepaid credit top-up.
  description: >-
    Spans the Metering and Billing APIs to record consumption and replenish the
    customer's prepaid balance. It ingests a meter event for the customer and
    then creates a prepaid credit order so the customer can keep drawing usage.
    Every step spells out its request inline so the flow can be read and executed
    without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: eventIngestionApi
  url: ../openapi/amberflo-event-ingestion-api-openapi.yml
  type: openapi
- name: prepaidOrdersApi
  url: ../openapi/amberflo-prepaid-orders-api-openapi.yml
  type: openapi
workflows:
- workflowId: meter-usage-and-topup-prepaid
  summary: Record usage then replenish the customer's prepaid balance.
  description: >-
    Ingests a meter event for the customer and then creates a prepaid credit
    order to top up their balance.
  inputs:
    type: object
    required:
    - apiKey
    - meterApiName
    - customerId
    - meterValue
    - meterTimeInMillis
    - amount
    properties:
      apiKey:
        type: string
        description: Amberflo API key supplied in the X-API-KEY header.
      meterApiName:
        type: string
        description: The meter to ingest usage to.
      customerId:
        type: string
        description: Customer the usage and prepaid order apply to.
      meterValue:
        type: number
        description: The usage amount for the ingested event.
      meterTimeInMillis:
        type: integer
        description: Event timestamp in Unix milliseconds.
      uniqueId:
        type: string
        description: Optional idempotency identifier for the event.
      amount:
        type: number
        description: Prepaid credit amount to add.
      currency:
        type: string
        description: Currency code for the prepaid order (e.g. USD).
      expirationTime:
        type: integer
        description: Optional prepaid order expiration in Unix milliseconds.
  steps:
  - stepId: ingestEvent
    description: >-
      Ingest a meter event recording the customer's consumption.
    operationId: ingestMeterEvents
    parameters:
    - name: X-API-KEY
      in: header
      value: $inputs.apiKey
    requestBody:
      contentType: application/json
      payload:
        meterApiName: $inputs.meterApiName
        customerId: $inputs.customerId
        meterValue: $inputs.meterValue
        meterTimeInMillis: $inputs.meterTimeInMillis
        uniqueId: $inputs.uniqueId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      ingestResult: $response.body
  - stepId: topUpPrepaid
    description: >-
      Create a prepaid credit order to replenish the customer's balance.
    operationId: createPrepaidOrder
    parameters:
    - name: X-API-KEY
      in: header
      value: $inputs.apiKey
    requestBody:
      contentType: application/json
      payload:
        customerId: $inputs.customerId
        amount: $inputs.amount
        currency: $inputs.currency
        expirationTime: $inputs.expirationTime
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      orderId: $response.body#/orderId
  outputs:
    ingestResult: $steps.ingestEvent.outputs.ingestResult
    orderId: $steps.topUpPrepaid.outputs.orderId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/amberflo-meter-usage-and-topup-prepaid-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.