Model
OrderIncrementIdChecker
Magento\Sales\Model\OrderIncrementIdChecker
What it does
This class checks whether a specific order increment ID has already been used in the system.
Developers use this utility to prevent duplicate order IDs before creating new orders, ensuring unique order identifiers across the store.
It's particularly useful in custom order creation workflows or when implementing custom increment ID generation logic.
Public Methods
- isIncrementIdUsed()