post
https://public-api.leexi.ai/v1/reseller/companies//subscription
Turn a client company's trial into a paid subscription
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Ends the Leexi trial of a client company and starts its paid Stripe subscription. The subscription uses the plan currently set on the company: set the license, interval, currency and seats with Update a client company first. The request body is ignored.
The response already shows subscription.status: active; the Stripe subscription itself is created in the background within a minute.
Only available when you bill your clients yourself (independent reseller). When billing goes through Leexi on your reseller contract, the endpoint answers422.
A client whose Stripe subscription is still open (active,trialing,incomplete,past_due,unpaidorpaused) answers409: cancel it first with Cancel a client subscription. A client whose previous subscription iscanceledorincomplete_expiredgets a new one.
A deactivated client answers422, and so does a client that is itself an independent reseller while its Stripe customer has no billing address.
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
