> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://schedule-docs.moxieservices.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://schedule-docs.moxieservices.com/_mcp/server.

# List subscription types

GET https://api.moxie.com/v1/admin/subscription-types

Newest first. With officeId, each item's offices array holds only that office.

Reference: https://schedule-docs.moxieservices.com/api-reference/subscription-types/list-subscription-types

## Authentication

- `Authorization` header (bearer token, required) — API session token from POST /v1/admin/session (8 hours). Sign-in itself is Google Workspace; see research R2.

## Servers

- `https://api.moxie.com` (Production (placeholder hostname), default)
- `https://api-dev.moxie.com` (Dev, FieldRoutes sandbox (placeholder hostname))

## Request

### Query parameters

- `officeId` (string, optional) — Office scope. Omit for global.
- `cursor` (string, optional) — From the previous page's nextCursor.
- `limit` (integer, optional, default: 50)

## Response

### 200

OK

- `items` (list of SubscriptionType, required)
- `nextCursor` (string, optional) — Absent on the last page.

## Errors

### 401 Unauthorized Error

Missing or invalid token (unauthenticated).

- `code` (enum, required) — Every code the API returns, with its HTTP status, is listed in research R12.
  - Allowed values: `validation_failed`, `unauthenticated`, `forbidden`, `not_found`, `link_expired`, `version_conflict`, `duplicate`, `unresolved_overlaps`, `price_changed`, `quote_expired`, `item_unavailable`, `locked_after_redemption`, `zip_not_serviced`, `existing_customer`, `discount_not_applicable`, `idempotency_mismatch`, `invalid_state`, `rate_limited`, `processor_rejected`, `fieldroutes_unavailable`, `job_timeout`, `internal_error`, `service_unavailable`
- `message` (string, required) — Plain-language message the UI can show.
- `fieldErrors` (list of ErrorFieldErrorsItems, optional)
- `details` (ErrorDetails, optional) — Extra data for some codes, e.g. the new quote for price_changed.
- `requestId` (string, optional) — Same value as the X-Request-Id response header; quote it to support. Present on every API error response (0.9.3); may be absent on a job's error.

### 403 Forbidden Error

Valid login but missing permission or office access (forbidden).

- `code` (enum, required) — Every code the API returns, with its HTTP status, is listed in research R12.
  - Allowed values: `validation_failed`, `unauthenticated`, `forbidden`, `not_found`, `link_expired`, `version_conflict`, `duplicate`, `unresolved_overlaps`, `price_changed`, `quote_expired`, `item_unavailable`, `locked_after_redemption`, `zip_not_serviced`, `existing_customer`, `discount_not_applicable`, `idempotency_mismatch`, `invalid_state`, `rate_limited`, `processor_rejected`, `fieldroutes_unavailable`, `job_timeout`, `internal_error`, `service_unavailable`
- `message` (string, required) — Plain-language message the UI can show.
- `fieldErrors` (list of ErrorFieldErrorsItems, optional)
- `details` (ErrorDetails, optional) — Extra data for some codes, e.g. the new quote for price_changed.
- `requestId` (string, optional) — Same value as the X-Request-Id response header; quote it to support. Present on every API error response (0.9.3); may be absent on a job's error.

### 429 Too Many Requests Error

Too many requests (rate_limited).

- `code` (enum, required) — Every code the API returns, with its HTTP status, is listed in research R12.
  - Allowed values: `validation_failed`, `unauthenticated`, `forbidden`, `not_found`, `link_expired`, `version_conflict`, `duplicate`, `unresolved_overlaps`, `price_changed`, `quote_expired`, `item_unavailable`, `locked_after_redemption`, `zip_not_serviced`, `existing_customer`, `discount_not_applicable`, `idempotency_mismatch`, `invalid_state`, `rate_limited`, `processor_rejected`, `fieldroutes_unavailable`, `job_timeout`, `internal_error`, `service_unavailable`
- `message` (string, required) — Plain-language message the UI can show.
- `fieldErrors` (list of ErrorFieldErrorsItems, optional)
- `details` (ErrorDetails, optional) — Extra data for some codes, e.g. the new quote for price_changed.
- `requestId` (string, optional) — Same value as the X-Request-Id response header; quote it to support. Present on every API error response (0.9.3); may be absent on a job's error.

### 500 Internal Server Error

Unexpected server error (internal_error). Quote the requestId to support.

- `code` (enum, required) — Every code the API returns, with its HTTP status, is listed in research R12.
  - Allowed values: `validation_failed`, `unauthenticated`, `forbidden`, `not_found`, `link_expired`, `version_conflict`, `duplicate`, `unresolved_overlaps`, `price_changed`, `quote_expired`, `item_unavailable`, `locked_after_redemption`, `zip_not_serviced`, `existing_customer`, `discount_not_applicable`, `idempotency_mismatch`, `invalid_state`, `rate_limited`, `processor_rejected`, `fieldroutes_unavailable`, `job_timeout`, `internal_error`, `service_unavailable`
- `message` (string, required) — Plain-language message the UI can show.
- `fieldErrors` (list of ErrorFieldErrorsItems, optional)
- `details` (ErrorDetails, optional) — Extra data for some codes, e.g. the new quote for price_changed.
- `requestId` (string, optional) — Same value as the X-Request-Id response header; quote it to support. Present on every API error response (0.9.3); may be absent on a job's error.

### 503 Service Unavailable Error

A required service such as the database or queue is temporarily unavailable (service_unavailable). Retry later.

- `code` (enum, required) — Every code the API returns, with its HTTP status, is listed in research R12.
  - Allowed values: `validation_failed`, `unauthenticated`, `forbidden`, `not_found`, `link_expired`, `version_conflict`, `duplicate`, `unresolved_overlaps`, `price_changed`, `quote_expired`, `item_unavailable`, `locked_after_redemption`, `zip_not_serviced`, `existing_customer`, `discount_not_applicable`, `idempotency_mismatch`, `invalid_state`, `rate_limited`, `processor_rejected`, `fieldroutes_unavailable`, `job_timeout`, `internal_error`, `service_unavailable`
- `message` (string, required) — Plain-language message the UI can show.
- `fieldErrors` (list of ErrorFieldErrorsItems, optional)
- `details` (ErrorDetails, optional) — Extra data for some codes, e.g. the new quote for price_changed.
- `requestId` (string, optional) — Same value as the X-Request-Id response header; quote it to support. Present on every API error response (0.9.3); may be absent on a job's error.

## Types

### SubscriptionType

- `title` (string, required)
- `availability` (PlanAvailability, required)
- `pricing` (PlanPricing, required)
- `id` (string, optional) — Server-generated.
- `subtitle` (string, optional)
- `serviceLine` (string, optional)
- `annualServices` (integer, optional)
- `contractLengthMonths` (integer, optional)
- `serviceInterval` (SubscriptionTypeServiceInterval, optional) — Days between recurring visits, e.g. 80-100 for quarterly.
- `coveredPestIds` (list of string, optional)
- `coveredPestGroupIds` (list of string, optional)
- `offices` (list of PlanOfficeSetting, optional) — Office settings saved in the same transaction as the plan (JQ-03).
- `version` (integer, optional) — Version you last read. Omit on create; required on update. A stale value returns 409 version_conflict.

### ErrorFieldErrorsItems

- `field` (string, required) — JSON path, e.g. pricing.initialCents
- `message` (string, required)

### ErrorDetails

Extra data for some codes, e.g. the new quote for price_changed.

### PlanAvailability

- `active` (boolean, optional) — Offered to customers (ST-2).
- `visibility` (enum, optional) — ST-3.
  - Allowed values: `listed`, `link_only`
- `existingCustomers` (boolean, optional) — Stored for the call center; unused online in v1 because existing customers cannot sign up online.

### PlanPricing

- `model` (enum, required)
  - Allowed values: `flat`, `sqft_scaled`
- `initialCents` (integer, required) — Amount in US cents.
- `recurringCents` (integer, required) — Amount in US cents.
- `recurringPeriod` (enum, required)
  - Allowed values: `per_service`, `per_month`
- `baseQuoteCents` (integer, optional) — Amount in US cents.
- `sqftScaling` (PlanPricingSqftScaling, optional) — Required when model is sqft_scaled (ST-8). The API computes tiers for both the portal preview and the booking site (JQ-09).

### SubscriptionTypeServiceInterval

Days between recurring visits, e.g. 80-100 for quarterly.

- `minDays` (integer, required)
- `maxDays` (integer, required)

### PlanOfficeSetting

- `active` (boolean, required)
- `officeId` (string, optional)
- `fieldRoutesServiceTypeId` (integer, optional) — FieldRoutes numeric ID (per office). Always stored by ID, never by name; names come from the mirror (FR-082).
- `pricingOverride` (PlanPricing, optional)
- `inherited` (boolean, optional) — True when no override row exists.
- `version` (integer, optional) — Version you last read. Omit on create; required on update. A stale value returns 409 version_conflict.

### PlanPricingSqftScaling

Required when model is sqft_scaled (ST-8). The API computes tiers for both the portal preview and the booking site (JQ-09).

- `initial` (SqftScale, required)
- `recurring` (SqftScale, required)

### SqftScale

- `baseSqft` (integer, required)
- `stepSqft` (integer, required)
- `increaseCents` (integer, required) — Amount in US cents.
- `maxSqft` (integer, required) — Above this the booking site shows a call-us message.

## Examples

**Response**

```json
{
  "items": [
    {
      "title": "string",
      "availability": {
        "active": true,
        "visibility": "listed",
        "existingCustomers": true
      },
      "pricing": {
        "model": "flat",
        "initialCents": 1,
        "recurringCents": 1,
        "recurringPeriod": "per_service",
        "baseQuoteCents": 1,
        "sqftScaling": {
          "initial": {
            "baseSqft": 1,
            "stepSqft": 1,
            "increaseCents": 1,
            "maxSqft": 1
          },
          "recurring": {
            "baseSqft": 1,
            "stepSqft": 1,
            "increaseCents": 1,
            "maxSqft": 1
          }
        }
      },
      "id": "string",
      "subtitle": "string",
      "serviceLine": "general_pest",
      "annualServices": 1,
      "contractLengthMonths": 1,
      "serviceInterval": {
        "minDays": 1,
        "maxDays": 1
      },
      "coveredPestIds": [
        "string"
      ],
      "coveredPestGroupIds": [
        "string"
      ],
      "offices": [
        {
          "active": true,
          "officeId": "string",
          "fieldRoutesServiceTypeId": 1,
          "pricingOverride": {
            "model": "flat",
            "initialCents": 1,
            "recurringCents": 1,
            "recurringPeriod": "per_service",
            "baseQuoteCents": 1,
            "sqftScaling": {
              "initial": {
                "baseSqft": 1,
                "stepSqft": 1,
                "increaseCents": 1,
                "maxSqft": 1
              },
              "recurring": {
                "baseSqft": 1,
                "stepSqft": 1,
                "increaseCents": 1,
                "maxSqft": 1
              }
            }
          },
          "inherited": true,
          "version": 1
        }
      ],
      "version": 1
    }
  ],
  "nextCursor": "string"
}
```

**SDK Code**

```python
import requests

url = "https://api.moxie.com/v1/admin/subscription-types"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.moxie.com/v1/admin/subscription-types';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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://api.moxie.com/v1/admin/subscription-types"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	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.moxie.com/v1/admin/subscription-types")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.moxie.com/v1/admin/subscription-types")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.moxie.com/v1/admin/subscription-types', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.moxie.com/v1/admin/subscription-types");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.moxie.com/v1/admin/subscription-types")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
```