ResourcesSubscriptions

Preview a plan change

Preview the billing impact before changing a subscription's plan.

Plan changes may be customer-only depending on provider support.

POST
/v2/subscriptions/{productSubscription}/actions/change-plan/preview

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/change-plan/preview" \  -H "Content-Type: application/json" \  -d '{    "target_variant_id": 4321,    "effective_timing": "immediate",    "proration_behavior": "provider_default"  }'
{
  "data": {
    "preview_token": "subprev_9c4b2f",
    "expires_at": "2026-07-03T12:15:00.000000Z",
    "preview_payload": {
      "estimated_total_cents": 1500
    },
    "request_payload": {
      "target_variant_id": 4321
    },
    "customer_message": null,
    "seller_message": null
  },
  "message": "Subscription plan change preview created."
}