This documentation is deprecated and only available for supporting old/legacy integrations using for example hashes.

New documentation can be found here: Home



Calculation Rules for Order Rows

Calculation rules concerning the order specification data are described below. Variables beginning with "pmt" represent field data sent to the new payment interface. Variables beginning with "Calc" are calculated values used to check the validity of interface field data.

Gross and net prices have the following relationship:

pmt_row_price_gross = round ( pmt_row_price_net * ( 1 + 0.01 * pmt_row_vat ) )

IF net price was supplied (pmt_row_price_net):

Row sum after reducing the discount, without VAT:

 

CalcRowAmountExVAT = round ( round ( pmt_row_quantity * pmt_row_price_net ) * ( 1 - 0.01 * pmt_row_discountpercentage ) )

IF gross price was supplied (pmt_row_price_gross):

Row sum after reducing the discount, without VAT:

 

CalcRowUnitNetPrice = round ( pmt_row_price_gross / ( 1 + 0.01 * pmt_row_vat ) ) CalcRowAmountExVAT = round ( round ( pmt_row_quantity * CalcRowUnitNetPrice ) * ( 1 - 0.01 * pmt_row_discountpercentage ) )

Row sum of VAT (VAT is calculated based on the reduced net price):

Row total amount (payable in effect on the gross amount):

The gross price of the whole order:

pmt_amount

pmt_sellercosts

In the interfaces all the money amounts and percentages must be presented with two decimals using comma as the decimal delimiter.

 

 

This documentation is deprecated and only available for supporting old/legacy integrations using for example hashes.

New documentation can be found here: Home