Skip to content

Examples

Pricing

Upfront license (aka perpetual)

Classic pricing for native software: customers pay upfront a non-expiring license.
Suppose license price is 10 USD, with a 10% discount if customers buy more than 30 licenses.
Pricing buckets would be setup as follows:

Currency Qty min Qty max Flat fee Subscription
USD 1 30 10 0
USD 31 9 0

Monthly license with API calls included

We assume
- a 1000 USD monthly subscription (no discount on volume)
- included 10K API calls to https://api.domain.com/news/financial/*
- then 8 cts per call from 10K to 100K - then 5 cts per call above 100K calls

First task is Subpricing endpoint creation:
Internal name: 1Kincl

Currency Qty min Qty max Fee/call
USD 1 10000 0
USD 10001 100000 0.08
USD 100001 0.05

Then we can proceed to Pricing plan definition:
Frequency: Monthly
With pricing bucket: Internal name: 1Kincl_monthly

Currency Qty min Qty max Flat fee Subscription
USD 1 1000

Root URL: https://api.domain.com
endpoint: /news/financial [1Kincl]

CO2 certificate allocation from API call

Imagine you have an API that allocates CO2 credits, but at a given time, request might not be 100% fullfilled.
For instance one customer make a call to buy 20 CO2 tons but you can allocate only 18 tons. The response would be:

{
    'co2_requested': 20,
    'co2_offset': 18
}

First, we define a Subpricing credits, here 1 credit (representing 1 ton CO2 offset) will cost 15.00 USD Internal name: co2_15USD

Currency Qty min Qty max Cost / credit
USD 1 15

Then we assign this subpricing to an identifier:
co2_offset [co2_15USD]