Start a client subscription

Turn a client company's trial into a paid subscription

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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 answers 422.

❗️

A client whose Stripe subscription is still open (active, trialing, incomplete, past_due, unpaid or paused) answers 409: cancel it first with Cancel a client subscription. A client whose previous subscription is canceled or incomplete_expired gets a new one.

❗️

A deactivated client answers 422, and so does a client that is itself an independent reseller while its Stripe customer has no billing address.

📘

Requires the write_clients permission scope on the API key of a reseller account.

❗️

A company that is not one of your clients, including your own reseller company, answers 404.

Path Params
string
required

UUID of one of your client companies.

Responses

401

401

402

402

429

429

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json