Three questions about the values returned in the order API response:
-
It appears the order item values for unitPrice, tax and discount need to be integers. Is this correct? And if so, it is appropriate to assume the values are in cents (at least when the currency is USD)? And does this apply to the order subTotal, discountTotal, taxTotal and netTotal attributes as well?
-
Is the order item unitPrice inclusive of the discount or should discount be subtracted from unitPrice to get the net sales amount for an item?
-
Similar question for discount on order - is the discountTotal included in the order subTotal or in the order netTotal? I found documentation that indicates taxTotal is included in netTotal. If I apply this to discount, then subTotal would not include the discountTotal, but netTotal would. Is that correct?
Thanks!