Start a client subscription

End the Leexi trial of a client company and start its paid Stripe subscription, with the plan, interval, currency and seats currently set on the company. Only available when you bill your clients yourself (independent reseller); otherwise billing goes through Leexi and 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. The request body is ignored.

post/reseller/companies/{company_uuid}/subscription

Request

  • Base URL: https://public-api.leexi.ai/v1
  • URL: https://public-api.leexi.ai/v1/reseller/companies/{company_uuid}/subscription
  • Auth: API key in header Authorization

Path parameters

company_uuidstring required

UUID of one of your client companies.

Response

200

messagestring
successboolean

Example response

{
  "data": {
    "active": true,
    "created_at": "2024-06-14T11:00:33.534Z",
    "industry": "consulting",
    "name": "Client One",
    "reseller_external_id": "CLIENT-1",
    "updated_at": "2024-06-14T11:00:33.534Z",
    "uuid": "c1f4b7a2-3d2e-4f0a-9b1c-6e7d8a9f0b12",
    "subscription": {
      "status": "leexi_trialing",
      "active": true,
      "license": "business",
      "interval": "year",
      "currency": "eur",
      "trial_end": 1767222000,
      "seats": {
        "billed": 4,
        "max": 10,
        "min": 2
      },
      "subscription_required": true
    }
  },
  "message": "Company successfully updated",
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.