RecurringStack Subscription Usage API

The SubscriptionUsage API provides a complete set of services for recording, retrieving, and managing usage events for components attached to a subscription. These endpoints support both metered and prepaid billing models, allowing you to track consumption in real time or in aggregated batches depending on your system’s needs. With SubscriptionUsage, you can create new usage events, retrieve historical usage for reporting or analytics, and delete events when corrections are required. These capabilities make it easy to implement usage‑based billing, generate consumption‑driven invoices, and power charts, dashboards, and customer‑facing usage summaries. Key capabilities include: Create usage events for metered or prepaid components List usage events for auditing, reporting, or analytics Retrieve daily usage totals for charts and consumption insights Delete usage events to correct over‑reported or invalid usage Support high‑frequency usage systems through batching and aggregation This API set is designed to give you precise control over how usage is captured and billed, ensuring accurate consumption tracking across all subscription components.

GitHub OpenAPI

Operations 3

POST /subscriptionusage/create Create a new usage event for a component attached to a subscription #
GET /subscriptionusage/list Retrieve usage events for a subscription's component #
DELETE /subscriptionusage/delete Delete a usage event from a subscription’s component #

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/recurringstack-com:recurringstack-com-subscriptionusage-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

recurringstack-com-subscriptionusage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: RecurringStack Subscription Usage API
  description: RecurringStack is a subscription management and business automation platform that provides APIs for customers, products, subscriptions, invoices, payments, marketing automation, account portals, reporting, support operations, and workflow automation.
  version: 1.0.0
  contact:
    name: RecurringStack Support
    url: https://recurringstack.com/docs/api
    email: support@recurringstack.com
  license:
    name: Commercial
servers:
- url: https://api.recurringstack.com
  description: Production API
security:
- X-Api-Key: []
  X-User-Key: []
  X-Brand-Id: []
tags:
- name: SubscriptionUsage
  description: 'The SubscriptionUsage API provides a complete set of services for recording, retrieving,

    and managing usage events for components attached to a subscription. These endpoints

    support both metered and prepaid billing models, allowing you to track consumption in

    real time or in aggregated batches depending on your system’s needs.


    With SubscriptionUsage, you can create new usage events, retrieve historical usage for

    reporting or analytics, and delete events when corrections are required. These capabilities

    make it easy to implement usage‑based billing, generate consumption‑driven invoices, and

    power charts, dashboards, and customer‑facing usage summaries.


    Key capabilities include:


    Create usage events for metered or prepaid components


    List usage events for auditing, reporting, or analytics


    Retrieve daily usage totals for charts and consumption insights


    Delete usage events to correct over‑reported or invalid usage


    Support high‑frequency usage systems through batching and aggregation


    This API set is designed to give you precise control over how usage is captured and billed,

    ensuring accurate consumption tracking across all subscription components.'
paths:
  /subscriptionusage/create:
    post:
      operationId: CreateSubscriptionUsage
      tags:
      - SubscriptionUsage
      summary: Create a new usage event for a component attached to a subscription
      description: This service creates a new usage event for a component already attached to a subscription. You may report either metered or prepaid usage as needed. If your system generates usage events at very high frequency (hundreds per hour or more), it’s best to aggregate them on your side and report in periodic batches—such as daily—to avoid hitting API throttling limits.
      responses:
        '200':
          description: Successful operation
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                subscription_id:
                  type: string
                customer_account_id:
                  type: string
                component_id:
                  type: string
                units:
                  type: string
                expression_type:
                  type: string
              required:
              - subscription_id
              - customer_account_id
              - component_id
              - units
              - expression_type
  /subscriptionusage/list:
    get:
      operationId: ListSubscriptionUsage
      tags:
      - SubscriptionUsage
      summary: Retrieve usage events for a subscription's component
      description: This service returns all usage events recorded for a component attached to one or more subscriptions. You can use this endpoint to review historical metered usage, audit consumption patterns, or feed usage data into reporting and analytics systems. Results may include usage events from one or more subscriptions depending on your query parameters.
      responses:
        '200':
          description: Successful operation
      parameters:
      - name: usage_record_id
        in: query
        required: false
        description: Provide the 'usage_record_id' to search for a specifc previously recorded usage event.
        schema:
          type: string
      - name: subscription_id
        in: query
        required: false
        description: The 'subscription_id' of the subscription you wish to list events for.
        schema:
          type: string
      - name: customer_account_id
        in: query
        required: false
        description: The 'customer_account_id' connected to the subscription.
        schema:
          type: string
      - name: custom_field_1
        in: query
        required: false
        description: List events based on the custom field value provided during creation.
        schema:
          type: string
      - name: custom_field_2
        in: query
        required: false
        description: List events based on the custom field value provided during creation.
        schema:
          type: string
      - name: status
        in: query
        required: false
        description: Provide a status to return events of a specific status only (1 - active, 3 - deleted).
        schema:
          type: string
  /subscriptionusage/delete:
    delete:
      operationId: DeleteSubscriptionUsage
      tags:
      - SubscriptionUsage
      summary: Delete a usage event from a subscription’s component
      description: This service removes a previously created usage event from a subscription’s component. Deleting an event is useful when correcting over‑reported usage, reversing accidental submissions, or maintaining accurate metered/prepaid consumption totals. Only the specified usage event is removed; all other usage history remains intact.
      responses:
        '200':
          description: Successful operation
      parameters:
      - name: usage_record_id
        in: query
        required: false
        description: Provide the 'usage_record_id' of the specific usage record you wish to delete.
        schema:
          type: string
      - name: customer_account_id
        in: query
        required: false
        description: The 'customer_account_id' connected to the subscription.
        schema:
          type: string
      - name: subscription_id
        in: query
        required: false
        description: The 'subscription_id' of the subscription with the attached component.
        schema:
          type: string
components:
  securitySchemes:
    X-Api-Key:
      type: apiKey
      in: header
      name: X-Api-Key
    X-User-Key:
      type: apiKey
      in: header
      name: X-User-Key
    X-Brand-Id:
      type: apiKey
      in: header
      name: X-Brand-Id