Usage Lines

Overview

Usage Lines represent usage for a subscription and usage product for a single billing period.

Endpoints

Save Usage Lines

Get Usage Lines

Note that billingPeriod is a year-month, taking the format yyyy-MM.

Our API also offers an optional feature that enables Vendors to store a unique identifier on a subscription during provisioning. The externalProvisionerSubscriptionId serves as a reference point for future interactions with the object, making it easy to locate and modify without complex mappings.

The Usage Line Object

{
    "summaryKey": "key",
    "summaryDisplayName": "name",
    "quantity": 1,
    "productId": "c53df278-d591-427d-8039-1dc5f4dec15e",
    "unitOfMeasurement": "unit"
}

Additional Information

Pax8 Partners may have many usage lines for a subscription, and those lines could be for many different companies, so we offer a grouping mechanism called summaryKey to aggregate usage lines into summaries.
The most common grouping pattern - and the pattern recommended by Pax8 - is to group usage lines by company.

  • Usage Lines are grouped by a summaryKey for a Subscription. Every usage line that shares an identical summaryKey will grouped together for display purposes.
    • The key must be a unique identifier, most often a company id.
  • The summaryDisplayName is used in the Pax8 UI, this is the label that partners will see on their invoices and throughout the month when monitoring their usage. It gives a friendly name to the group defined by a summaryKey.
    • If you are grouping usage by Company ID, then Company name is a good candidate for summaryDisplayName

NOTE: both summaryKey and summaryDisplayName have a 255 character limit.