Log in
Interface

CreditmemoCreationArgumentsInterface

Magento\Sales\Api\Data\CreditmemoCreationArgumentsInterface

What it does

This interface defines the contract for credit memo creation arguments in Magento 2.

Developers use this when programmatically creating credit memos to specify shipping amounts, positive adjustments (credits), and negative adjustments (debits) that should be applied.

It's commonly used in custom refund implementations or when extending the standard credit memo creation process through the API.

Public Methods

  • getShippingAmount()
  • getAdjustmentPositive()
  • getAdjustmentNegative()
  • setShippingAmount()
  • setAdjustmentPositive()
  • setAdjustmentNegative()
  • getExtensionAttributes()
  • setExtensionAttributes()