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-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

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

calculateSalesOrderRequest
object
required

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

recalculateTaxMode
enum<integer>
required

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

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

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

Response

Sales order calculated successfully.

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

lineItems
object[]
required

The list of calculated sales order line items.

totalNetAmount
number<decimal>
required

The total net amount for the sales order.

totalGrossAmount
number<decimal>
required

The total gross amount for the sales order.

companyVatId
string
required

The VAT ID of the company for the departure country.

currencyIso
string
required

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

currencyFactor
number<decimal>
required

The currency factor used for the price conversion.

shippingCostNet
number<decimal>
required

The net shipping cost.

vatAmounts
object[]
required

The VAT amounts grouped by tax rate.

shippingCostGross
number<decimal>
required

The gross shipping cost.