What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

API total price different from actual total price

API total price different from actual total price

WaltQ
Shopify Partner
1 0 0

Ran into a strange issue today. In the admin orders console as well as the payout included the actual total of $135.76 but in the API, it reports $135.77. Is this a bug? I'm guessing there's a rounding issue in the APIs currency conversion logic that's different from the rest of the Shopify system.

 

Admin Orders Console:

waltque_1-1661292472525.png

 

API Response:

waltque_0-1661292387501.png

 

Thoughts?

Automating all the things @ fynops.com
Reply 1 (1)

ftballguy45
Shopify Partner
32 0 12

Experiencing something similar. Using the REST Api - I create an order and use a price of $3.183 for a line item. Quantity is 10. $3.183 * 10 = $31.83. Shopify displays it as $31.80. The Api is rounding the price before it does the total calculation. Thus my orders in Shopify dont match orders in the originating system. This is an issue Shopify team!