---
title: "Calculate Price Endpoint"
method: POST
path: "/admin/pricing/calculate"
tags: ["internal", "Admin - Pricing"]
---

# Calculate Price Endpoint

`POST /admin/pricing/calculate`

## Request

- Base URL: `https://api.companydata.dk` (the document declares no server; this is the origin it was published from)
- URL: `https://api.companydata.dk/admin/pricing/calculate`
- Auth: none declared

Calculate effective price for a user considering overrides and promotions.

## Request body

- CalculatePriceRequest
  - `user_email` string, required
  - `tier_id` string, required
  - `billing_interval` string, required
  - `promo_code` string, nullable

## Response `200`

Successful Response

- PriceCalculationResponse
  - `base_price_dkk` integer, required
  - `final_price_dkk` integer, required
  - `discount_amount_dkk` integer, required
  - `applied_promotion` string, nullable, required
  - `is_override` boolean, required
  - `override_reason` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/companydata/apis/companydata-dk-api.md) · [All operations](https://skmtc.dev/companydata/apis/companydata-dk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/companydata/apis/companydata-dk-api/revisions/1cc6c361ae64?raw)
