# 2025-03-07: Order Service - calculated prices

## Overview

The Order Service has transitioned to using new calculated price attributes at both order and entry levels. The following changes have been implemented:

* New mandatory attributes: `calculatedPrice` (order level), `calculatedPrice` and `calculatedUnitPrice` (entry level).
* Previously used price attributes (`totalPrice`, `unitPrice`) are now marked as deprecated and optional.
* Backward compatibility is maintained - the API will continue to work if deprecated price attributes are provided without the new calculated price attributes.

These changes streamline price handling while ensuring existing integrations continue to function without disruption.

## Updated endpoints

| Endpoint                                                                                                                                                                          | Description                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| [Creating a new order (tenant-managed)](https://developer.emporix.io/api-references/api-guides/orders/order/api-reference/orders-tenant-managed#post-order-v2-tenant-salesorders) | Order level `calculatedPrice` marked as mandatory and `totalPrice` marked as optional.          |
| [Creating a new order (tenant-managed)](https://developer.emporix.io/api-references/api-guides/orders/order/api-reference/orders-tenant-managed#post-order-v2-tenant-salesorders) | Order entry level `calculatedPrice` marked as mandatory and `totalPrice` marked as optional.    |
| [Creating a new order (tenant-managed)](https://developer.emporix.io/api-references/api-guides/orders/order/api-reference/orders-tenant-managed#post-order-v2-tenant-salesorders) | Order entry level `calculatedUnitPrice` marked as mandatory and `unitPrice` marked as optional. |
| [Creating a new order (customer-managed)](https://developer.emporix.io/api-references/api-guides/orders/order/api-reference/orders-customer-managed#post-order-v2-tenant-orders)  | Order level `calculatedPrice` marked as mandatory and `totalPrice` marked as optional.          |
| [Creating a new order (customer-managed)](https://developer.emporix.io/api-references/api-guides/orders/order/api-reference/orders-customer-managed#post-order-v2-tenant-orders)  | Order entry level `calculatedPrice` marked as mandatory and `totalPrice` marked as optional.    |
| [Creating a new order (customer-managed)](https://developer.emporix.io/api-references/api-guides/orders/order/api-reference/orders-customer-managed#post-order-v2-tenant-orders)  | Order entry level `calculatedUnitPrice` marked as mandatory and `unitPrice` marked as optional. |

## Known problems

There are no known problems.
