Skip to main content
POST
/
api
/
v1
/
subscriptions
/
{id}
/
cancel-scheduled-adjustment
Cancel Scheduled Adjustment
curl --request POST \
  --url https://app.flowglad.com/api/v1/subscriptions/{id}/cancel-scheduled-adjustment \
  --header 'Authorization: <api-key>'
{
  "subscription": {
    "id": "<string>",
    "createdAt": 0,
    "updatedAt": 0,
    "livemode": true,
    "startDate": 0,
    "customerId": "<string>",
    "organizationId": "<string>",
    "status": "trialing",
    "defaultPaymentMethodId": "<string>",
    "backupPaymentMethodId": "<string>",
    "cancellationReason": "<string>",
    "replacedBySubscriptionId": "<string>",
    "isFreePlan": true,
    "doNotCharge": true,
    "priceId": "<string>",
    "runBillingAtPeriodStart": true,
    "interval": "day",
    "intervalCount": 123,
    "name": "<string>",
    "renews": true,
    "pricingModelId": "<string>",
    "current": true,
    "trialEnd": 0,
    "currentBillingPeriodStart": 0,
    "currentBillingPeriodEnd": 0,
    "metadata": {},
    "canceledAt": 0,
    "cancelScheduledAt": 0,
    "billingCycleAnchorDate": 0,
    "scheduledAdjustmentAt": 0
  },
  "canceledItemCount": 4503599627370495
}

Authorizations

Authorization
string
header
required

Path Parameters

id
string
required

The subscription ID

Response

Successful response

subscription
object
required
canceledItemCount
integer
required

The number of scheduled subscription items that were canceled

Required range: 0 <= x <= 9007199254740991