Documentation Index
Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
Use this file to discover all available pages before exploring further.
Configures pricing for a plan or addon, supporting various billing models.
Mutation
mutation SetPackagePricing($input: PackagePricingInput!) {
setPackagePricing(input: $input) {
packageId
prices {
billingModel
billingPeriod
billingCadence
price {
amount
currency
}
tiers {
upTo
unitPrice {
amount
currency
}
}
}
}
}
Parameters
input
PackagePricingInput
required
Input for setting package pricing
Plan or addon internal ID
Array of price configurations
FLAT_FEE, USAGE_BASED, TIERED, CREDIT_BASED
Price amount and currency
Feature ID for usage-based pricing
Units per block for metered pricing
Billing Models
| Model | Description |
|---|
FLAT_FEE | Fixed recurring price |
USAGE_BASED | Based on metered usage |
TIERED | Volume-based tiers |
CREDIT_BASED | Deduct from credit balance |
Examples
Flat Fee Pricing
{
"input": {
"packageId": "plan-uuid-123",
"pricingType": "PAID",
"prices": [
{
"billingModel": "FLAT_FEE",
"billingPeriod": "MONTHLY",
"price": { "amount": 99, "currency": "USD" }
}
]
}
}
Usage-Based Pricing
{
"input": {
"packageId": "plan-uuid-123",
"pricingType": "PAID",
"prices": [
{
"billingModel": "USAGE_BASED",
"billingPeriod": "MONTHLY",
"featureId": "feature-api-calls",
"price": { "amount": 0.01, "currency": "USD" }
}
]
}
}
Tiered Pricing
{
"input": {
"packageId": "plan-uuid-123",
"pricingType": "PAID",
"prices": [
{
"billingModel": "TIERED",
"billingPeriod": "MONTHLY",
"featureId": "feature-api-calls",
"tiers": [
{ "upTo": 1000, "unitPrice": { "amount": 0, "currency": "USD" } },
{ "upTo": 10000, "unitPrice": { "amount": 0.01, "currency": "USD" } },
{ "upTo": null, "unitPrice": { "amount": 0.005, "currency": "USD" } }
]
}
]
}
}