Skip to main content
POST
Calculate prices, discounts, and taxes for a sales order without persisting it.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

x-runas
string

The User-Id (int or uuid) on whose behalf the request is executed. Requires scope 'Application.RunAs'.

x-companyid
string

The Company-Id (int or uuid) of the company on whose behalf the request is executed.

Body

application/json

Request parameters

Calculate prices, discounts, and taxes for a sales order without persisting it. - Request

calculateSalesOrderRequest
object

The sales order calculation request model in the original state before any changes.

recalculateTaxMode
enum<integer>

The mode for tax recalculation (NoRecalculation, KeepNetPrices, KeepGrossPrices).

Available options:
0,
1,
2
changes
object[]

The history of changes made to the sales order request. Changes are processed in the order specified.

Response

200 - application/json

Sales order calculated successfully.