> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.modernfi.com/api-reference/pricing-groups/list/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.modernfi.com/_mcp/server. # List Pricing Groups GET https://api.modernfi.com/digital-banking/v1/pricing-groups List all pricing groups for the institution, including account counts and current rate tiers. Reference: https://docs.modernfi.com/api-reference/pricing-groups/list ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Servers - `https://api.modernfi.com` (Production, default) - `https://api.uat.modernfi.com` (UAT) - `http://localhost:8000` (Local) ## Response ### 200 Successful Response - `list of PricingGroupResponse` ## Errors ### 400 Bad Request Error Bad Request - Invalid input or validation error - `detail` (list of map from string to any, required) ### 401 Unauthorized Error Unauthenticated - Invalid or missing authentication credentials - `detail` (string, required) ### 403 Forbidden Error Unauthorized - Insufficient permissions to access resource - `detail` (string, required) ### 422 Unprocessable Entity Error Validation Error - `detail` (list of ValidationError, optional) ### 500 Internal Server Error Internal Server Error - `detail` (string, required) ## Types ### PricingGroupResponse - `id` (string, required) - `institution_id` (string, required) - `name` (string, required) - `description` (string, required, nullable) - `account_count` (integer, required) — Number of accounts currently assigned to this pricing group - `interest_rate_tiers` (list of PricingGroupRateTierResponse, required) - `created_at` (string, required) - `updated_at` (string, required) - `accounts` (list of AccountData, required) — List of accounts assigned to this pricing group ### ValidationError - `loc` (list of ValidationErrorLocItems, required) - `msg` (string, required) - `type` (string, required) - `input` (any, optional) - `ctx` (ValidationErrorCtx, optional) ### PricingGroupRateTierResponse - `min_balance` (string, required) - `max_balance` (string, required) - `rate` (string, optional, nullable) - `floating_spread` (string, optional, nullable) - `rate_index_type` (enum, optional, nullable) - Allowed values: `EFFR`, `CU_RECEIVE_DEFAULT`, `BANK_RECEIVE_DEFAULT`, `EFFR_UPPER_BAND`, `EFFR_LOWER_BAND`, `SOFR_OVERNIGHT`, `SOFR_1M`, `SOFR_3M`, `SOFR_6M`, `SOFR_12M`, `CMT_1M`, `CMT_3M`, `CMT_6M`, `FIDELITY_FISXX`, `FIDELITY_SPAXX`, `FIDELITY_FCIXX`, `WSJ_PRIME`, `IORB` - `floating_rate_percentage` (string, optional, nullable) - `custom_benchmark_id` (string, optional, nullable) ### AccountData - `id` (string, required) - `title` (string, required) ### ValidationErrorLocItems ### ValidationErrorCtx ## Examples **Request** ```json {} ``` **Response** ```json [ { "id": "pg-8f3a2c1d", "institution_id": "inst-4521", "name": "Premium Savings Group", "description": "High yield savings accounts with tiered interest rates", "account_count": 1245, "interest_rate_tiers": [ { "min_balance": "0.00", "max_balance": "9999.99", "rate": "0.015", "floating_spread": null, "rate_index_type": "EFFR", "floating_rate_percentage": null, "custom_benchmark_id": null }, { "min_balance": "10000.00", "max_balance": "49999.99", "rate": "0.020", "floating_spread": null, "rate_index_type": "EFFR", "floating_rate_percentage": null, "custom_benchmark_id": null }, { "min_balance": "50000.00", "max_balance": "9999999.99", "rate": "0.025", "floating_spread": null, "rate_index_type": "EFFR", "floating_rate_percentage": null, "custom_benchmark_id": null } ], "created_at": "2023-11-01T09:15:00Z", "updated_at": "2024-05-20T16:45:00Z", "accounts": [ { "id": "acc-987654321", "title": "John Doe Savings Account" }, { "id": "acc-123456789", "title": "Acme Corp Treasury Account" } ] } ] ``` **SDK Code** ```python import requests url = "https://api.modernfi.com/digital-banking/v1/pricing-groups" payload = {} headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.get(url, json=payload, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.modernfi.com/digital-banking/v1/pricing-groups'; const options = { method: 'GET', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{}' }; 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" "strings" "net/http" "io" ) func main() { url := "https://api.modernfi.com/digital-banking/v1/pricing-groups" payload := strings.NewReader("{}") req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") 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://api.modernfi.com/digital-banking/v1/pricing-groups") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{}" 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://api.modernfi.com/digital-banking/v1/pricing-groups") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{}") .asString(); ``` ```php request('GET', 'https://api.modernfi.com/digital-banking/v1/pricing-groups', [ 'body' => '{}', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.modernfi.com/digital-banking/v1/pricing-groups"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = [] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.modernfi.com/digital-banking/v1/pricing-groups")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers request.httpBody = postData as Data 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() ```