Xero API How to force to 4 decimal places

I am having an issue where passing in a 4 decimal places price ($15.3550) in the Line Item over to Xero. Xero by default rounds it to only 2 decimal places ($15.36) causing pricing mismatch in the total price for the Quote.

From this page Rounding — Xero Developer it says to pass “unitdp=4” as part of the the xero request requests to opt in to 4 decimal places on each interaction. For example https://api.xero.com/api.xro/2.0/Items?unitdp=4

My question is how do I inject this “unitdp=4” as part of every interaction with Xero using make.com’s Integration? The problem I have right now is with creating new Quotes.

Thank you

which module are you using? if you are working directly with the api and using http module then you can use the query string and pass the unitdp=4 like this

image

or you can try formatNumber function and see if it works

image

Sorry I forgot to mention I am using the make.com Xero Module.

assuming you are trying to enter the unit amount

use can use the formatNumber function

image

Sorry I forgot to mention I am using the make.com Xero App.

The problem I am having is that Xero does receive the 4 decimal places. However it by default will round it up to only 2 decimal causing the amount to not match inthe order total.

I must pass Xero “unitdp=4” as part of the request to tell Xero side to use 4 decimal places when it works on the data the Xero make module pasess it.

This is where I am stuck. Seems like have have to use the http module which is much more work just for one small missing feature?

Thanks.

For anyone else searching for this. It turns out the Xero module already pass the require parameter to Xero to use 4 decimal places.