Skip to main content

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:

  1. Returns empty lists if service is not in "deny-overage" status
  2. Gets current tenant's free_usage for this service
  3. Finds packages/add-ons with this service where quantity > free_usage
  4. Sorts by price (ascending)

Request

Responses

Successful Response