{
  "title": "Usage-based invoice generator for agent services",
  "about": "Builds a signed invoice from metered usage lines (metric, quantity, free units, unit price) in exact decimals, with tax and totals rounded for the currency (USD, USDC to 6 places).",
  "method": "POST",
  "url": "https://www.rightshold.com/v1/invoices/usage",
  "example_body": {
    "invoice_number": "INV-1",
    "seller": "seller-agent",
    "buyer": "buyer-agent",
    "period": "2026-10",
    "currency": "USD",
    "lines": [
      {
        "metric": "api_calls",
        "quantity": "12000",
        "free_units": "1000",
        "unit_price": "0.0005"
      }
    ]
  },
  "spec": "rs-a2a-net/0.1",
  "price": "free",
  "toolkit": "https://www.rightshold.com/a2a-toolkit"
}