Skip to main content
POST
/
subscriptions
/
{id}
/
cancel
Cancel subscription
curl --request POST \
  --url https://api.sprucecollective.co.uk/subscriptions/{id}/cancel \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "amount_cents": 123,
  "auto_renew": true,
  "available_credits": 123,
  "billing_interval": "<string>",
  "can_be_cancelled": true,
  "cancellation_reason": "<string>",
  "cancelled_at": "<string>",
  "cooling_off_expiry": "<string>",
  "created_at": "<string>",
  "credits_used_this_period": 123,
  "currency": "<string>",
  "current_period_end": "<string>",
  "current_period_start": "<string>",
  "entry_credits_per_period": 123,
  "id": "<string>",
  "is_active": true,
  "is_cancelled": true,
  "is_in_trial": true,
  "is_paused": true,
  "is_trial_active": true,
  "metadata": {},
  "next_billing_date": "<string>",
  "paused_until": "<string>",
  "payment_method": "<string>",
  "site_id": "<string>",
  "status": "<string>",
  "subscription_start_date": "<string>",
  "tier": "<string>",
  "trial_end_date": "<string>",
  "trial_start_date": "<string>",
  "updated_at": "<string>",
  "user_id": "<string>"
}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Path Parameters

id
string
required

Subscription ID

Body

application/json

Cancellation reason

{key}
string

Response

OK

amount_cents
integer
auto_renew
boolean
available_credits
integer
billing_interval
string
can_be_cancelled
boolean
cancellation_reason
string
cancelled_at
string
cooling_off_expiry
string
created_at
string
credits_used_this_period
integer
currency
string
current_period_end
string
current_period_start
string
entry_credits_per_period
integer
id
string
is_active
boolean
is_cancelled
boolean
is_in_trial
boolean
is_paused
boolean
is_trial_active
boolean
metadata
object
next_billing_date
string
paused_until
string
payment_method
string
site_id
string
status
string
subscription_start_date
string
tier
string
trial_end_date
string
trial_start_date
string
updated_at
string
user_id
string