Amigo Billing API

The Billing API from Amigo — 17 operation(s) for billing.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Subscription Billing & Revenue Management BC-4250

Operations 20

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/{workspace_id}/billing/dashboard Open the workspace billing dashboard · Get Billing Dashboard #
Ask an LLM
“What KPIs and period comparisons does the workspace billing dashboard show?”
“Can I see top meters and invoice summary for my workspace in one place?”
Tell an agent
Open the billing dashboard for workspace {workspace_id}.
Show the KPIs, period comparison and top meters on {workspace_id}'s billing dashboard.
GET /v1/{workspace_id}/billing/usage Get aggregated usage for a workspace · Get Workspace Usage #
Ask an LLM
“How much has each meter cost me this billing period?”
“Can I see a grouped usage summary for a workspace?”
Tell an agent
Get the aggregated usage summary for workspace {workspace_id}.
Show meter totals for {workspace_id} over the current period.
GET /v1/{workspace_id}/billing/invoices List a workspace's invoices · List Workspace Invoices #
Ask an LLM
“Which invoices has my workspace been charged on?”
“Can I filter a workspace's invoices by status or date range?”
Tell an agent
List invoices for workspace {workspace_id}.
Show {status} invoices for {workspace_id} between {date_from} and {date_to}.
GET /v1/{workspace_id}/billing/invoices/{invoice_id} Get a workspace invoice · Get Workspace Invoice #
Ask an LLM
“What are the line items on a specific invoice for my workspace?”
“Can I fetch one workspace invoice by ID?”
Tell an agent
Get invoice {invoice_id} for workspace {workspace_id}.
Show the details of {invoice_id} on {workspace_id}.
GET /v1/{workspace_id}/billing/invoices/{invoice_id}/pdf Download a workspace invoice as PDF · Get Invoice Pdf #
Ask an LLM
“Where do I download the PDF of a workspace invoice?”
“Can I get a presigned URL to download an invoice as a PDF?”
Tell an agent
Get the PDF download link for invoice {invoice_id} on workspace {workspace_id}.
Download {invoice_id} for {workspace_id} as a PDF.
GET /v1/billing/customers List billing customers · List Customers #
Ask an LLM
“Who are the billing customers in my billing system?”
“Can I search customers by name or slug?”
Tell an agent
List all billing customers.
Find billing customers matching {search}.
POST /v1/billing/customers Create a billing customer · Create Customer #
Ask an LLM
“How do I create a new customer for billing?”
“Can I set a billing contact and address when creating a customer?”
Tell an agent
Create a billing customer named {name} with slug {slug} and email {billing_email}.
Add customer {name} ({slug}, {billing_email}) with contact {billing_contact}.
GET /v1/billing/customers/{customer_id} Get a billing customer's details · Get Customer #
Ask an LLM
“Which workspaces is a billing customer attached to?”
“Can I see the full details of one customer?”
Tell an agent
Get billing customer {customer_id}.
Show the workspaces mapped to customer {customer_id}.
PUT /v1/billing/customers/{customer_id} Update a billing customer · Update Customer #
Ask an LLM
“How do I change a customer's billing email?”
“Can I deactivate a customer by setting its status?”
Tell an agent
Set the billing email of customer {customer_id} to {billing_email}.
Deactivate customer {customer_id} by setting status {status}.
POST /v1/billing/customers/{customer_id}/workspaces Attach a workspace to a customer · Attach Workspace #
Ask an LLM
“How do I bill a workspace to a customer?”
“Can I attach a workspace to a customer only for a specific environment?”
Tell an agent
Attach workspace {workspace_id} to customer {customer_id}.
Bill {workspace_id} to {customer_id} in the {environment} environment.
DELETE /v1/billing/customers/{customer_id}/workspaces/{workspace_id} Detach a workspace from a customer · Detach Workspace #
Ask an LLM
“How do I stop billing a workspace to a customer?”
“Can I remove a workspace from a customer's bill?”
Tell an agent destructive · confirm first
Detach workspace {workspace_id} from customer {customer_id}.
Stop billing {workspace_id} to {customer_id}.
GET /v1/billing/customers/{customer_id}/config Get a customer's billing configuration · Get Config #
Ask an LLM
“What billing cycle and currency does a customer use?”
“Can I read a customer's price rules?”
Tell an agent
Get the billing configuration for customer {customer_id}.
Show {customer_id}'s billing cycle, currency and price rules.
PUT /v1/billing/customers/{customer_id}/config Update a customer's billing configuration · Update Config #
Ask an LLM
“How do I change a customer's billing cycle or currency?”
“Can I set a minimum charge on a customer?”
Tell an agent
Set the billing cycle of customer {customer_id} to {billing_cycle}.
Change {customer_id}'s currency to {currency} and price rules to {price_rules}.
GET /v1/billing/customers/{customer_id}/usage Get a customer's meter usage · Get Customer Usage #
Ask an LLM
“What has each meter cost a customer over a date range?”
“Can I filter a customer's usage by meter key?”
Tell an agent
Get usage for customer {customer_id} from {date_from} to {date_to}.
Show {meter_key} usage for {customer_id}.
GET /v1/billing/customers/{customer_id}/invoices List a customer's invoices · List Customer Invoices #
Ask an LLM
“Can I get an invoice for a customer's subscription?”
“Can I filter a customer's invoices by status and date?”
Tell an agent
List {status} invoices for customer {customer_id}.
Show invoices for customer {customer_id} between {date_from} and {date_to}.
POST /v1/billing/customers/{customer_id}/generate-invoice Generate a customer's next invoice · Generate Invoice #
Ask an LLM
“How do I generate the next invoice for a customer?”
“Does invoice generation read meter values and apply price rules?”
Tell an agent
Generate the next invoice for customer {customer_id}.
Run the invoice generation pipeline for {customer_id} on the most recently closed period.
POST /v1/billing/customers/{customer_id}/invoices/{invoice_id}/send Mark a customer invoice as sent · Send Invoice #
Ask an LLM
“How do I mark an invoice as sent to a customer?”
“Can I record that a customer's invoice was sent?”
Tell an agent
Mark invoice {invoice_id} as sent for customer {customer_id}.
Record {invoice_id} sent to {customer_id}.
POST /v1/billing/customers/{customer_id}/invoices/{invoice_id}/paid Mark a customer invoice as paid · Mark Paid #
Ask an LLM
“How do I record that a customer paid an invoice?”
“Can I mark an invoice as paid without voiding it?”
Tell an agent
Mark invoice {invoice_id} as paid for customer {customer_id}.
Record {invoice_id} paid by {customer_id}.
POST /v1/billing/customers/{customer_id}/invoices/{invoice_id}/void Void a customer invoice · Void Invoice #
Ask an LLM
“How do I void an invoice a customer was charged on?”
“Can I cancel an invoice for a customer?”
Tell an agent destructive · confirm first
Void invoice {invoice_id} for customer {customer_id}.
Cancel {invoice_id} on {customer_id}.

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/amigo:amigo-billing-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

amigo-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Platform Billing API
  description: Management API for the Amigo platform. Provides CRUD operations for workspaces, API keys, and resources.
  version: 1.0.0
servers:
- url: https://api.platform.amigo.ai
  description: Production
security:
- BearerAuth: []
tags:


# --- truncated at 32 KB (41 KB total) ---
# Full source: https://artifacts.apis.io/amigo/openapi/amigo-billing-api-openapi.yml