- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"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 !!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"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 !!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: REST API / Credit Memo: Return to Stock?
Thanks.
I believe what I'm looking for is the returns endpoint instead in the Enterprise edition.
Thanks!