Skip to main content
GET
/
api
/
v1
/
usage
/
quantity-price
Compute the price of a usage quantity for a feature
curl --request GET \
  --url https://{defaultHost}/api/v1/usage/quantity-price \
  --header 'x-api-key: <api-key>'
{
  "message": "Quantity price fetched",
  "data": {
    "customer_key": "cust-6d11ca90",
    "feature_key": "feature_interview_booking",
    "quantity": 500,
    "price": 3000,
    "unit": "USD"
  }
}

Authorizations

x-api-key
string
header
required

Query Parameters

customer_key
string
required

The customer key to compute the price for

feature_key
string
required

The feature key to compute the price for

quantity
number
required

The quantity you want to price

Required range: x >= 0

Response

Quantity price computed

message
string
Example:

"Quantity price fetched"

data
object