delete
https://public-api.leexi.ai/v1/reseller/companies//subscription
End a client company's trial or cancel its paid subscription
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
What happens depends on the client's current subscription:
- On a Leexi trial: the trial ends immediately (
subscription.status: leexi_trial_ended). Pushtrial_endback to a future date with Update a client company to restart it. - Open Stripe subscription (
active,trialing,incomplete,past_due,unpaidorpaused), billed by you (independent reseller): the subscription is canceled with proration (subscription.status: canceled), even when it is still chasing an unpaid invoice. - Open Stripe subscription, billed through Leexi: answers
422; contact your Leexi account manager. - Nothing to cancel (
leexi_trial_ended,canceled,incomplete_expiredornot_started): nothing changes, the endpoint answers200with the messageNo subscription to cancel.
The request body is ignored. Canceling the subscription does not deactivate the company or its users: see Deactivate a client company for that.
Requires thewrite_clientspermission scope on the API key of a reseller account.
A company that is not one of your clients, including your own reseller company, answers404.
401401
402402
429429
