Is there any way to tell if "return to stock" is checked off in a credit memo, when retrieving a credit memo from the REST API?
I've created credit memos on two orders: one with "return to stock" checked and one without and there is no discernible difference between the two credit memos returned by the REST API.
Any ideas?
Solved! Go to Solution.
"Return to Stock" checkbox value is not saved in CreditMemo Items table. This value is only used in run time.
You can check more in the below class 'load' function.
Magento\Sales\Controller\Adminhtml\Order\CreditmemoLoader
Hope this help !!
"Return to Stock" checkbox value is not saved in CreditMemo Items table. This value is only used in run time.
You can check more in the below class 'load' function.
Magento\Sales\Controller\Adminhtml\Order\CreditmemoLoader
Hope this help !!
Thanks.
I believe what I'm looking for is the returns endpoint instead in the Enterprise edition.
Thanks!