How to post of json data through api?

I am trying to post (number of) invoice data through API but it is not working correctly. Whenever i refresh the invoice page it shows me different invoice total.