> ## Documentation Index
> Fetch the complete documentation index at: https://nevermined.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel the org tier subscription at period end

> Schedules the Stripe subscription to cancel at the end of the current billing period — the org keeps access until `currentPeriodEnd`. Marks the row as canceled locally and pre-shrinks published agents/plans to the post-cancel (Lapsed) caps. Requires a Nevermined API key. Requires organization admin privileges.



## OpenAPI

````yaml /api-reference/organizations-openapi.json post /organizations/{orgId}/billing/cancel
openapi: 3.0.0
info:
  title: Nevermined Organizations API
  description: >-
    Manage a Nevermined organization programmatically — members, tiers, groups &
    budgets, treasury wallets, customers, webhooks, analytics, and
    agent-discovery surfaces.
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.sandbox.nevermined.app/api/v1
    description: Sandbox
  - url: https://api.live.nevermined.app/api/v1
    description: Live
security: []
tags:
  - name: Organizations
    x-group: General
    description: Organization settings, members & roles, and workspace context.
  - name: Organizations - Billing
    x-group: Billing
    description: Tiers, subscriptions, invoices, checkout, and the public tier catalog.
  - name: Groups
    x-group: Groups & Budgets
    description: Organization groups, per-group budgets, and shared payment methods.
  - name: Organizations - Wallets
    x-group: Wallets
    description: Custodial stablecoin treasury wallets.
  - name: Organizations - Customers
    x-group: Customers
    description: The white-label customer CRM (Enterprise).
  - name: Organizations - Analytics
    x-group: Analytics
    description: Revenue, MRR, usage, conversion, and per-member metrics.
  - name: Organizations - Webhooks
    x-group: Webhooks
    description: Outbound webhook subscriptions and deliveries.
  - name: Organizations - Activity
    x-group: Activity
    description: The organization activity feed.
  - name: Organizations - Realtime
    x-group: Realtime
    description: Realtime WebSocket secret management (Enterprise).
  - name: Invitations
    x-group: Invitations
    description: Invite people to an organization.
  - name: Organizations - Integration
    x-group: Agent Discovery
    description: >-
      Public agent-discovery surfaces (llms.txt, agentic-instructions.md,
      ai-catalog.json).
paths:
  /organizations/{orgId}/billing/cancel:
    post:
      tags:
        - Organizations - Billing
      summary: Cancel the org tier subscription at period end
      description: >-
        Schedules the Stripe subscription to cancel at the end of the current
        billing period — the org keeps access until `currentPeriodEnd`. Marks
        the row as canceled locally and pre-shrinks published agents/plans to
        the post-cancel (Lapsed) caps. Requires a Nevermined API key. Requires
        organization admin privileges.
      operationId: BillingController_cancel
      parameters:
        - name: orgId
          required: true
          in: path
          description: Organization identifier.
          schema:
            type: string
            example: org-abc123
      responses:
        '200':
          description: >-
            Cancellation scheduled; returns `{ canceled, cancelAt,
            currentPeriodEnd }`.
        '400':
          description: No Stripe-backed subscription to cancel (BCK.BILLING.0013).
        '403':
          description: Caller is not an active admin of the organization.
      security:
        - Authorization: []
components:
  securitySchemes:
    Authorization:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

## Related topics

- [Current tier subscription for this org (or null)](/docs/api-reference/organizations--billing/current-tier-subscription-for-this-org-or-null.md)
- [Plans & Billing](/docs/solutions/organizations/plans-and-billing.md)
- [API error codes](/docs/development-guide/api-errors/codes.md)
- [Get conversion funnel metrics](/docs/api-reference/organizations--analytics/get-conversion-funnel-metrics.md)
- [List Stripe invoices for the org tier subscription](/docs/api-reference/organizations--billing/list-stripe-invoices-for-the-org-tier-subscription.md)
