---
title: "Cancel subscription"
method: POST
path: "/api/v1/subscriptions/{subscription_id}/cancel"
tags: ["Subscriptions"]
---

# Cancel subscription

`POST /api/v1/subscriptions/{subscription_id}/cancel`

Cancel a subscription either immediately or at the end of the billing period.

## Path parameters

- `subscription_id` string, MeteroidId, required

## Request body

- CancelSubscriptionRequest
  - `effective_date` string, date, nullable — If not provided, the cancellation will be effective at the end of the current billing or committed period.
  - `reason` string, nullable

## Response `200`

Subscription canceled

- CancelSubscriptionResponse
  - `subscription` Subscription, required
    - `activated_at` string, date-time, nullable — When the subscription was activated (first payment or activation condition met)
    - `auto_advance_invoices` boolean, required — If false, invoices will stay in Draft until manually reviewed and finalized. Default to true.
    - `billing_day_anchor` integer, required
    - `billing_start_date` string, date, nullable — When billing started (after any trial period)
    - `charge_automatically` boolean, required — Automatically try to charge the customer's configured payment method on finalize.
    - `created_at` string, date-time, required — When the subscription was created
    - `currency` 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLP' | 'CNH' | 'CNY' | 'COP' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STD' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW' | 'ZWL', required
    - `current_period_end` string, date, nullable — Current billing period end date
    - `current_period_start` string, date, required — Current billing period start date
    - `customer_alias` string, nullable
    - `customer_id` string, MeteroidId, required
    - `customer_name` string, required
    - `end_date` string, date, nullable — When the subscription ends (if set)
    - `id` string, MeteroidId, required
    - `invoice_memo` string, nullable — Default memo for invoices
    - `mrr_cents` integer, required — Monthly recurring revenue in cents
    - `net_terms` integer, required — Payment terms in days (0 = due on issue)
    - `payment_methods_config` union — Online (card/direct debit), BankTransfer, or External.
      - OnlinePaymentMethodConfig
        - `config` OnlineMethodsConfig
          - `card` OnlineMethodConfig
            - `enabled` boolean, required
          - `direct_debit` OnlineMethodConfig
            - `enabled` boolean, required
      - BankTransferPaymentMethodConfig
        - `account_id` string, MeteroidId
      - ExternalPaymentMethodConfig
    - `period` 'MONTHLY' | 'QUARTERLY' | 'SEMIANNUAL' | 'ANNUAL', required
    - `plan_description` string, nullable
    - `plan_id` string, MeteroidId, required
    - `plan_name` string, required
    - `plan_version` integer, required
    - `plan_version_id` string, MeteroidId, required
    - `purchase_order` string, nullable
    - `start_date` string, date, required — When the subscription contract starts (benefits apply from this date)
    - `status` 'PENDING_ACTIVATION' | 'PENDING_CHARGE' | 'TRIAL_ACTIVE' | 'ACTIVE' | 'TRIAL_EXPIRED' | 'PAUSED' | 'SUSPENDED' | 'CANCELLED' | 'COMPLETED' | 'SUPERSEDED' | 'ERRORED', required
    - `trial_duration` integer, nullable — Trial duration in days

## Other responses

- `401` — Unauthorized
- `404` — Subscription not found
- `429` — Too many requests
- `500` — Internal error

## Changes

- **2026-03-31** (v1) `560215310a09` — 1 breaking, 2 info
  - added `#/components/schemas/OnlinePaymentMethodConfig, #/components/schemas/BankTransferPaymentMethodConfig, #/components/schemas/ExternalPaymentMethodConfig` to the `subscription/payment_methods_config/oneOf[#/components/schemas/PaymentMethodsConfig]/` response property `oneOf` list for the response status `200`
  - added discriminator to `subscription/payment_methods_config/oneOf[#/components/schemas/PaymentMethodsConfig]/` response property for the response status `200`
  - removed `subschema #1, subschema #2, subschema #3` from the `subscription/payment_methods_config/oneOf[#/components/schemas/PaymentMethodsConfig]/` response property `oneOf` list for the response status `200`
- …earlier changes not shown

[Full history](https://skmtc.dev/meteroid-oss/apis/meteroid/changes/api/v1/subscriptions/:subscription_id/cancel/post.md)

---

[API](https://skmtc.dev/meteroid-oss/apis/meteroid.md) · [All operations](https://skmtc.dev/meteroid-oss/apis/meteroid/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/meteroid-oss/meteroid/revisions/03f9d8ae5c5e/schema)
