Skip to main content
POST
/
billing
/
cancel_subscription
/
Cancel subscription
curl --request POST \
  --url https://api-v2.missioninbox.com/billing/cancel_subscription/ \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "at_period_end": true
}'
{
  "subscription_id": "<string>",
  "status": "<string>",
  "cancel_at_period_end": true,
  "canceled_at": 123
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

at_period_end
boolean
default:true

Cancel at period end (default: true)

Response

subscription_id
string
required
status
string
required
cancel_at_period_end
boolean
required
canceled_at
integer | null
required