Amberflo · Arazzo Workflow

Amberflo Get Customer Invoices

Version 1.0.0

Look up a customer by ID then list their invoices.

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

Provider

amberflo

Workflows

get-customer-invoices
Resolve a customer then list their invoices.
Fetches a customer by ID to confirm it exists, then lists the invoices for that customer.
2 steps inputs: apiKey, customerId outputs: customerId, invoices
1
getCustomer
Retrieve the customer by ID to confirm it exists before listing invoices.
2
listInvoices
List the invoices issued to the resolved customer.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amberflo Get Customer Invoices
  summary: Look up a customer by ID then list their invoices.
  description: >-
    A billing read flow that resolves a customer by their unique identifier and
    then retrieves the invoices issued to that customer. The lookup confirms the
    customer exists before invoices are fetched. 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: customersApi
  url: ../openapi/amberflo-customers-api-openapi.yml
  type: openapi
- name: invoicesApi
  url: ../openapi/amberflo-invoices-api-openapi.yml
  type: openapi
workflows:
- workflowId: get-customer-invoices
  summary: Resolve a customer then list their invoices.
  description: >-
    Fetches a customer by ID to confirm it exists, then lists the invoices for
    that customer.
  inputs:
    type: object
    required:
    - apiKey
    - customerId
    properties:
      apiKey:
        type: string
        description: Amberflo API key supplied in the X-API-KEY header.
      customerId:
        type: string
        description: Unique identifier of the customer to look up.
  steps:
  - stepId: getCustomer
    description: >-
      Retrieve the customer by ID to confirm it exists before listing invoices.
    operationId: getCustomerById
    parameters:
    - name: X-API-KEY
      in: header
      value: $inputs.apiKey
    - name: customerId
      in: path
      value: $inputs.customerId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      customerId: $response.body#/customerId
      lifecycleStage: $response.body#/lifecycleStage
  - stepId: listInvoices
    description: >-
      List the invoices issued to the resolved customer.
    operationId: listInvoices
    parameters:
    - name: X-API-KEY
      in: header
      value: $inputs.apiKey
    - name: customerId
      in: query
      value: $steps.getCustomer.outputs.customerId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      invoices: $response.body
      firstInvoiceId: $response.body#/0/invoiceId
  outputs:
    customerId: $steps.getCustomer.outputs.customerId
    invoices: $steps.listInvoices.outputs.invoices

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-get-customer-invoices-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.