---
title: "POST /api/billing/ai/subscription/activate"
method: POST
path: "/api/billing/ai/subscription/activate"
tags: ["AISubscription"]
---

# POST /api/billing/ai/subscription/activate

`POST /api/billing/ai/subscription/activate`

## Request

- Base URL: `https://api.wearelearning.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wearelearning.io/api/billing/ai/subscription/activate`
- Auth: OAuth 2
  - Implicit: `https://login.wearelearning.io/authorize?audience=https://api.wearelearning.io`

## Headers

- `Idempotency-Key` string

## Response `200`

OK

- AIBillingStatusDto
  - `status` string, required
  - `meter` string, required
  - `monthlyAllowance` integer, required
  - `subscriptionBalance` integer, required
  - `topUpBalance` integer, required
  - `promotionalBalance` integer, required
  - `totalAvailable` integer, required
  - `creditsUsedThisPeriod` integer, required
  - `currency` string, required
  - `cycleStartedAt` string, date-time, nullable
  - `creditCycleEndsAt` string, date-time, nullable
  - `trialExpiresAt` string, date-time, nullable
  - `breakdown` AICreditsBreakdownRow[], nullable
    - `kind` 'subscription' | 'topup' | 'promotional', required
    - `granted` integer, required
    - `remaining` integer, required
    - `resetsAt` string, date-time, nullable
    - `expiresAt` string, date-time, nullable
    - `grantId` string, nullable
  - `billing` AIBillingMethodDto
    - `method` 'card' | 'invoice', required
    - `cardLast4` string, nullable
  - `creatorTopUpEnabled` boolean, required
  - `hasPaidPackage` boolean, required

---

[API](https://skmtc.dev/wearelearning/apis/we-are-learning-api.md) - [All operations](https://skmtc.dev/wearelearning/apis/we-are-learning-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wearelearning/apis/we-are-learning-api/revisions/e2ca5265db77?raw)
