Log in
Interface

SpecialPriceInterface

Magento\Catalog\Api\Data\SpecialPriceInterface

What it does

This interface defines the contract for managing product special prices in Magento 2.

Developers use it to programmatically set, retrieve, and manage temporary discounted prices for products, including the price value, date range (from/to), and store-specific pricing.

It's commonly used in custom pricing modules, bulk price update operations, or when integrating with external systems that need to manage promotional pricing via API.

Public Methods

  • setPrice()
  • getPrice()
  • setStoreId()
  • getStoreId()
  • setSku()
  • getSku()
  • setPriceFrom()
  • getPriceFrom()
  • setPriceTo()
  • getPriceTo()
  • getExtensionAttributes()
  • setExtensionAttributes()