Log in
Model

ChangeOutputArray

Magento\Sales\Model\Order\Webapi\ChangeOutputArray

What it does

This class modifies the output array of order item data for Web API responses by recalculating row totals with and without tax.

It ensures all row total values are properly formatted and non-negative before being returned through the API.

Developers use this when customizing or extending the order item API response structure to ensure consistent total calculations.

Public Methods

  • execute()