Log in
Interface

CreditmemoItemCreationInterface

Magento\Sales\Api\Data\CreditmemoItemCreationInterface

What it does

This interface defines the contract for creating credit memo items in Magento 2.

Developers use this when programmatically creating credit memos through the API, as it specifies the structure and required methods for individual line items being refunded.

It extends LineItemInterface for basic item data and provides extension attribute support for custom fields.

Public Methods

  • getExtensionAttributes()
  • setExtensionAttributes()