---
title: "SubscriptionCalculation"
method: POST
path: "/organizations/{organization_id}/subscription/calculate"
tags: ["organizations/subscription"]
---

# SubscriptionCalculation

`POST /organizations/{organization_id}/subscription/calculate`

## Request

- Base URL: `https://localhost:8080/api/v9`
- URL: `https://localhost:8080/api/v9/organizations/{organization_id}/subscription/calculate`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/toggl/apis/toggl-api/docs/organizations/:organization_id/subscription/calculate/post.ts> (a function with typed inputs; its response is checked against the schema)

Returns calculation of the subscription price for given pricing plan, period count, user count, currency, taxes etc.

## Path parameters

- `organization_id` integer, required

## Request body

- CalculateCalculateRequest
  - `period` integer, required: Can be only 1 or 12
  - `pricing_plan_id` integer, required
  - `user_count` integer, required

## Response `200`

No data returned.

- CalculateResponse
  - `calculation` string
  - `currency` string
  - `period` integer
  - `tax_percentage` integer
  - `total_amount` integer

## Other responses

- `400`: Possible error messages: * Organization not found/accessible * Invalid subscription
- `500`: Internal Server Error

---

[API](https://skmtc.dev/toggl/apis/toggl-api.md) - [All operations](https://skmtc.dev/toggl/apis/toggl-api/llms.txt) - [OpenAPI document](https://skmtc.dev/toggl/apis/toggl-api/revisions/3085aee16990?raw)
