Hi everyone, I am encountering an unexpected behavior with the total_price field on the REST API /orders/{id}.json endpoint and would appreciate some insight.
The Scenario:
-
An order was created and paid on 2026-03-01. The original paid amount was 268 SEK (Item: 219 SEK + Shipping: 49 SEK).
-
Our system saved the
total_pricedirectly from the API as 268 SEK on 2026-03-02.
-
A payout balance transaction also confirms the original charge was 268 SEK.
-
On 2026-03-16, a refund of 170 SEK was processed, which included
order_adjustmentsfor refund discrepancies (+170 SEK and -170 SEK).
The Issue: When pulling the order now, the current_total_price correctly shows as 98.00 SEK (268 - 170). However, the total_price field—which we understand should remain static as the original order value—has unexpectedly shifted to 317.00 SEK.
Payload Snippet: "order": { "current_total_price": "98.00", "total_price": "317.00" }
Is it expected behavior for the static total_price field to change retroactively when a refund discrepancy occurs? Any guidance on why this shifted to 317 SEK would be incredibly helpful!