Log in
Interface

ShippingInterface

Magento\Sales\Api\Data\ShippingInterface

What it does

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

Developers use this to retrieve or set shipping details including the delivery address, shipping method name, and shipping cost totals when working with order data through the API or service contracts.

It's commonly used when processing orders, generating invoices, or displaying shipping information in custom modules.

Public Methods

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