---
title: "Get Plan Status by User ID (Admin)"
method: GET
path: "/api/billing/plan-status/user"
tags: ["billing"]
---

# Get Plan Status by User ID (Admin)

`GET /api/billing/plan-status/user`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/billing/plan-status/user`
- Auth: API key in header `Authorization`

Returns plan status for a specific user (admin only)

## Query parameters

- `userId` string, required

## Response `200`

Plan status information

- BillingApiPlanStatusResponse
  - `availableUpgrades` BillingApiAvailablePlan[]
    - `benefits` object
    - `features` string[]
    - `monthlyPrice` number
    - `planId` string
    - `planName` string
  - `billingCycle` BillingApiBillingCycleInfo
    - `currentCycleEnd` string
    - `currentCycleStart` string
    - `status` string
    - `totalAmount` number
  - `credits` BillingApiCreditsInfo
    - `expiryDate` string
    - `remainingCredits` number
    - `totalCredits` number
    - `usedCredits` number
  - `currentPlan` BillingApiPlanDetails
    - `billingInterval` string: "monthly", "yearly"
    - `currency` string
    - `monthlyPrice` number
    - `planId` string
    - `planName` string
    - `planType` string: "free", "paid", "trial", "enterprise"
    - `priceId` string
  - `limits` BillingApiLimitsInfo
    - `dailySpendingLimit` number
    - `maxApps` integer
    - `maxCpuCores` number
    - `maxMemoryGb` number
    - `maxRegions` integer
    - `maxReplicas` integer
    - `monthlySpendingLimit` number
  - `nextBillingDate` string
  - `subscriptionStatus` string
  - `usage` BillingApiUsageInfo
    - `activeApps` integer
    - `bandwidthUsedGb` number
    - `dailySpending` number
    - `monthlySpending` number
    - `storageUsedGb` number
    - `totalDeployments` integer
    - `utilizationPercent` number
  - `user` BillingApiUserPlanInfo
    - `companyName` string
    - `email` string
    - `isFreePlan` boolean
    - `isPaidPlan` boolean
    - `userId` string

## Other responses

- `401`: Unauthorized
- `500`: Internal Server Error

---

[API](https://skmtc.dev/nife/apis/nife-io-swagger-api.md) - [All operations](https://skmtc.dev/nife/apis/nife-io-swagger-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nife/apis/nife-io-swagger-api/revisions/6e868dc62795?raw)
