> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.resemble.ai/api-reference/billing-plans/get-billing-plan/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.resemble.ai/_mcp/server. # Get a billing plan GET https://app.resemble.ai/billing/api/v1/plans/{id} Returns an active billing plan by slug, including its products, prices, and quantity rules. This endpoint is public. Reference: https://docs.resemble.ai/api-reference/billing-plans/get-billing-plan ## Request ### Path parameters - `id` (string, required) — Plan slug returned by the list-plans endpoint. ## Response ### 200 Billing plan details. - `plan` (BillingPlan, required) ## Errors ### 404 Not Found Error The requested billing resource does not exist for the current team. - `error` (string, required) — Human-readable error message. ### 500 Internal Server Error An unexpected billing error occurred. - `error` (string, required) — Human-readable error message. ## Types ### BillingPlan - `id` (long, optional) - `name` (string, optional) - `slug` (string, optional) — Stable plan identifier used when creating or changing a subscription. - `plan_type` (enum, optional) - Allowed values: `self_serve`, `custom`, `default` - `base_fee_cents` (integer, optional) - `base_fee_dollars` (double, optional) - `total_base_cost_cents` (integer, optional) - `total_base_cost_dollars` (double, optional) - `included_dollar_balance_cents` (integer, optional) - `included_dollar_balance_dollars` (double, optional) - `billing_interval` (enum, optional) - Allowed values: `monthly`, `quarterly`, `annual` - `plan_family` (BillingPlanFamily, optional, nullable) - `active` (boolean, optional) - `products` (list of BillingPlanProduct, optional) - `created_at` (datetime, optional) - `updated_at` (datetime, optional) ### BillingPlanFamily - `key` (string, optional) - `name` (string, optional) - `description` (string, optional, nullable) - `position` (integer, optional, nullable) ### BillingPlanProduct A product and its pricing and quantity rules on a plan. - `id` (long, optional) - `name` (string, optional) - `slug` (string, optional) — Stable product identifier used in product_quantities and changes requests. - `description` (string, optional, nullable) - `unit_type` (string, optional) - `category` (enum, optional) - Allowed values: `metered`, `subscription`, `base_fee`, `included_credits` - `rate_per_unit_cents` (integer, optional) - `rate_per_unit_dollars` (double, optional) - `has_tiers` (boolean, optional) - `tiers` (list of BillingProductRateTier, optional) - `included_quantity` (double, optional, nullable) - `allow_additional_usage` (boolean, optional) — Whether the plan permits the product quantity to be changed. - `min_usage_per_period` (double, optional, nullable) — Minimum allowed quantity for this product on the plan. - `max_usage_per_period` (double, optional, nullable) — Maximum allowed quantity for this product on the plan. Null means no plan-specific maximum. - `ui_visible` (boolean, optional) — Whether the product is displayed in Resemble billing interfaces. - `product_family` (BillingProductFamily, optional, nullable) ### BillingProductRateTier - `tier_order` (integer, optional) - `min_quantity` (double, optional) - `max_quantity` (double, optional, nullable) - `rate_per_unit_cents` (integer, optional) - `rate_per_unit_dollars` (double, optional) ### BillingProductFamily - `key` (string, optional) - `name` (string, optional) - `description` (string, optional, nullable) - `position` (integer, optional, nullable) ## Examples **Response** ```json { "plan": { "id": 1, "name": "string", "slug": "string", "plan_type": "self_serve", "base_fee_cents": 1, "base_fee_dollars": 1.1, "total_base_cost_cents": 1, "total_base_cost_dollars": 1.1, "included_dollar_balance_cents": 1, "included_dollar_balance_dollars": 1.1, "billing_interval": "monthly", "plan_family": { "key": "string", "name": "string", "description": "string", "position": 1 }, "active": true, "products": [ { "id": 1, "name": "string", "slug": "string", "description": "string", "unit_type": "string", "category": "metered", "rate_per_unit_cents": 1, "rate_per_unit_dollars": 1.1, "has_tiers": true, "tiers": [ { "tier_order": 1, "min_quantity": 1.1, "max_quantity": 1.1, "rate_per_unit_cents": 1, "rate_per_unit_dollars": 1.1 } ], "included_quantity": 1.1, "allow_additional_usage": true, "min_usage_per_period": 1.1, "max_usage_per_period": 1.1, "ui_visible": true, "product_family": { "key": "string", "name": "string", "description": "string", "position": 1 } } ], "created_at": "2024-01-15T09:30:00Z", "updated_at": "2024-01-15T09:30:00Z" } } ``` **SDK Code** ```python import requests url = "https://app.resemble.ai/billing/api/v1/plans/flex" response = requests.get(url) print(response.json()) ``` ```javascript const url = 'https://app.resemble.ai/billing/api/v1/plans/flex'; const options = {method: 'GET'}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://app.resemble.ai/billing/api/v1/plans/flex" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://app.resemble.ai/billing/api/v1/plans/flex") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://app.resemble.ai/billing/api/v1/plans/flex") .asString(); ``` ```php request('GET', 'https://app.resemble.ai/billing/api/v1/plans/flex'); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://app.resemble.ai/billing/api/v1/plans/flex"); var request = new RestRequest(Method.GET); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let request = NSMutableURLRequest(url: NSURL(string: "https://app.resemble.ai/billing/api/v1/plans/flex")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```