APIBilling
Cancel the subscription
Cancel at the end of the paid period; access continues until then. Startup program contracts cannot cancel this way. Requires the admin scope.
POST
/billing/cancelcurl -X POST "https://productlane.com/api/v2/billing/cancel" \
-H "Authorization: Bearer $PRODUCTLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reason": "string"
}'Authorization
AuthorizationstringheaderrequiredBearer authentication header of the form
Bearer <token>, where<token>is your auth token.
Body
application/json
reasonstringRecorded with the cancellation for the churn record.
Response
application/json
Successful response
planstringrequiredfree, starter, pro, or scale.
statusstringrequiredStripe status, or none when there is no live subscription.
seatsnumberrequiredcurrent_period_endstring | nullrequiredcancel_at_period_endbooleanrequiredtrial_ends_atstring | nullrequired
{
"plan": "string",
"status": "string",
"seats": 0,
"current_period_end": "string",
"cancel_at_period_end": true,
"trial_ends_at": "string"
}