ResourcesSubscriptions

Cancel immediately

Cancel a subscription immediately, optionally refunding the latest payment.

Use this lifecycle endpoint when access should end right away. Refund options apply only to immediate cancellations.

POST
/v2/subscriptions/{productSubscription}/actions/cancel-immediately

Authorization

bearerAuth
AuthorizationBearer <token>

Provide your SellApp API key as a bearer token.

In: header

Path Parameters

productSubscription*integer

The productSubscription path parameter.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://sell.app/api/v2/subscriptions/0/actions/cancel-immediately" \  -H "Content-Type: application/json" \  -d '{    "refund_last_payment": true,    "pro_rated_refund": true  }'
{
  "data": {
    "id": 101,
    "product_subscription_id": 55,
    "subscription_id": "sub_1QwertyExample",
    "action": "pause",
    "status": "confirmed",
    "provider": "stripe",
    "customer_message": null,
    "confirmed_at": "2026-07-03T12:00:00.000000Z",
    "failed_at": null,
    "created_at": "2026-07-03T12:00:00.000000Z",
    "updated_at": "2026-07-03T12:00:00.000000Z"
  },
  "message": "Subscription cancellation requested."
}