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

# Cancel subscription

`POST /subscriptions/cancel/{appId}`

## Request

- Base URL: `https://us-central1-paymentgateway-ab783.cloudfunctions.net/api`
- URL: `https://us-central1-paymentgateway-ab783.cloudfunctions.net/api/subscriptions/cancel/{appId}`
- Auth: HTTP bearer

Cancel or schedule cancellation for the specified app subscription.

## Path parameters

- `appId` string, required

## Request body

- object
  - `cancelAtPeriodEnd` boolean: Whether to cancel at the end of the current billing period.

## Response `200`

Cancellation scheduled or completed

## Other responses

- `401`: Missing or invalid authentication token
- `500`: Failed to cancel subscription

---

[API](https://skmtc.dev/futuresenseai/apis/futuresense-ai-central-hub-api.md) · [All operations](https://skmtc.dev/futuresenseai/apis/futuresense-ai-central-hub-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futuresenseai/apis/futuresense-ai-central-hub-api/revisions/53e075911af9?raw)
