Get Pricing Tiers for User
Get all pricing tiers associated with a specific user
.
GET /v1/users/:userId/pricing-tiers
Request
- Curl
- Go
- Java
- Node.js
- Python
- Ruby
- PHP
curl "https://api.warrant.dev/v1/users/s897lashdf454d/pricing-tiers" \
-H "Authorization: ApiKey YOUR_KEY"
userPricingTiers, err := pricingtier.ListPricingTiersForUser("s897lashdf454d", &warrant.ListPricingTierParams{})
int limit = 10;
int page = 1;
PricingTier[] pricingTiers = client.listPricingTiersForUser("s897lashdf454d", limit, page);
// Class method
const pricingTiers = await warrantClient.PricingTier.listPricingTiersForUser(
"s897lashdf454d",
{ limit: 10, page: 1 }
);
// Instance method
const user = await warrantClient.User.get("s897lashdf454d");
const pricingTiers = await user.listPricingTiers({ limit: 10, page: 1 });
# Class method
pricing_tiers = warrant.PricingTier.list_for_user("s897lashdf454d")
# Instance method
user = warrant.User.get("s897lashdf454d")
pricing_tiers = user.list_pricing_tiers()
# Class method
pricing_tiers = Warrant::PricingTier.list_for_user("s897lashdf454d")
# Instance method
user = Warrant::User.get("s897lashdf454d")
user.list_pricing_tiers
Response
[
{
"pricingTierId": "growth-tier"
},
{
"pricingTierId": "free-tier"
}
]