# Get account subscription

Source: https://docs.recoupable.dev/api-reference/accounts/subscription-get

Retrieve the subscription that confers an account's plan, directly or via an organization: isPro, status, plan, source, plus the billing fields name…

## GET /api/accounts/{id}/subscription

Full OpenAPI specification: https://docs.recoupable.dev/spec/accounts.json

## Authentication

This operation requires one of the security alternatives in the specification below. Security scheme definitions are included where present in the published specification.

[Authentication guide](https://docs.recoupable.dev/authentication)

## Operation and referenced schemas

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Recoup API - Accounts",
    "description": "API documentation for the Recoup platform - an AI agent platform for the music industry",
    "license": {
      "name": "MIT"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.recoupable.dev"
    }
  ],
  "paths": {
    "/api/accounts/{id}/subscription": {
      "get": {
        "operationId": "getAccountsByIdSubscription",
        "description": "Retrieve the subscription that confers an account's plan, directly or via an organization: `isPro`, `status`, `plan`, `source`, plus the billing fields `name`, `amountCents`, `currency`, `interval`, `collectionMethod` and `currentPeriodEnd`. Everything but `isPro` and `status` is null when `status` is `none`. `id` may be the authenticated account or an organization the caller belongs to.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier (UUID) of the account. Must be the authenticated account or another accessible via organization membership.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "security": [
          {
            "apiKeyAuth": []
          },
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Subscription retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionResponse"
                },
                "examples": {
                  "free": {
                    "summary": "No paid entitlement",
                    "value": {
                      "isPro": false,
                      "status": "none",
                      "plan": null,
                      "source": null,
                      "name": null,
                      "amountCents": null,
                      "currency": null,
                      "interval": null,
                      "collectionMethod": null,
                      "currentPeriodEnd": null
                    }
                  },
                  "starter": {
                    "summary": "Paid Starter, not Pro",
                    "value": {
                      "isPro": false,
                      "status": "active",
                      "plan": "starter",
                      "source": "account",
                      "name": null,
                      "amountCents": null,
                      "currency": null,
                      "interval": null,
                      "collectionMethod": null,
                      "currentPeriodEnd": null
                    }
                  },
                  "directPro": {
                    "summary": "Direct Pro",
                    "value": {
                      "isPro": true,
                      "status": "active",
                      "plan": "pro",
                      "source": "account",
                      "name": null,
                      "amountCents": null,
                      "currency": null,
                      "interval": null,
                      "collectionMethod": null,
                      "currentPeriodEnd": null
                    }
                  },
                  "organizationPro": {
                    "summary": "Organization Pro overrides account Starter",
                    "value": {
                      "isPro": true,
                      "status": "active",
                      "plan": "pro",
                      "source": "organization",
                      "name": null,
                      "amountCents": null,
                      "currency": null,
                      "interval": null,
                      "collectionMethod": null,
                      "currentPeriodEnd": null
                    }
                  },
                  "inactive": {
                    "summary": "Canceled subscription: current entitlement is none",
                    "value": {
                      "isPro": false,
                      "status": "none",
                      "plan": null,
                      "source": null,
                      "name": null,
                      "amountCents": null,
                      "currency": null,
                      "interval": null,
                      "collectionMethod": null,
                      "currentPeriodEnd": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - invalid or missing authentication",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionErrorResponse"
                },
                "example": {
                  "error": "Unauthorized"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden - account not accessible to the authenticated account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Account not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SubscriptionResponse": {
        "type": "object",
        "required": [
          "isPro",
          "status",
          "plan",
          "source",
          "name",
          "amountCents",
          "currency",
          "interval",
          "collectionMethod",
          "currentPeriodEnd"
        ],
        "properties": {
          "isPro": {
            "type": "boolean",
            "description": "True only for effective Pro entitlement. A paid Starter account returns false. Use plan for paid-plan decisions."
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "trialing",
              "canceled",
              "past_due",
              "none"
            ],
            "description": "Current entitlement view. Resolving to Free returns none and null billing fields, including for an inactive subscription; this is not subscription lifecycle history.",
            "example": "active"
          },
          "plan": {
            "type": [
              "string",
              "null"
            ],
            "description": "Plan identifier (e.g. `pro`). Null when no subscription currently confers a paid plan.",
            "example": "pro",
            "enum": [
              "starter",
              "pro",
              null
            ]
          },
          "source": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "account",
              "organization",
              null
            ],
            "description": "Origin of the subscription. `account` for direct, `organization` when covered by an organization. Null when no subscription currently confers a paid plan.",
            "example": "account"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name of the plan's Stripe price (nickname) or product. Null when no subscription exists.",
            "example": "Pro"
          },
          "amountCents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Recurring amount in the smallest currency unit (cents for USD). Null when no subscription exists.",
            "example": 9900
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 4217 currency code, lowercase.",
            "example": "usd"
          },
          "interval": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "day",
              "week",
              "month",
              "year",
              null
            ],
            "description": "Billing interval of the recurring price.",
            "example": "month"
          },
          "collectionMethod": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "charge_automatically",
              "send_invoice",
              null
            ],
            "description": "`charge_automatically` bills the card on file at renewal; `send_invoice` emails an invoice that is paid manually (enterprise plans). A saved card is never charged for a `send_invoice` plan.",
            "example": "charge_automatically"
          },
          "currentPeriodEnd": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "End of the current billing period: the renewal date, or the next invoice date for invoiced plans.",
            "example": "2026-10-04T00:00:00Z"
          }
        },
        "description": "Effective subscription details. When status is none, plan, source, name, amountCents, currency, interval, collectionMethod and currentPeriodEnd are all null."
      },
      "SubscriptionErrorResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "Human-readable error message.",
            "example": "Account not found"
          }
        }
      }
    },
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Your Recoup API key. [Learn more](/quickstart#api-keys)."
      },
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
```
