# Get Account Subscription

Source: https://recoupable.dev/docs/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`, `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.

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

Full OpenAPI specification: https://recoupable.dev/docs/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://recoupable.dev/docs/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": {
        "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"
                }
              }
            }
          },
          "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 when the account has an active paid subscription, directly or via an organization."
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "trialing",
              "canceled",
              "past_due",
              "none"
            ],
            "description": "Lifecycle state of the subscription. `none` when no subscription exists.",
            "example": "active"
          },
          "plan": {
            "type": "string",
            "nullable": true,
            "description": "Plan identifier (e.g. `pro`). Null when no subscription exists.",
            "example": "pro"
          },
          "source": {
            "type": "string",
            "enum": [
              "account",
              "organization"
            ],
            "nullable": true,
            "description": "Origin of the subscription. `account` for direct, `organization` when covered by an organization. Null when no subscription exists.",
            "example": "account"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "Display name of the plan's Stripe price (nickname) or product. Null when no subscription exists.",
            "example": "Pro"
          },
          "amountCents": {
            "type": "integer",
            "nullable": true,
            "description": "Recurring amount in the smallest currency unit (cents for USD). Null when no subscription exists.",
            "example": 9900
          },
          "currency": {
            "type": "string",
            "nullable": true,
            "description": "ISO 4217 currency code, lowercase.",
            "example": "usd"
          },
          "interval": {
            "type": "string",
            "enum": [
              "day",
              "week",
              "month",
              "year"
            ],
            "nullable": true,
            "description": "Billing interval of the recurring price.",
            "example": "month"
          },
          "collectionMethod": {
            "type": "string",
            "enum": [
              "charge_automatically",
              "send_invoice"
            ],
            "nullable": true,
            "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",
            "format": "date-time",
            "nullable": true,
            "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": "Subscription that confers the account's plan, directly or via an organization. `plan`, `source`, and the six billing fields (`name`, `amountCents`, `currency`, `interval`, `collectionMethod`, `currentPeriodEnd`) are all null when `status` is `none`."
      },
      "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"
      }
    }
  }
}
```
