Draft order: checkout could not be processed because your order total has changed

Hi @Bogdan_Hiriscau! the fact that removing taxes lets you complete the order points to a timing issue with how Avalara calculates taxes versus when Shopify validates the deferred payment amount.

There’s a similar thread where draft orders with payment terms were failing to complete, and it often came down to mismatches in market settings or currency conversions. A few things to check first:

  1. Are the products in this draft order published to the Canada market? Sometimes if a product isn’t assigned to the customer’s market, it can cause pricing discrepancies during completion.

  2. When you view the draft order in the admin, does the total match exactly what you expect, including the Avalara-calculated taxes?

  3. Have you tried using draftOrderCalculate to see what the calculated totals are right before attempting to complete?

Since this is happening even from the admin UI (not just API), and it’s specifically tied to Avalara taxes + payment terms, this might need a closer look at your specific store setup. The validation for deferred payments is pretty strict about matching totals, and if Avalara’s tax calculation changes between when the draft is created and when it’s completed, that could trigger this error.

If you’ve confirmed the market settings look good and the totals match in the admin, it’d be worth reaching out to support through the Help Center with the draft order ID, shop domain, and the x-request-id from the response headers when you attempt to complete the draft order - they can check the logs to see exactly what’s causing the mismatch. Make sure to mention it works fine without taxes and that you’re using Avalara, that’ll help them narrow it down quickly.