---
updatedAt: 2026-06-24T20:12:40.000Z
agentTools:
  projectIndex: https://developer.fastspring.com/llms.txt
---

# Create a co-term group

Creates a new co-term group for eligible subscriptions under the same account.


# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "The Subscriptions API provides full lifecycle management for recurring billing.\nCreate, update, pause, resume, and cancel subscriptions programmatically.\n\n## Authentication\nAll endpoints require HTTP Basic Auth using your API credentials.\n\n\n**Rate Limiting:** Rate limiting may be enforced. Consult FastSpring documentation for current rate limit policies. Requests that exceed applicable limits will receive a 429 Too Many Requests response.\n",
    "version": "v1.1.0-kgi27",
    "title": "FastSpring API - Subscriptions",
    "contact": {
      "name": "FastSpring Developer Support",
      "url": "https://developer.fastspring.com/support",
      "email": "devsupport@fastspring.com"
    }
  },
  "servers": [
    {
      "url": "https://api.fastspring.com"
    }
  ],
  "security": [
    {
      "auth": []
    }
  ],
  "tags": [
    {
      "name": "Subscriptions",
      "description": "Manage and retrieve subscription details, including creation, updates, cancellations, and retrieving subscription statuses or related information.\n"
    }
  ],
  "paths": {
    "/subscriptions/coterm": {
      "post": {
        "summary": "Create a co-term group",
        "description": "Creates a new co-term group for eligible subscriptions under the same account.\n",
        "operationId": "createCotermGroup",
        "tags": [
          "Subscriptions"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCoTermGroupRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoTermCreateResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "auth": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "schemas": {
      "CreateCoTermGroupRequest": {
        "type": "object",
        "description": "Request body to create a new co-term group.",
        "required": [
          "accountId",
          "coTermGroup"
        ],
        "properties": {
          "accountId": {
            "type": "string",
            "description": "The ID of the account the subscriptions belong to.",
            "example": "Mn7Op8Qr9St0Uv1Wx2Yz3A"
          },
          "coTermGroup": {
            "type": "object",
            "description": "Container for the group details.",
            "properties": {
              "displayName": {
                "type": "string",
                "description": "A human-readable name for the group.",
                "example": "Example co-term group name"
              },
              "subscriptions": {
                "type": "array",
                "description": "List of Subscription IDs to include in the group.",
                "items": {
                  "type": "string",
                  "description": "A subscription ID.",
                  "example": "Ab1C-DeFgH-iJ2K3l4MmNo"
                }
              }
            }
          }
        }
      },
      "CoTermCreateResponse": {
        "type": "object",
        "description": "Response returned upon successful creation of a group.",
        "properties": {
          "action": {
            "type": "string",
            "description": "The action performed.",
            "example": "subscriptions.coterm.create"
          },
          "result": {
            "type": "string",
            "description": "The result of the operation.",
            "example": "success"
          },
          "accountId": {
            "type": "string",
            "description": "Account ID associated with the group.",
            "example": "Mn7Op8Qr9St0Uv1Wx2Yz3A"
          },
          "coTermGroup": {
            "$ref": "#/components/schemas/CoTermGroupObject"
          }
        }
      },
      "CoTermGroupObject": {
        "type": "object",
        "description": "Nested object representing the group data in a Create response.",
        "properties": {
          "coTermGroupId": {
            "type": "string",
            "description": "Unique identifier for the co-term group.",
            "example": "X_yZ1a2Bc3De4Fg5Hi6JkL"
          },
          "displayName": {
            "type": "string",
            "description": "Display name of the group.",
            "example": "Example co-term group name"
          },
          "groupingCriteria": {
            "type": "array",
            "description": "List of criteria used to validate the group.",
            "items": {
              "$ref": "#/components/schemas/GroupingCriteria"
            }
          },
          "subscriptions": {
            "type": "array",
            "description": "List of subscriptions in the group.",
            "items": {
              "type": "object",
              "properties": {
                "subscription": {
                  "type": "string",
                  "description": "The subscription ID.",
                  "example": "Ab1C-DeFgH-iJ2K3l4MmNo"
                },
                "status": {
                  "type": "string",
                  "description": "The status of the subscription within the group.",
                  "example": "Co-Termed"
                }
              }
            }
          }
        }
      },
      "GroupingCriteria": {
        "type": "object",
        "description": "The criteria used to group subscriptions (currency, interval, etc).",
        "properties": {
          "interval": {
            "type": "array",
            "description": "Allowed billing intervals.",
            "items": {
              "type": "object",
              "properties": {
                "unit": {
                  "type": "string",
                  "description": "The interval unit.",
                  "example": "MONTH"
                },
                "length": {
                  "type": "integer",
                  "description": "The interval length.",
                  "example": 1
                }
              }
            }
          },
          "currency": {
            "type": "array",
            "description": "Allowed currencies.",
            "items": {
              "type": "string",
              "description": "Currency code.",
              "example": "USD"
            }
          },
          "paymentMethods": {
            "type": "array",
            "description": "Allowed payment methods.",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "Payment method type.",
                  "example": "card"
                },
                "ending": {
                  "type": "string",
                  "description": "Display string for the payment method.",
                  "example": "*4242 (USD)"
                }
              }
            }
          }
        }
      }
    }
  }
}
```