Skip to main content
POST
/
v1
/
subscriptions
/
schedules
/
{schedule_id}
/
cancel
Cancel subscription schedule
curl --request POST \
  --url https://us.api.flexprice.io/v1/v1/subscriptions/schedules/{schedule_id}/cancel \
  --header 'Content-Type: application/json' \
  --data '
{
  "schedule_id": "<string>",
  "schedule_type": "plan_change",
  "subscription_id": "<string>"
}
'
{
  "message": "<string>",
  "status": "pending"
}

Path Parameters

schedule_id
string
required

Schedule ID (optional if using request body)

Body

application/json

Cancel request (optional if using path parameter)

Request to cancel a subscription schedule (supports two modes)

schedule_id
string

schedule_id is the ID of the schedule to cancel (optional if subscription_id and schedule_type are provided)

schedule_type
enum<string>
Available options:
plan_change,
cancellation
subscription_id
string

subscription_id is the ID of the subscription (required if schedule_id is not provided)

Response

200 - application/json

OK

Confirmation of schedule cancellation

message
string

message is a confirmation message

status
enum<string>
Available options:
pending,
executing,
executed,
cancelled,
failed