Skip to main content
POST
Recalculate prices, discounts, and taxes for a sales entity from a client-supplied state without persisting it.

Authorizations

Authorization
string
header
required

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

Headers

x-companyid
string

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

x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Body

application/json

Request parameters

Recalculate prices, discounts, and taxes for a sales entity from a client-supplied state without persisting it. - Request

calculateSalesEntityRequest
object

The sales entity 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 entity request. Changes are processed in the order specified.

Response

Sales entity calculated successfully.

Recalculate prices, discounts, and taxes for a sales entity from a client-supplied state without persisting it. - Response

lineItems
object[]

The list of calculated sales entity line items.

totalNetAmount
number<decimal>

The total net amount for the sales entity.

totalGrossAmount
number<decimal>

The total gross amount for the sales entity.

totalNetAmountExcludingShipping
number<decimal>

The total net amount for the sales entity excluding shipping costs.

totalGrossAmountExcludingShipping
number<decimal>

The total gross amount for the sales entity excluding shipping costs.

vatId
string

The VAT ID of the company for the departure country.

currencyIso
string

The ISO code of the currency used for the calculated prices.

currencyFactor
number<decimal>

The currency factor used for the price conversion.

shippingCostNet
number<decimal>

The net shipping cost.

shippingCostGross
number<decimal>

The gross shipping cost.

vatAmounts
object[]

The VAT amounts grouped by tax rate.

taxSetting
enum<integer>

The tax setting applied to the sales entity.

Available options:
0,
10,
15,
20