Get Pricing Tiers for Tenant
Get all pricing tiers associated with a specific tenant
.
caution
This endpoint has been deprecated and will be phased out at the end of 2023. Please update any existing usages of it to use the Query endpoint instead.
Endpoint
GET /v1/tenants/:tenantId/pricing-tiers
Request
- cURL
- Go
- Java
- Node.js
- Python
- Ruby
- PHP
curl "https://api.warrant.dev/v1/tenants/15ksdf87a23g/pricing-tiers" \
-H "Authorization: ApiKey YOUR_KEY"
tenantPricingTiers, err := pricingtier.ListPricingTiersForTenant("15ksdf87a23g", &warrant.ListPricingTierParams{
ListParams: warrant.ListParams{
Limit: 10,
},
})
ListResult<PricingTier> pricingTiers = client.listPricingTiersForTenant("15ksdf87a23g", new ListParams().withLimit(10));
// Class method
const pricingTiers = await warrantClient.PricingTier.listPricingTiersForTenant(
"15ksdf87a23g",
{ limit: 10 }
);
// Instance method
const tenant = await warrantClient.Tenant.get("15ksdf87a23g");
const pricingTiers = await tenant.listPricingTiers({ limit: 10 });
# Class method
pricing_tiers = warrant.PricingTier.list_for_tenant("15ksdf87a23g", {"limit": 10})
# Instance method
tenant = warrant.Tenant.get("15ksdf87a23g")
pricing_tiers = tenant.list_pricing_tiers({"limit": 10})
# Class method
pricing_tiers = Warrant::PricingTier.list_for_tenant("15ksdf87a23g", { limit: 10 })
# Instance method
tenant = Warrant::Tenant.get("15ksdf87a23g")
tenant.list_pricing_tiers({ limit: 10 })
Response
[
{
"pricingTierId": "growth-tier"
},
{
"pricingTierId": "free-tier"
}
]