Get Upsell Packages
GET/api/billing/products/upsell
Get package and add-on recommendations for upselling a service.
This endpoint returns packages and add-ons that contain the specified service with "deny-overage" status and have higher usage limits than the tenant's current free_usage.
Args: service: The service product slug (e.g., "emails", "sms_messaging", "leads")
Returns: UpsellResponse with two lists:
- packages: PACKAGE products with higher limits for this service
- addons: PACKAGE-ADDON products containing this service
Logic:
- Returns empty lists if service is not in "deny-overage" status
- Gets current tenant's free_usage for this service
- Finds packages/add-ons with this service where quantity > free_usage
- Sorts by price (ascending)
Request
Responses
- 200
- 422
Successful Response
Validation Error