Ordway · Schema

Usage

A usage record for metered/usage-based billing in Ordway

BillingRevenue AutomationSubscriptionInvoicingPaymentsRevenue RecognitionSaaS MetricsUsage-Based BillingFinancial ReportingAccounts Receivable

Properties

Name Type Description
company_id string Identifier for the Ordway company account
usage_id string Unique identifier for the usage record
subscription_line_id string ID of the subscription line item this usage applies to
customer_id stringnull ID of the customer
subscription_id stringnull ID of the subscription
charge_id stringnull ID of the usage-based charge
quantity numbernull Amount consumed
date stringnull Date and time when the usage occurred
unit_of_measure stringnull Unit of measurement for the quantity
description stringnull Description of the usage event
invoiced booleannull Whether this usage has been billed on an invoice
currency stringnull Currency for this usage record
custom_fields objectnull User-defined custom fields
created_by stringnull User or system that created the record
updated_by stringnull User or system that last updated the record
created_date stringnull Timestamp when the record was created
updated_date stringnull Timestamp when the record was last updated
View JSON Schema on GitHub

JSON Schema

usage.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ordway/main/json-schema/usage.json",
  "title": "Usage",
  "description": "A usage record for metered/usage-based billing in Ordway",
  "type": "object",
  "required": ["company_id", "usage_id", "subscription_line_id"],
  "properties": {
    "company_id": {
      "type": "string",
      "description": "Identifier for the Ordway company account"
    },
    "usage_id": {
      "type": "string",
      "description": "Unique identifier for the usage record"
    },
    "subscription_line_id": {
      "type": "string",
      "description": "ID of the subscription line item this usage applies to"
    },
    "customer_id": {
      "type": ["string", "null"],
      "description": "ID of the customer"
    },
    "subscription_id": {
      "type": ["string", "null"],
      "description": "ID of the subscription"
    },
    "charge_id": {
      "type": ["string", "null"],
      "description": "ID of the usage-based charge"
    },
    "quantity": {
      "type": ["number", "null"],
      "description": "Amount consumed"
    },
    "date": {
      "type": ["string", "null"],
      "format": "date-time",
      "description": "Date and time when the usage occurred"
    },
    "unit_of_measure": {
      "type": ["string", "null"],
      "description": "Unit of measurement for the quantity"
    },
    "description": {
      "type": ["string", "null"],
      "description": "Description of the usage event"
    },
    "invoiced": {
      "type": ["boolean", "null"],
      "description": "Whether this usage has been billed on an invoice"
    },
    "currency": {
      "type": ["string", "null"],
      "description": "Currency for this usage record"
    },
    "custom_fields": {
      "type": ["object", "null"],
      "additionalProperties": true,
      "description": "User-defined custom fields"
    },
    "created_by": {
      "type": ["string", "null"],
      "description": "User or system that created the record"
    },
    "updated_by": {
      "type": ["string", "null"],
      "description": "User or system that last updated the record"
    },
    "created_date": {
      "type": ["string", "null"],
      "format": "date-time",
      "description": "Timestamp when the record was created"
    },
    "updated_date": {
      "type": ["string", "null"],
      "format": "date-time",
      "description": "Timestamp when the record was last updated"
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/usage"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.