LogoLogo
  • User Guide
    • Getting Started
      • Building a Usage-Based Product in Revenium
      • Setting Up & Using API Analytics & Observability
      • Setting Up & Using Product Analytics
      • Sending Data to Revenium's Metering API
      • Key Concepts & Relationships
    • Connect Your Data
      • cURL Commands for Testing
      • Container-Native Metering
      • Kong
        • Kubernetes Installation
      • Salesforce
        • Revenium Unmanaged Package
          • Anypoint API Experience Hub (AEH)
            • Anypoint API Experience Hub Unmanaged Package Post Installation Instructions
          • Anypoint Community Manager (ACM)
            • Anypoint Community Manager Package Post Installation Instructions
        • Revenium Lightning Web Components
          • Add Components to Experience Cloud site
          • Drop-In Storefront
          • Product Card
          • Product Card (Anypoint)
          • Product Checkout
          • Product Details Button
          • Usage History
          • API Access Requester
      • MuleSoft
        • Metering Policy Configuration
        • Offline Metering Policy Configuration
        • Anypoint API & API Group Synchronization
        • Revenium Connector
        • Disable Default Anypoint Community Manager (ACM) Email Notifications
      • Gravitee
      • Istio
      • Envoy
      • AWS API Gateway
      • Python & Django
      • Golang
      • Spring Boot
      • .Net
      • NodeJs
      • Java/JVM
      • Snowflake
      • Azure API Management
      • IBM
      • Custom Integrations Using Metering Beacons
        • JWT Enrichment
      • Offline Metering via Log Parsing
    • Sources
      • Metering Elements
      • Alerts
        • Alert History
    • API Keys
    • Products & Pricing
      • Product Lines
      • Pricing Rules
        • Revenium Scripting Language
          • RSL Reference
        • Execution Logs
      • SLA Definitions
      • SLA Violation Review
    • Customers
      • Customers
      • Subscribers
      • Subscriptions
      • Subscribers Credentials
      • Subscribers Notifications
    • Billing and Invoicing
      • Manage Refunds
    • Analytics
      • Revenue Analytics
      • Product Analytics
        • Custom Reports (Products)
      • Subscriber Analytics
        • New Subscribers
        • (Daily/Weekly/Monthly) Active Subscribers
        • Most Engaged Subscribers & Customers
        • Historical Usage
      • API Analytics
        • Performance & Availability
        • Compare Periods
        • Traffic by Geography
        • Advanced Search
        • Custom Reports
    • Profile
      • Profile
      • Revenium API Documentation
    • Settings
      • Revenium Users & Organizations
        • Access Permissions by User Type
      • Revenium Subscription
      • Revenium Organizations
      • Notification Templates
      • Transactions Logs
        • Analytics Transaction Log
        • Product Transaction Log
        • Subscription Audit Log
        • No Code Transaction Testing
      • Integrations
        • Data Sync
        • Export Configurations
        • Notification Providers
        • Payment Configurations
          • Customer VAT ID Support
        • ERP Configurations
        • External Integration Logs
        • Identity Providers
      • System Logs
      • Default Configuration Limits
Powered by GitBook

© Revenium - www.revenium.io

On this page
  • Video Overview
  • Revenium Objects
  • Relationships Between Objects
  • Example Scenario
  1. User Guide
  2. Getting Started

Key Concepts & Relationships

This section provides a summary of the key objects used within Revenium and the relationships between one another.

Last updated 7 months ago

Video Overview

If you prefer watching to reading, check out this 3 minute video that explains the key objects in your Revenium configuration as well as how they relate to one another. The text explanation follows below.

Revenium Objects


Subscriber credentials are an optional configuration. If our metering engine receives a metering event that includes a subscription ID without a credential defined, one will be created automatically.

Relationships Between Objects

  • Products can be associated with more than one source.

    • Products are typically associated with numerous Subscriptions (one per subscriber who has purchased access to the Product)

  • Subscriptions can optionally be associated with multiple Credentials. Using this approach, if a single subscriber requires multiple tokens to use your product, they all can be associated with a single subscription, while still reporting usage separately by credential. (imagine a B2B scenario where a company purchases access to a service for its employees, but still wants to be able to report on individual usage to map costs back to an appropriate user or department)

  • Subscriber - Every subscription and credential can have only one subscriber as an owner.

Example Scenario

A healthcare company ("Pharma House") is publishing a product for prescription drug research. Their product is "Platinum Unlimited" and includes access to 5 data sources that perform different functions required to conduct research. These sources need to be accessed by 2 Subscribers. Subscriber 1 has 5 different gateway-provided applications accessing the product, and Subscriber 2 has only a single application. The setup in Revenium would appear as follows:

Corresponding Configuration in Revenium

  • Subscribers: One subscriber is created for each end user. These subscribers are identified by their email addresses.

    • These unique identifiers would then be configured in the gateway policy or connected application (i.e. python or .NET) to correlate the source traffic to the record in Revenium (note: options exist to automate this synchronization, but are beyond the scope of this simple tutorial).

  • Product: A single product ("Platinum Unlimited") would be built in Revenium and the 5 sources that make up this product bundle would be added to its configuration.

  • Subscriptions: Two subscriptions are required, one for each Subscriber who subscribed to the "Platinum Unlimited" Product.

  • Credentials: Pharma House's customers need to report usage separately for several different use-cases internally. Therefore, we create a Subscriber Credential that links each authentication token from the data sources to a Revenium subscription.

    • Customer 1: Pharma House creates five Subscriber Credentials (one for each auth token) and associates Subscribers 1's subscription to all five Credentials.

    • Customer 2: Pharma House creates a single Subscriber Credential for Subscriber 2 and associates their auth token with that Credential and Subscription.

Using this configuration, each Subscriber can access the "Platinum Unlimited" product with no change to how they are accessing the data sources (APIs or otherwise), and Revenium will meter and rate each subscription accordingly.

- These are systems (data sources) that you connect to Revenium to send usage events for metering & billing. Any source connected to Revenium can be added to Products to create usage-based pricing, and API sources connected to Revenium will automatically generate .

- Products incorporate usage events from one or more Sources and are sold to customers. Products can have associated subscription terms and fees, overage rates, quotas, SLAs, and more added to their configuration.

- Subscriptions are issued to Subscribers to allow them to access products. Subscriptions also allow Revenium to track usage by each customer individually.

- Subscribers are the owners of subscriptions (i.e. an individual person with an email address).

- The use of these credentials allows distinct reporting for several Subscribers who may be generating usage under a single Subscription (common in the API world where multiple API keys/tokens may be created for different applications to access a product). When credentials are automatically created in Revenium, a unique ID for each credential is associated with a Subscription. The unique ID in a credential is most commonly an API key or the JWT/OAuth client id granted by an IDP or API gateway, but can be any unique identifier created by your application to identify the consumer of your products.

Sources: Five sources would be created and connected using or our . As a part of source creation in Revenium, unique identifiers for each would be created by Revenium.

Sources
advanced analytics
Products
Subscriptions
Subscribers
Subscriber Credentials
Revenium's connectors
metering API
Relationships between gateway & Revenium components: assets, products, and applications.