Storefront GraphQL orders return the total after gift certificates and store credit
The Storefront GraphQL API now returns an order’s total including tax after gift certificates and store credit are applied, so you can show the amount the shopper paid, matching the order total on the storefront’s account orders page.
- New field.
totalIncTaxAfterGiftCertificatesAndStoreCredit(Money!) on theBaseOrderinterface, available on bothOrderandOrderWithPayments. - Difference from
totalIncTax.totalIncTaxis unchanged and still includes the value paid with gift certificates and store credit. The new field deducts them. - No changes needed. Existing queries keep working. Add the field to your order queries to use it.
For schema details, see the Storefront GraphQL API reference: