Log in
Model

ChangeOutputArray

Magento\Sales\Model\Order\Webapi\ChangeOutputArray

What it does

This class modifies order item data returned by Magento's Web API to ensure row totals are correctly calculated and formatted.

It recalculates row totals (both including and excluding tax) using price renderers and ensures all values are non-negative.

Developers would use this when customizing order item data in API responses or when extending order item serialization logic.

Public Methods

  • execute()