---
title: "POST /usage/organization-subscription/{organization_subscription_id}/"
method: POST
path: "/usage/organization-subscription/{organization_subscription_id}/"
tags: ["usage"]
---

# POST /usage/organization-subscription/{organization_subscription_id}/

`POST /usage/organization-subscription/{organization_subscription_id}/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/usage/organization-subscription/{organization_subscription_id}/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

## Request body

- UsageOrganizationSubscriptionCreate
  - `next_renewal_date` string, date, nullable: Next due date for renewal.
  - `subscription_price` string, decimal, nullable: Price of the subscription.
  - `subscription_future_tier` 'free' | 'basic' | 'basic_yearly' | 'custom', nullable
  - `subscription_future_start_date` string, date, nullable: Next due date for renewal.
  - `subscription_future_price` string, decimal, nullable: Price of the future subscription.
  - `status` 'active' | 'past_due' | 'unpaid' | 'canceled' | 'inactive'
  - `wallet_refill_amount` string, decimal: Amount to refill the wallet every month.
  - `wallet_balance` string, decimal
  - `stripe_customer_id_test` string, nullable: Stripe customer ID for test mode. NULL values are allowed.
  - `stripe_customer_id_live` string, nullable: Stripe customer ID for live mode. NULL values are allowed.
  - `auto_recharge_enabled` boolean
  - `auto_recharge_amount` string, decimal, nullable: Amount to refill the wallet every month.
  - `auto_recharge_threshold` string, decimal, nullable: Threshold to trigger auto recharge.
  - `payment_method_id` string, nullable
  - `custom_subscription_id` string, nullable
  - `organization` string, uuid, required
  - `subscription_tier` integer, required

## Response `200`

OK

- OrganizationSubscriptionMutationResponse
  - `status` boolean, required
  - `result` UsageOrganizationSubscriptionCreate, required
    - `next_renewal_date` string, date, nullable: Next due date for renewal.
    - `subscription_price` string, decimal, nullable: Price of the subscription.
    - `subscription_future_tier` 'free' | 'basic' | 'basic_yearly' | 'custom', nullable
    - `subscription_future_start_date` string, date, nullable: Next due date for renewal.
    - `subscription_future_price` string, decimal, nullable: Price of the future subscription.
    - `status` 'active' | 'past_due' | 'unpaid' | 'canceled' | 'inactive'
    - `wallet_refill_amount` string, decimal: Amount to refill the wallet every month.
    - `wallet_balance` string, decimal
    - `stripe_customer_id_test` string, nullable: Stripe customer ID for test mode. NULL values are allowed.
    - `stripe_customer_id_live` string, nullable: Stripe customer ID for live mode. NULL values are allowed.
    - `auto_recharge_enabled` boolean
    - `auto_recharge_amount` string, decimal, nullable: Amount to refill the wallet every month.
    - `auto_recharge_threshold` string, decimal, nullable: Threshold to trigger auto recharge.
    - `payment_method_id` string, nullable
    - `custom_subscription_id` string, nullable
    - `organization` string, uuid, required
    - `subscription_tier` integer, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
