Log in
Interface

ShippingInterface

Magento\Sales\Api\Data\ShippingInterface

What it does

This interface defines the contract for handling shipping information in Magento 2 orders.

Developers use it to access or manipulate shipping-related data including the shipping address, shipping method name, and shipping totals when working with orders through the API or service layer.

It's commonly used in custom order processing, shipping integrations, and when retrieving order details programmatically.

Public Methods

  • getAddress()
  • getMethod()
  • getTotal()
  • setAddress()
  • setMethod()
  • setTotal()
  • getExtensionAttributes()
  • setExtensionAttributes()